]> granicus.if.org Git - apache/commitdiff
Don't fail if a module is selected for 'most' or 'all' but the dependencies
authorStefan Fritsch <sf@apache.org>
Sun, 24 Jul 2011 18:56:17 +0000 (18:56 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 24 Jul 2011 18:56:17 +0000 (18:56 +0000)
are not fulfilled

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

acinclude.m4

index 4fbca74328fd5fc14d942c7f68cff4403acb718d..e7b79c37f8068a563479605b8a31e57bc2821864 100644 (file)
@@ -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