- Added new CURL options CURLOPT_REDIR_PROTOCOLS, CURLOPT_PROTOCOLS,
and CURLPROTO_* for redirect fixes in CURL 7.19.4. (Yoram Bar Haim, Stas)
+- Added support for Sun CC (FR #46595 and FR #46513). (David Soria Parra)
- Fixed memory corruptions while reading properties of zip files. (Ilia)
- Fixed memory leak in ob_get_clean/ob_get_flush. (Christian)
dnl Checks for programs.
dnl -------------------------------------------------------------------------
-AC_PROG_CC
+AC_PROG_CC([cc gcc])
PHP_DETECT_ICC
+PHP_DETECT_SUNCC
AC_PROG_CC_C_O
dnl Change to AC_PROG_CC_STDC when we start requiring a post-2.13 autoconf
dnl AC_PROG_CC_STDC
CFLAGS="$CFLAGS -ieee"
fi
;;
+ sparc*)
+ if test "$SUNCC" = "yes"; then
+ CFLAGS="$CFLAGS -xmemalign=8s"
+ fi
esac
case $host_alias in
dnl Add the special gcc flags
CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
+ if test "$SUNCC" = "yes"; then
+ if test -n "$auto_cflags"; then
+ CFLAGS="-g"
+ CXXFLAGS="-g"
+ else
+ CFLAGS="$CFLAGS -g"
+ CXXFLAGS="$CFLAGS -g"
+ fi
+ fi
fi
PHP_ARG_ENABLE(debug, whether to include debugging symbols,
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
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