summaryrefslogtreecommitdiffstats
path: root/buildconf
diff options
context:
space:
mode:
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildconf b/buildconf
index 6a50c16985..706751ca15 100755
--- a/buildconf
+++ b/buildconf
@@ -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