]> granicus.if.org Git - apache/commitdiff
--with-mpm and --enable-mpms-shared:
authorJeff Trawick <trawick@apache.org>
Tue, 3 Nov 2009 14:32:27 +0000 (14:32 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 3 Nov 2009 14:32:27 +0000 (14:32 +0000)
. improve messages
. check for inconsistent settings

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832429 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/config2.m4

index 9ba6a7ccf082ea95caae37a614dcc13bc4589b8e..92f06acf2510e78d729b3ff29f150755235c6247 100644 (file)
@@ -1,7 +1,9 @@
-AC_MSG_CHECKING(which MPM to use)
+AC_MSG_CHECKING(which MPM to use by default)
 AC_ARG_WITH(mpm,
-APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
+APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use by default.
                           MPM={simple|event|worker|prefork|winnt}
+                          This will be statically linked as the only available MPM unless
+                          --enable-mpms-shared is also specified.
 ),[
     default_mpm=$withval
     AC_MSG_RESULT($withval);
@@ -30,7 +32,7 @@ APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
 APACHE_MPM_ENABLED($default_mpm)
 
 AC_ARG_ENABLE(mpms-shared,
-APACHE_HELP_STRING(--enable-mpms-shared=MODULE-LIST,Space-separated list of shared MPM modules to enable | "all"),[
+APACHE_HELP_STRING(--enable-mpms-shared=MPM-LIST,Space-separated list of MPM modules to enable for dynamic loading.  MPM-LIST=list | "all"),[
     mpm_build=shared
     for i in $enableval; do
         if test "$i" = "all"; then
@@ -54,6 +56,13 @@ for i in $ENABLED_MPMS; do
     fi
 done
 
+if test $mpm_build = "shared"; then
+    eval "tmp=\$enable_mpm_$default_mpm"
+    if test "$tmp" != "shared"; then
+        AC_MSG_ERROR([The default MPM ($default_mpm) must be included in --enable-mpms-shared.  Use --with-mpm to change the default MPM.])
+    fi
+fi
+
 APACHE_FAST_OUTPUT(server/mpm/Makefile)
 
 if test $mpm_build = "shared"; then