diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2008-08-22 06:45:02 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2008-08-22 06:45:02 +0200 |
commit | 4983b63a58d7f06b884a4ffaedb69f1ce6ffc5fa (patch) | |
tree | 72f66b155920b9469fae14f18ec8c4c5c40ca5c1 /buildconf | |
parent | Move struct definition out of the header file since it is only used in this s... (diff) | |
download | apache2-4983b63a58d7f06b884a4ffaedb69f1ce6ffc5fa.tar.xz apache2-4983b63a58d7f06b884a4ffaedb69f1ce6ffc5fa.zip |
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@687939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 @@ if [ $apr_found -lt 1 ]; then 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 |