dsp Wed Dec 3 19:52:59 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/scripts phpize.m4 Log: Fix cc detection in phpize according to changes in configure.in http://cvs.php.net/viewvc.cgi/php-src/scripts/phpize.m4?r1=1.17.2.3.2.5.2.5&r2=1.17.2.3.2.5.2.6&diff_format=u Index: php-src/scripts/phpize.m4 diff -u php-src/scripts/phpize.m4:1.17.2.3.2.5.2.5 php-src/scripts/phpize.m4:1.17.2.3.2.5.2.6 --- php-src/scripts/phpize.m4:1.17.2.3.2.5.2.5 Thu Jul 31 00:45:17 2008 +++ php-src/scripts/phpize.m4 Wed Dec 3 19:52:59 2008 @@ -17,11 +17,15 @@ test "[$]$1" = "no" && $1=yes ])dnl dnl + +test -z "$CFLAGS" && auto_cflags=1 + abs_srcdir=`(cd $srcdir && pwd)` abs_builddir=`pwd` -AC_PROG_CC +AC_PROG_CC([cc gcc]) PHP_DETECT_ICC +PHP_DETECT_SUNCC AC_PROG_CC_C_O dnl Support systems with system libraries in e.g. /usr/lib64 @@ -116,6 +120,15 @@ CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0" fi + if test "$SUNCC" = "yes"; then + if test -n "$auto_cflags"; then + CFLAGS="-g" + CXXFLAGS="-g" + else + CFLAGS="$CFLAGS -g" + CXXFLAGS="$CFLAGS -g" + fi + fi else PHP_DEBUG=0 ZEND_DEBUG=no
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php