summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/apr-config.in b/apr-config.in
index 8644321c9..a87cd3421 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -114,7 +114,11 @@ fi
thisdir="`dirname $0`"
thisdir="`cd $thisdir && pwd`"
-tmpbindir="`cd $bindir && pwd`"
+if test -d $bindir; then
+ tmpbindir="`cd $bindir && pwd`"
+else
+ tmpbindir=""
+fi
if test "$tmpbindir" = "$thisdir"; then
location=installed
elif test "$APR_SOURCE_DIR" = "$thisdir"; then