You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/11/03 15:32:27 UTC

svn commit: r832429 - /httpd/httpd/trunk/server/mpm/config2.m4

Author: trawick
Date: Tue Nov  3 14:32:27 2009
New Revision: 832429

URL: http://svn.apache.org/viewvc?rev=832429&view=rev
Log:
--with-mpm and --enable-mpms-shared:
. improve messages
. check for inconsistent settings

Modified:
    httpd/httpd/trunk/server/mpm/config2.m4

Modified: httpd/httpd/trunk/server/mpm/config2.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/config2.m4?rev=832429&r1=832428&r2=832429&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/config2.m4 (original)
+++ httpd/httpd/trunk/server/mpm/config2.m4 Tue Nov  3 14:32:27 2009
@@ -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_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 @@
     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