summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2002-04-01 19:30:27 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2002-04-01 19:30:27 +0000
commit5874395a81b050656dce23b7e7690b23f9f4d44c (patch)
tree06aeba213e2bd0141ee1bec7175006b3f392993d /apr-config.in
parent01419dafece8e65cc71e7f77748ace37bd1cbbee (diff)
downloadlibapr-5874395a81b050656dce23b7e7690b23f9f4d44c.tar.gz
Fix apr-config so that it will not attempt to cd to bindir if it doesn't
exist yet. git-svn-id: http://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