From fc2ea4121cb27e1d5171dbf90eb15cd0f8314f30 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Tue, 8 Nov 2011 21:25:28 +0000 Subject: [PATCH] Load all modules in the generated default configuration 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 | 3 +++ Makefile.in | 8 ++++++-- acinclude.m4 | 1 + configure.in | 8 ++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 559c2021d0..4063989746 100644 --- 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] diff --git a/Makefile.in b/Makefile.in index ec94665999..6297b27c23 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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' \ diff --git a/acinclude.m4 b/acinclude.m4 index 984a21d794..a07838637b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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) diff --git a/configure.in b/configure.in index 45207e72cc..4427005913 100644 --- a/configure.in +++ b/configure.in @@ -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) -- 2.40.0