Revise how Apache configs APR and allow MPMs (or other config scripts) to
pass cmd line params down to APR. For the MPMs that specifically require
or disallow threads, have them force APR threads on/off.
Submitted by: Joe Orton <joe@light.plus.com>
Reviewed by: Greg Stein
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86794
13f79535-47bb-0310-9956-
ffa450edef68
dnl ## APRVARS before Apache generates it's Makefiles and the related files.
dnl ## This allows APR to detect libraries like dl and tell Apache that it
dnl ## needs to include or not include them.
-RUN_SUBDIR_CONFIG_NOW(lib/apr)
+RUN_SUBDIR_CONFIG_NOW(lib/apr, $apache_apr_flags)
RUN_SUBDIR_CONFIG_NOW(lib/pcre)
. ./lib/apr/APRVARS
dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "beos" ; then
- ac_cv_enable_threads="yes"
- AC_CACHE_SAVE
+ apache_apr_flags="--enable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
fi
dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "dexter" ; then
- ac_cv_enable_threads="yes"
- AC_CACHE_SAVE
+ apache_apr_flags="--enable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
APACHE_MPM_PTHREAD
dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "mpmt_beos" ; then
- ac_cv_enable_threads="yes"
- AC_CACHE_SAVE
+ apache_apr_flags="--enable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
fi
dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "mpmt_pthread" ; then
- ac_cv_enable_threads="yes"
- AC_CACHE_SAVE
+ apache_apr_flags="--enable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "perchild" ; then
- ac_cv_enable_threads="yes"
- AC_CACHE_SAVE
+ apache_apr_flags="--enable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)
APACHE_MPM_PTHREAD
if test "$MPM_NAME" = "prefork" ; then
dnl Turn off all threading functions in APR
- ac_cv_enable_threads="no"
- AC_CACHE_SAVE
+ apache_apr_flags="--disable-threads"
APACHE_FAST_OUTPUT(modules/mpm/$MPM_NAME/Makefile)