From: Antony Dovgal Date: Fri, 26 Jan 2007 11:13:50 +0000 (+0000) Subject: check if -no-cpp-precomp is supported by GCC before using it (mac os only) X-Git-Tag: RELEASE_1_0_0RC1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8892b44ae4165e38866f859f1f2c56cec04d9bc;p=php check if -no-cpp-precomp is supported by GCC before using it (mac os only) --- diff --git a/configure.in b/configure.in index 4e7768d246..1e65073e92 100644 --- a/configure.in +++ b/configure.in @@ -166,7 +166,12 @@ case $host_alias in *dgux*) CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR";; *darwin*|*rhapsody*) - CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + if test -n "$GCC"; then + PHP_CHECK_GCC_ARG(-no-cpp-precomp, gcc_no_cpp_precomp=yes) + if test "$gcc_no_cpp_precomp" = "yes"; then + CPPFLAGS="$CPPFLAGS -no-cpp-precomp" + fi + fi AC_DEFINE(BIND_8_COMPAT, 1, [Enabling BIND8 compatibility for Panther]) php_multiple_shlib_versions_ok=yes;; *beos*)