httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr apr_common.m4
Date Wed, 30 Aug 2000 01:32:51 GMT
gstein      00/08/29 18:32:50

  Modified:    src/lib/apr apr_common.m4
  Log:
  fix the cache mgmt when configuring a sub-package: this saves work up to the
      sub-config point, runs the sub-config, then loads whatever the sub-config
      added to the cached config values.
  also: allow additional command-line arguments to be pass to the sub-config
  
  (this speeds up the ./configure process)
  
  Revision  Changes    Path
  1.4       +10 -2     apache-2.0/src/lib/apr/apr_common.m4
  
  Index: apr_common.m4
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/apr_common.m4,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- apr_common.m4	2000/07/23 12:32:17	1.3
  +++ apr_common.m4	2000/08/30 01:32:50	1.4
  @@ -1,4 +1,10 @@
  +dnl
  +dnl RUN_SUBDIR_CONFIG_NOW(dir [, sub-package-cmdline-args])
  +dnl
   AC_DEFUN(RUN_SUBDIR_CONFIG_NOW, [
  +  # save our work to this point; this allows the sub-package to use it
  +  AC_CACHE_SAVE
  +
     echo "configuring package in $1 now"
     ac_popdir=`pwd`
     ac_abs_srcdir=`(cd $srcdir/$1 && pwd)`
  @@ -19,8 +25,7 @@
     esac
   
     # The eval makes quoting arguments work.
  - 
  -  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
  +  if eval $ac_abs_srcdir/configure $ac_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
$2
     then :
       echo "$1 configured properly"
     else
  @@ -28,6 +33,9 @@
     fi
   
     cd $ac_popdir
  +
  +  # grab any updates from the sub-package
  +  AC_CACHE_LOAD
   ])
   dnl
   dnl REENTRANCY_FLAGS
  
  
  

Mime
View raw message