You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 2004/09/01 21:37:40 UTC
[PATCHLET] Apache 2.0 - Expand --with-module
I'd like to propose this patch for Apache 2.0/2.1.
Basically, occasionally, I like to build in some development modules
but as statically linked, not as DSOs. What I like to do is
create a small local directory under ./modules and populate that
with the required Makefile.in and config.m4 file (and, of
course, the modules themselves) and then do a
./configure --with-module=jimlocal/foo
to statically build and load mod_foo.c in the modules/jimlocal
directory. The below allows for this capability without breaking
the existing usage.
There are some other weird things with this code section
(what that 'cp' is doing there, I have no idea), but at
least this allows for a more robust usage of --with-module
Index: modules/config5.m4
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/config5.m4,v
retrieving revision 1.3
diff -u -r1.3 config5.m4
--- modules/config5.m4 4 Mar 2002 21:20:12 -0000 1.3
+++ modules/config5.m4 1 Sep 2004 19:31:58 -0000
@@ -37,6 +37,8 @@
mv $modpath_current/modules.mk.tmp $modpath_current/modules.mk
fi
MODLIST="$MODLIST $module"
+ MODULE_DIRS="$MODULE_DIRS $modtype"
+ APACHE_FAST_OUTPUT($modpath_current/Makefile)
AC_MSG_RESULT(added $withval)
],
[ AC_MSG_RESULT(no extra modules)
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"A society that will trade a little liberty for a little order
will lose both and deserve neither" - T.Jefferson