diff options
author | Christopher Jones <sixd@php.net> | 2012-03-02 00:07:41 +0000 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2012-03-02 00:07:41 +0000 |
commit | 15cd45e95ee6697969a2a5becd6244fde01843d3 (patch) | |
tree | 838145288d192ad1dbc2ca9065cde1fd9280efcd /sapi/apache2handler | |
parent | 02f6937073a2ce6436cc0223af502676427eb256 (diff) | |
download | php-git-15cd45e95ee6697969a2a5becd6244fde01843d3.tar.gz |
Fixed bug #61172 (Add Apache 2.4 support)
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r-- | sapi/apache2handler/config.m4 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4 index 95217908fd..702f91f5d2 100644 --- a/sapi/apache2handler/config.m4 +++ b/sapi/apache2handler/config.m4 @@ -38,7 +38,6 @@ if test "$PHP_APXS2" != "no"; then APXS_BINDIR=`$APXS -q BINDIR` APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` APXS_CFLAGS=`$APXS -q CFLAGS` - APXS_MPM=`$APXS -q MPM_NAME` APU_BINDIR=`$APXS -q APU_BINDIR` APR_BINDIR=`$APXS -q APR_BINDIR` @@ -117,8 +116,16 @@ if test "$PHP_APXS2" != "no"; then ;; esac - if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then - PHP_BUILD_THREAD_SAFE + if test "$APACHE_VERSION" -lt 2004001; then + APXS_MPM=`$APXS -q MPM_NAME` + if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then + PHP_BUILD_THREAD_SAFE + fi + else + APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` + if test -n "$APACHE_THREADED_MPM"; then + PHP_BUILD_THREAD_SAFE + fi fi AC_MSG_RESULT(yes) PHP_SUBST(APXS) |