On Fri, 28 May 2004, Wez Furlong wrote:
> A problem with that is that our php_config.h will unconditionally include
> various system headers, not allowing an individual source file to set more
> flags.
You can tell PHP_ADD_SOURCES to use special compile flags for
a specific compilation unit. These flags will preempt
anything php_config.h does.
dnl PHP_ADD_SOURCES(source-path, sources[, special-flags[, type]])
So, in your config.m4, you would determine these special
flags (either using a autoconf test or $host_alias), and call
PHP_ADD_SOURCES for the problematic source file. This is the
preferred way, because you can perform more elaborate checks
in config.m4 than using the C preprocessor.
- Sascha
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php