summaryrefslogtreecommitdiff
path: root/sapi/apache
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-11-19 00:51:06 +0000
committerfoobar <sniper@php.net>2001-11-19 00:51:06 +0000
commit41b21156cc764d5965a254cd9703273895d6bd9b (patch)
tree1c1d0bef78917c95a8a4b51c321a2cec52dd960f /sapi/apache
parente65ae0e7fd4b985102dc80fce36d2887376d1355 (diff)
downloadphp-git-41b21156cc764d5965a254cd9703273895d6bd9b.tar.gz
Fixed bugs: #14034, #11647 (can not find any others)
Diffstat (limited to 'sapi/apache')
-rw-r--r--sapi/apache/config.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4
index c5fa19b2e5..a053ea4c46 100644
--- a/sapi/apache/config.m4
+++ b/sapi/apache/config.m4
@@ -39,7 +39,16 @@ AC_ARG_WITH(apxs,
done
PHP_ADD_INCLUDE($APXS_INCLUDEDIR)
PHP_SAPI=apache
- APACHE_INSTALL="\$(mkinstalldirs) \"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" && $APXS -S LIBEXECDIR=\"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" -i -a -n php4 $SAPI_SHARED"
+
+ # Test whether apxs support -S option
+ $APXS -q -S CFLAGS=$APXS_CFLAGS CFLAGS >/dev/null 2>&1
+
+ if test "$?" != "0"; then
+ APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" # Old apxs does not have -S option
+ else
+ APACHE_INSTALL="\$(mkinstalldirs) \"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" && $APXS -S LIBEXECDIR=\"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" -i -a -n php4 $SAPI_SHARED"
+ fi
+
PHP_BUILD_SHARED
if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
PHP_APXS_BROKEN=yes