You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jon Middleton <jj...@ixtab.org.uk> on 2002/08/02 18:52:03 UTC

[PATCH] Add option to configure to disable module activation (revised)

* Makefile.in
Change the -a option of INSTALL_MOD_SHARED to @MOD_ACTIVATION@
substation variable which is defined in configure.in

* configure.in
Add a AC_ARG_ENABLE function that defines a mod-activation feature
which sub-statues @MOD_ACTIVATION@ in Makefile.in, this feature
defaults to on.

-
Patch description

This patch adds a --disable-mod-activation option to configure option
which removes the -a option from apxs when installing mod_dav_svn. The
default behavior is to activate the module.

Jon.

Index: ./Makefile.in
===================================================================
--- ./Makefile.in
+++ ./Makefile.in	2002-07-30 21:30:34.000000000 +0100
@@ -80,7 +80,7 @@
 INSTALL_BIN = $(LIBTOOL) --mode=install $(INSTALL)
 INSTALL_FS_BIN = $(INSTALL_BIN)
 INSTALL_INCLUDE = $(INSTALL) -m 644
-INSTALL_MOD_SHARED = @APXS@ -i -a
+INSTALL_MOD_SHARED = @APXS@ -i @MOD_ACTIVATION@
 INSTALL_MOD_STATIC = $(INSTALL) -m 644
 INSTALL_DATA = $(INSTALL) -m 644
 
Index: ./configure.in
===================================================================
--- ./configure.in
+++ ./configure.in	2002-08-02 18:41:29.000000000 +0100
@@ -198,6 +198,20 @@
     fi
 ])
 
+MOD_ACTIVATION="-a"
+AC_ARG_ENABLE(mod-activation,
+[  --disable-mod-activation  Do not enable mod_dav_svn in httpd.conf],
+[
+    if test "$enableval" = "no" ; then
+      MOD_ACTIVATION=""
+      AC_MSG_NOTICE([Disabling apache module activation])
+    else
+      AC_MSG_NOTICE([Enabling apache module activation])
+    fi
+])
+AC_SUBST(MOD_ACTIVATION)
+
+
 AC_ARG_ENABLE(maintainer-mode,
 [  --enable-maintainer-mode  Turn on debugging and very strict compile-time
                           warnings],

Re: [PATCH] Add option to configure to disable module activation (revised)

Posted by br...@xbc.nu.
Jon Middleton wrote:

>* Makefile.in
>Change the -a option of INSTALL_MOD_SHARED to @MOD_ACTIVATION@
>substation variable which is defined in configure.in
>
>* configure.in
>Add a AC_ARG_ENABLE function that defines a mod-activation feature
>which sub-statues @MOD_ACTIVATION@ in Makefile.in, this feature
>defaults to on.
>
>-
>Patch description
>
>This patch adds a --disable-mod-activation option to configure option
>which removes the -a option from apxs when installing mod_dav_svn. The
>default behavior is to activate the module.
>  
>

Committed in revision 2881. Thanks!

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org