From: Stefan Fritsch Date: Sun, 24 Jul 2011 18:56:17 +0000 (+0000) Subject: Don't fail if a module is selected for 'most' or 'all' but the dependencies X-Git-Tag: 2.3.14^2~28 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2cbb6b579123c22d8cf44d083ab4b03c3ebb6856;p=thirdparty%2Fapache%2Fhttpd.git Don't fail if a module is selected for 'most' or 'all' but the dependencies are not fulfilled git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1150464 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acinclude.m4 b/acinclude.m4 index 4fbca74328f..e7b79c37f80 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -286,14 +286,20 @@ AC_DEFUN(APACHE_MODULE,[ 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". - if test "$module_selection" = "most" -a "$enable_$1" = "most" || - test "$module_selection" = "reallyall" -a "$enable_$1" != "yes" -a \ - "$enable_$1" != "static" - then - _apmod_error_fatal="no" - else - _apmod_error_fatal="yes" - fi + case "$enable_$1" in + yes|static|shared) + _apmod_error_fatal="yes" + ;; + *) + case "$module_selection" in + reallyall|all|most) + _apmod_error_fatal="no" + ;; + *) + _apmod_error_fatal="yes" + ;; + esac + esac if test "$enable_$1" = "static"; then enable_$1=static elif test "$enable_$1" = "yes"; then