]> granicus.if.org Git - apache/commitdiff
Load all modules in the generated default configuration
authorRainer Jung <rjung@apache.org>
Tue, 8 Nov 2011 21:25:28 +0000 (21:25 +0000)
committerRainer Jung <rjung@apache.org>
Tue, 8 Nov 2011 21:25:28 +0000 (21:25 +0000)
when using --enable-load-all-modules with configure.

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

CHANGES
Makefile.in
acinclude.m4
configure.in

diff --git a/CHANGES b/CHANGES
index 559c2021d0418e66f399cdc3b323b6f9a7b64aef..406398974635488bccd7cf5e4cb8a15aa3b04775 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,9 @@ Changes with Apache 2.3.15
      core: Fix integer overflow in ap_pregsub. This can be triggered e.g.
      with mod_setenvif via a malicious .htaccess. [Stefan Fritsch]
 
+  *) configure: Load all modules in the generated default configuration
+     when using --enable-load-all-modules. [Rainer Jung]
+
   *) mod_reqtimeout: Change the default to set some reasonable timeout
      values. [Stefan Fritsch]
 
index ec946659999ee84d8e64c155ea7a8d9e6832c34f..6297b27c2322fb689f9bc071f092ff35b7e76a6c 100644 (file)
@@ -61,10 +61,14 @@ install-conf:
                                for j in $(DSO_MODULES) "^EOL^"; do \
                                        if test $$j != "^EOL^"; then \
                                                if echo "$(ENABLED_DSO_MODULES)"|$(EGREP) "\<$$j\>" > /dev/null ; then \
-                                                       echo "LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
+                                                       loading_disabled=""; \
                                                else \
-                                                       echo "#LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
+                                                       loading_disabled="#"; \
                                                fi; \
+                                               if test "$(LOAD_ALL_MODULES)" = "yes"; then \
+                                                       loading_disabled=""; \
+                                               fi; \
+                                               echo "$${loading_disabled}LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \
                                        fi; \
                                done; \
                                sed -e '1,/@@LoadModule@@/d' \
index 984a21d794fac3e048949473fe49519e107017d0..a07838637b5dd6c090e3e0ebbe377541bde9a9e0 100644 (file)
@@ -90,6 +90,7 @@ AC_DEFUN(APACHE_GEN_CONFIG_VARS,[
   APACHE_SUBST(INSTALL_PROG_FLAGS)
   APACHE_SUBST(DSO_MODULES)
   APACHE_SUBST(ENABLED_DSO_MODULES)
+  APACHE_SUBST(LOAD_ALL_MODULES)
   APACHE_SUBST(APR_BINDIR)
   APACHE_SUBST(APR_INCLUDEDIR)
   APACHE_SUBST(APR_VERSION)
index 45207e72cc5da49382f73866967e3175740736e6..44270059138c09bd7f393d99be68d99dd46bd30a 100644 (file)
@@ -730,6 +730,14 @@ if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then
               [Allow IPv4 connections on IPv6 listening sockets])
 fi
 
+AC_ARG_ENABLE(load-all-modules,APACHE_HELP_STRING(--enable-load-all-modules,Load all modules),
+[ 
+  LOAD_ALL_MODULES=$enableval
+],
+[
+  LOAD_ALL_MODULES="no"
+])
+
 APACHE_FAST_OUTPUT(Makefile modules/Makefile srclib/Makefile) 
 APACHE_FAST_OUTPUT(os/Makefile server/Makefile)
 APACHE_FAST_OUTPUT(support/Makefile)