Skip to content

Commit

Permalink
Allow to explicitly disable modules even with module selection 'reall…
Browse files Browse the repository at this point in the history
…yall'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1154875 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Stefan Fritsch committed Aug 8, 2011
1 parent 76a7b52 commit 10251aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.3.15

*) configure: Allow to explicitly disable modules even with module selection
'reallyall'. [Stefan Fritsch]

*) mod_rewrite: Check validity of each internal (int:) RewriteMap even if the
RewriteEngine is disabled in server context, avoiding a crash while
referencing the invalid int: map at runtime. PR 50994.
Expand Down
6 changes: 3 additions & 3 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,12 @@ dnl
AC_DEFUN(APACHE_MODULE,[
AC_MSG_CHECKING(whether to enable mod_$1)
define([optname],[--]ifelse($5,yes,disable,enable)[-]translit($1,_,-))dnl
AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),,enable_$1=ifelse($5,,maybe-all,$5))
AC_ARG_ENABLE(translit($1,_,-),APACHE_HELP_STRING(optname(),$2),force_$1=$enableval,enable_$1=ifelse($5,,maybe-all,$5))
undefine([optname])dnl
_apmod_extra_msg=""
dnl When --enable-modules=most or --enable-modules=(really)all is set and the
dnl module was not explicitly requested, allow a module to disable itself if
dnl its pre-reqs fail.
dnl XXX: Todo: Allow to disable specific modules even with "reallyall".
case "$enable_$1" in
yes|static|shared)
_apmod_error_fatal="yes"
Expand Down Expand Up @@ -324,7 +323,8 @@ AC_DEFUN(APACHE_MODULE,[
else
enable_$1=no
fi
elif test "$enable_$1" = "no" -a "$module_selection" = "reallyall"; then
elif test "$enable_$1" = "no" -a "$module_selection" = "reallyall" -a \
"$force_$1" != "no" ; then
enable_$1=$module_default
_apmod_extra_msg=" ($module_selection)"
fi
Expand Down

0 comments on commit 10251aa

Please sign in to comment.