Fix test for auto_cflags and explictly set GCC="no" if we detect suncc

This commit is contained in:
David Soria Parra 2008-12-03 19:53:45 +00:00
parent 2b830291bb
commit fe8d326d57
2 changed files with 2 additions and 1 deletions

View file

@ -2776,6 +2776,7 @@ AC_DEFUN([PHP_DETECT_SUNCC],[
SUNCC="no" SUNCC="no"
AC_MSG_RESULT([no]), AC_MSG_RESULT([no]),
SUNCC="yes" 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" 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="" GCC=""
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])

View file

@ -796,7 +796,7 @@ if test "$PHP_DEBUG" = "yes"; then
CXXFLAGS="$CXXFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0"
fi fi
if test "$SUNCC" = "yes"; then if test "$SUNCC" = "yes"; then
if -n "$auto_cflags"; then if test -n "$auto_cflags"; then
CFLAGS="-g" CFLAGS="-g"
CXXFLAGS="-g" CXXFLAGS="-g"
else else