From d64c1652e259e00230b3bf25f933955b4f94d5c9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 24 Feb 2000 13:38:03 +0000 Subject: Define EAPI, if Apache uses EAPI --- sapi/apache/config.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sapi') diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index c172bdf37b..ab5ea404da 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -22,10 +22,14 @@ AC_ARG_WITH(apxs, fi APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` + APXS_CFLAGS=`$APXS -q CFLAGS` AC_ADD_INCLUDE($APXS_INCLUDEDIR) - if test -n "`$APXS -q CFLAGS | grep USE_HSREGEX`"; then + if test -n "`echo $APXS_CFLAGS | grep USE_HSREGEX >/dev/null`"; then APACHE_HAS_REGEX=yes fi + if test -n "`echo $APXS_CFLAGS | grep EAPI >/dev/null`"; then + CPPFLAGS="$CPPFLAGS -DUSE_EAPI" + fi PHP_SAPI=apache APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" PHP_BUILD_SHARED -- cgit v1.2.1