pcs         98/03/09 00:41:59

  Modified:    src      Configure
  Log:
  This 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. 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.
  
  Reviewed by:  Dean Gaudet, Ralf S. Engelschall, Ken Coar
  
  Revision  Changes    Path
  1.196     +8 -0      apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.195
  retrieving revision 1.196
  diff -u -r1.195 -r1.196
  --- Configure 1998/03/08 12:58:19     1.195
  +++ Configure 1998/03/09 08:41:58     1.196
  @@ -1029,6 +1029,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.
   #
  
  
  

Reply via email to