summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2002-04-01 19:30:27 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2002-04-01 19:30:27 +0000
commita2a9a91d3961b1f79b1e650f8639b036bee1e62a (patch)
tree06aeba213e2bd0141ee1bec7175006b3f392993d /apr-config.in
parentb14b56d4a2c10d1b0a76db81771da93b3f240b2e (diff)
downloadapr-a2a9a91d3961b1f79b1e650f8639b036bee1e62a.tar.gz
Fix apr-config so that it will not attempt to cd to bindir if it doesn't
exist yet. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63213 13f79535-47bb-0310-9956-ffa450edef68
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