httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@c2.net>
Subject [PATCH] Allow multiple modules to set SERVER_SUBVERSION
Date Sun, 08 Mar 1998 13:30:05 GMT
This simple patch lets modules append themselves to SERVER_SUBVERSION at
configure time without interfering with other modules doing the same. It
is used like this in .module files or CONFIG_START/END sections: 

 SUBVERSION="$SUBVERSION mymodule/123"

At present multiple modules adding themselves to the version string get
confused, causing compile warnings and ending up with only one module in
the version. I think this is a bug fix to the configure process. Module
authors using -DSERVER_SUBVERSION in their $CFLAGS will have to make a
slight modification to the above format instead. This will only affect
modules designed for 1.3 betas. 

//pcs

Index: Configure
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/Configure,v
retrieving revision 1.194
diff -u -r1.194 Configure
--- Configure	1998/03/05 18:58:31	1.194
+++ Configure	1998/03/08 13:24:56
@@ -1047,6 +1047,14 @@
 EOF4
 awk -f $awkfile >>Makefile </dev/null
 
+#
+# Now add -DSERVER_SUBVERSION if $SUBVERSION is set
+#
+if [ "x$SUBVERSION" != "x" ] ; then
+        SUBVERSION=`echo $SUBVERSION | sed 's/^ +//'`
+	CFLAGS="$CFLAGS -DSERVER_SUBVERSION=\"$SUBVERSION\""
+fi
+
 ####################################################################
 # Continue building Makefile.config.
 #


Mime
View raw message