httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r687939 - /httpd/httpd/trunk/buildconf
Date Fri, 22 Aug 2008 04:45:02 GMT
Author: wrowe
Date: Thu Aug 21 21:45:02 2008
New Revision: 687939

URL: http://svn.apache.org/viewvc?rev=687939&view=rev
Log:
Permit --with-apr=/path/to/apr alone, where the default path will
be handled by replacing all /apr path segments with /apr-util 
(or /aprutil) to handle nearly any developer's path scheme.  One
rare exception would be /asf/srcs/aprutil/trunk/apr-util or similar
where both /aprutil and /apr-util path segments exist.

So for example --with-apr=../apr-1.3 would find either ../apr-util-1.3
or ../aprutil-1.3 before looking for srclib/apr-util or ../apr-util.

These refer to source trees.  httpd ./configure deserves a similar 
feature to use --with-apr= for an installed apr-util lib tree.

Modified:
    httpd/httpd/trunk/buildconf

Modified: httpd/httpd/trunk/buildconf
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/buildconf?rev=687939&r1=687938&r2=687939&view=diff
==============================================================================
--- httpd/httpd/trunk/buildconf (original)
+++ httpd/httpd/trunk/buildconf Thu Aug 21 21:45:02 2008
@@ -23,7 +23,7 @@
 # can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
 
 apr_src_dir="srclib/apr ../apr"
-apu_src_dir="srclib/apr-util ../apr-util"
+apu_src_dir=""
 
 while test $# -gt 0 
 do
@@ -78,6 +78,12 @@
     should_exit=1
 fi
 
+if test -z "$apu_src_dir"; then
+    apu_src_dir=`echo $apr_src_dir | sed -e 's#/apr#/apr-util#g;'`
+    apu_src_dir="$apu_src_dir `echo $apr_src_dir | sed -e 's#/apr#/aprutil#;g'`"
+    apu_src_dir="$apu_src_dir srclib/apr-util ../apr-util"
+fi
+
 for dir in $apu_src_dir
 do
     if [ -f "${dir}/Makefile.in" ]; then



Mime
View raw message