RE: [PHP-DEV] RC3RC1
| From: | Sascha Schumann | Date: | Fri, 28 May 2004 13:22:16 +0000 |
| Subject: | RE: [PHP-DEV] RC3RC1 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10156@lists.php.net to get a copy of this message | ||
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