From: Sascha Schumann Date: Sat, 13 Nov 1999 17:29:43 +0000 (+0000) Subject: Allow --with-apxs and --with-regex=apache X-Git-Tag: php-4.0b3_RC5~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=677bf03f0715cfcee34d0d8ee940e054e1a6278f;p=php Allow --with-apxs and --with-regex=apache --- diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index 9aed624498..c70a04b13d 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -16,9 +16,12 @@ AC_ARG_WITH(apxs, XML_INCLUDE="$APXS_INCLUDEDIR/xml" fi AC_ADD_INCLUDE($APXS_INCLUDEDIR) - PHP_EXTENSION(apache) + if test -n "`$APXS -q CFLAGS | grep USE_HSREGEX`"; then + APACHE_HAS_REGEX=yes + fi + PHP_EXTENSION(apache) PHP_SAPI=apache - APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" + APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" PHP_BUILD_SHARED STRONGHOLD= AC_DEFINE(APACHE)