httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@hyperreal.org
Subject cvs commit: apache-1.3/src Configure
Date Wed, 15 Dec 1999 21:45:20 GMT
martin      99/12/15 13:45:19

  Modified:    src      Configure
  Log:
  Avoid spawning an extra subshell for every header file.
  Protect the environment elsewhere by putting the whole
  header loop in a subshell. Noticed by Ralf Engelschall
  
  Revision  Changes    Path
  1.382     +4 -1      apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.381
  retrieving revision 1.382
  diff -u -r1.381 -r1.382
  --- Configure	1999/12/13 22:00:17	1.381
  +++ Configure	1999/12/15 21:45:17	1.382
  @@ -931,11 +931,13 @@
   
   echo " + checking for system header files"
   CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h sys/select.h
sys/processor.h sys/param.h"
  +(
  +export CPP
   for header in $CHECK_FOR_HEADERS; do
       echo "" >>$AP_CONFIG_AUTO_H
       echo "/* check: #include <$header> */" >>$AP_CONFIG_AUTO_H
       name="`echo $header | sed -e 's:/:_:g' -e 's:\.:_:g' | tr '[a-z]' '[A-Z]'`"
  -    ( export CPP; ./helpers/checkheader.sh $header )
  +    ./helpers/checkheader.sh $header
       if [ $? -eq 0 ]; then
   	echo "#ifndef HAVE_${name}" >>$AP_CONFIG_AUTO_H
   	echo "#define HAVE_${name} 1" >>$AP_CONFIG_AUTO_H
  @@ -946,6 +948,7 @@
   	echo "#endif" >>$AP_CONFIG_AUTO_H
       fi
   done
  +)
   
   ####################################################################
   # Special AIX 4.x support: need to check for sys/processor.h
  
  
  

Mime
View raw message