>From 07346383364e6a3e37d8b2f44b305a70db26ba3c Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Thu, 11 Feb 2010 16:14:54 -0800 Subject: [PATCH] Make check for threaded httpd work with Apache 2.0 The check we use for a threaded httpd doesn't properly detect a threaded Apache 2.0. This adds an additional check to the m4 file which makes this work. --- configure | 14 ++++++++++---- m4/httpd.m4 | 11 ++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) mode change 100644 => 100755 Makefile.in mode change 100644 => 100755 aclocal.m4 mode change 100644 => 100755 ltmain.sh diff --git a/Makefile.in b/Makefile.in old mode 100644 new mode 100755 diff --git a/aclocal.m4 b/aclocal.m4 old mode 100644 new mode 100755 diff --git a/configure b/configure index d293a35..a6d8935 100755 --- a/configure +++ b/configure @@ -23602,13 +23602,19 @@ else if test "$httpd_model" = yes ; then echo "$as_me:$LINENO: result: good - threading model is supported" >&5 echo "${ECHO_T}good - threading model is supported" >&6 - elif test "$enable_threading" = yes ; then - { { echo "$as_me:$LINENO: error: threading model not supported - use --disable-threading to force use of unthreaded model" >&5 + else + httpd_model=`$HTTPD -V | grep "APACHE_MPM_DIR" | grep "worker"` + if test -n "httpd_model" ; then + echo "$as_me:$LINENO: result: good - threading model is supported" >&5 +echo "${ECHO_T}good - threading model is supported" >&6 + elif test "$enable_threading" = yes ; then + { { echo "$as_me:$LINENO: error: threading model not supported - use --disable-threading to force use of unthreaded model" >&5 echo "$as_me: error: threading model not supported - use --disable-threading to force use of unthreaded model" >&2;} { (exit 1); exit 1; }; } - else - echo "$as_me:$LINENO: result: NOTICE - threading support explicitly disabled - Admin Server authorization cache will not work correctly" >&5 + else + echo "$as_me:$LINENO: result: NOTICE - threading support explicitly disabled - Admin Server authorization cache will not work correctly" >&5 echo "${ECHO_T}NOTICE - threading support explicitly disabled - Admin Server authorization cache will not work correctly" >&6 + fi fi fi diff --git a/ltmain.sh b/ltmain.sh old mode 100644 new mode 100755 diff --git a/m4/httpd.m4 b/m4/httpd.m4 index 03a52a2..6b5b78d 100644 --- a/m4/httpd.m4 +++ b/m4/httpd.m4 @@ -93,10 +93,15 @@ else httpd_model=`$HTTPD -V | grep "threaded:" | awk '{print $2}'` if test "$httpd_model" = yes ; then AC_MSG_RESULT([good - threading model is supported]) - elif test "$enable_threading" = yes ; then - AC_MSG_ERROR([threading model not supported - use --disable-threading to force use of unthreaded model]) else - AC_MSG_RESULT([NOTICE - threading support explicitly disabled - Admin Server authorization cache will not work correctly]) + httpd_model=`$HTTPD -V | grep "APACHE_MPM_DIR" | grep "worker"` + if test -n "httpd_model" ; then + AC_MSG_RESULT([good - threading model is supported]) + elif test "$enable_threading" = yes ; then + AC_MSG_ERROR([threading model not supported - use --disable-threading to force use of unthreaded model]) + else + AC_MSG_RESULT([NOTICE - threading support explicitly disabled - Admin Server authorization cache will not work correctly]) + fi fi fi -- 1.6.2.5