From: David Soria Parra Date: Thu, 4 Dec 2008 00:41:17 +0000 (+0000) Subject: MFB: Fix test for auto_cflags and explictly set GCC="no" if we detect suncc X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10f733569880690134fec0af13bf7c1f72f2ad72;p=php MFB: Fix test for auto_cflags and explictly set GCC="no" if we detect suncc --- diff --git a/acinclude.m4 b/acinclude.m4 index aac7ad554b..39e71e6ca4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2776,6 +2776,7 @@ AC_DEFUN([PHP_DETECT_SUNCC],[ SUNCC="no" AC_MSG_RESULT([no]), SUNCC="yes" + GCC="no" test -n "$auto_cflags" && CFLAGS="-fsimple=2 -xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -zlazyload" GCC="" AC_MSG_RESULT([yes]) diff --git a/configure.in b/configure.in index 5453e81a24..a811f75766 100644 --- a/configure.in +++ b/configure.in @@ -796,7 +796,7 @@ if test "$PHP_DEBUG" = "yes"; then CXXFLAGS="$CXXFLAGS -O0" fi if test "$SUNCC" = "yes"; then - if -n "$auto_cflags"; then + if test -n "$auto_cflags"; then CFLAGS="-g" CXXFLAGS="-g" else