Commit bb5367cb authored by Cliff Woolley's avatar Cliff Woolley
Browse files

./configure --enable-http --enable-mods-shared=most would cause mod_http

to get built as a DSO, which it can't be.  This forces it to be static
only.

PR:  9244
Submitted by:  Cliff Woolley, and simultaneously by
               Robin Johnson <robbat2@orbis-terrarum.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95194 13f79535-47bb-0310-9956-ffa450edef68
parent c58babae
Loading
Loading
Loading
Loading
+10 −1
Changes for modules/http/config2.m4: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,16 @@ APACHE_MODPATH_INIT(http)

http_objects="http_core.lo http_protocol.lo http_request.lo"

dnl mod_http freaks out when built as a DSO
dnl mod_http should only be built as a static module for now.
dnl this will hopefully be "fixed" at some point in the future by
dnl refactoring mod_http and moving some things to the core and
dnl vice versa so that the core does not depend upon mod_http.
if test "$enable_http" = "yes"; then
    enable_http="static"
elif test "$enable_http" = "shared"; then
    AC_MSG_ERROR([mod_http can not be built as a shared DSO])
fi

APACHE_MODULE(http, HTTP protocol handling, $http_objects, , static)
APACHE_MODULE(mime, mapping of file-extension to MIME, , , yes)