]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix --enable-mods-shared processing. If most is specified,
authorRyan Bloom <rbb@apache.org>
Wed, 3 Oct 2001 17:47:51 +0000 (17:47 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 3 Oct 2001 17:47:51 +0000 (17:47 +0000)
then all modules that can be compiled as shared modules are.  This
was done by adding a module config specifier, static, which denotes
that a module can not be compiled as a DSO.

Submitted by:   Aaron Bannert <aaron@clove.org>

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

CHANGES
STATUS
acinclude.m4
modules/http/config2.m4
modules/mappers/config9.m4

diff --git a/CHANGES b/CHANGES
index a2ed80345aa86d59d8899cb21e216c3bbe78286d..9915322f0410e5abefa7b7ab3d53f537f6f80425 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
 Changes with Apache 2.0.26-dev
 
+  *) Fix --enable-mods-shared processing.  If most is specified,
+     then all modules that can be compiled as shared modules are.
+     [Aaron Bannert <aaron@clove.org>]
+
   *) Update the mime.types file to map video/vnd.mpegurl to mxu
      and add commonly used audio/x-mpegurl for m3u extensions.        
      [Heiko Recktenwald <uzs106@uni-bonn.de>, Lars Eilebrecht]
diff --git a/STATUS b/STATUS
index 65e67a7ad46c5322f8acf4e18b6c3229ba934f94..7456170918002d5bc4e33971ac9cdadd8a7c2fd6 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                             -*-text-*-
-Last modified at [$Date: 2001/10/02 21:21:55 $]
+Last modified at [$Date: 2001/10/03 17:47:50 $]
 
 Release:
 
@@ -95,12 +95,9 @@ RELEASE SHOWSTOPPERS:
       to make it agree with the operation of the StartServers
       directive.
 
-    * configure --enable-mods-shared=most option has issues.  Example: 
-
-      ./configure --enable-mods-shared=most
-
-        This builds mod_headers as a DSO (good) but builds mod_mime
-        as a compiled-in module (bad).
+    * Fix the configure script to add a LoadModule directive to
+      the default httpd.conf for any module that was compiled
+      as a DSO.
 
     * revamp the input filter semantics, per discussions since
       February (and especially at the hackathon last
index efd77c7305e5749be757f979ba1bec5bbdfeae58..ad92f1d1f549604a968904a36778008b4d6eac80 100644 (file)
@@ -196,10 +196,11 @@ dnl
 dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
 dnl
 dnl default is one of:
-dnl   yes  -- enabled by default. user must explicitly disable.
-dnl   no   -- disabled under default, most, all. user must explicitly enable.
-dnl   most -- disabled by default. enabled explicitly or with most or all.
-dnl   ""   -- disabled under default, most. enabled explicitly or with all.
+dnl   yes    -- enabled by default. user must explicitly disable.
+dnl   no     -- disabled under default, most, all. user must explicitly enable.
+dnl   most   -- disabled by default. enabled explicitly or with most or all.
+dnl   static -- enabled as static by default, must be explicitly changed.
+dnl   ""     -- disabled under default, most. enabled explicitly or with all.
 dnl
 dnl basically: yes/no is a hard setting. "most" means follow the "most"
 dnl            setting. otherwise, fall under the "all" setting.
@@ -218,11 +219,16 @@ AC_DEFUN(APACHE_MODULE,[
   else
     _apmod_error_fatal="yes"
   fi
-  if test "$enable_$1" = "most"; then
+  if test "$enable_$1" = "static"; then
+    enable_$1=yes
+  elif test "$enable_$1" = "yes"; then
+    enable_$1=$module_default
+    _apmod_extra_msg=" ($module_selection)"
+  elif test "$enable_$1" = "most"; then
     if test "$module_selection" = "most" -o "$module_selection" = "all"; then
       enable_$1=$module_default
       _apmod_extra_msg=" ($module_selection)"
-    else
+    elif test "$enable_$1" != "yes"; then
       enable_$1=no
     fi
   elif test "$enable_$1" = "maybe-all"; then
index 5fec30cc47a30e6d86120773a429025887f56fe4..fce61e70ac4d99aa62e2ab9ec20de1f8639d1793 100644 (file)
@@ -4,7 +4,8 @@ APACHE_MODPATH_INIT(http)
 
 http_objects="http_core.lo http_protocol.lo http_request.lo"
 
-APACHE_MODULE(http, HTTP protocol handling, $http_objects, , yes)
+dnl mod_http freaks out when built as a DSO
+APACHE_MODULE(http, HTTP protocol handling, $http_objects, , static)
 APACHE_MODULE(mime, mapping of file-extension to MIME, , , yes)
 
 APACHE_MODPATH_FINISH
index 7ebf46a7b912743db8570748de5a17168f5a0f31..ff7ac5de5dcde7a8fbb4853506e25c2380b2fa82 100644 (file)
@@ -18,7 +18,7 @@ APACHE_MODULE(rewrite, regex URL translation, , , most, [
 ])
 
 if test "$sharedobjs" = "yes"; then
-    APACHE_MODULE(so, DSO capability, , , yes)
+    APACHE_MODULE(so, DSO capability, , , static)
 else
     APACHE_MODULE(so, DSO capability, , , no)
 fi