|
|
|
@ -920,7 +920,7 @@ AC_DEFUN([PHP_GEN_BUILD_DIRS],[ |
|
|
|
]) |
|
|
|
|
|
|
|
dnl |
|
|
|
dnl PHP_NEW_EXTENSION(extname, sources [, shared [,sapi_class[, extra-cflags[, cxx[, zend_ext]]]]]) |
|
|
|
dnl PHP_NEW_EXTENSION(extname, sources [, shared [, sapi_class [, extra-cflags [, cxx [, zend_ext]]]]]) |
|
|
|
dnl |
|
|
|
dnl Includes an extension in the build. |
|
|
|
dnl |
|
|
|
@ -968,12 +968,15 @@ dnl ---------------------------------------------- Shared module |
|
|
|
if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then |
|
|
|
dnl ---------------------------------------------- CLI static module |
|
|
|
[PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no |
|
|
|
if test "$PHP_SAPI" = "cgi"; then |
|
|
|
PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,) |
|
|
|
EXT_STATIC="$EXT_STATIC $1" |
|
|
|
else |
|
|
|
PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli) |
|
|
|
fi |
|
|
|
case "$PHP_SAPI" in |
|
|
|
cgi|embed[)] |
|
|
|
PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,) |
|
|
|
EXT_STATIC="$EXT_STATIC $1" |
|
|
|
;; |
|
|
|
*[)] |
|
|
|
PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cli) |
|
|
|
;; |
|
|
|
esac |
|
|
|
EXT_CLI_STATIC="$EXT_CLI_STATIC $1" |
|
|
|
fi |
|
|
|
PHP_ADD_BUILD_DIR($ext_builddir) |
|
|
|
@ -2766,6 +2769,23 @@ AC_DEFUN([PHP_DETECT_ICC], |
|
|
|
) |
|
|
|
]) |
|
|
|
|
|
|
|
dnl PHP_DETECT_SUNCC |
|
|
|
dnl Detect if the systems default compiler is suncc. |
|
|
|
dnl We also set some usefull CFLAGS if the user didn't set any |
|
|
|
AC_DEFUN([PHP_DETECT_SUNCC],[ |
|
|
|
SUNCC="no" |
|
|
|
AC_MSG_CHECKING([for suncc]) |
|
|
|
AC_EGREP_CPP([^__SUNPRO_C], [__SUNPRO_C], |
|
|
|
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]) |
|
|
|
) |
|
|
|
]) |
|
|
|
|
|
|
|
dnl |
|
|
|
dnl PHP_CRYPT_R_STYLE |
|
|
|
dnl detect the style of crypt_r() is any is available |
|
|
|
|