diff options
author | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2002-04-01 19:30:27 +0000 |
---|---|---|
committer | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2002-04-01 19:30:27 +0000 |
commit | 5874395a81b050656dce23b7e7690b23f9f4d44c (patch) | |
tree | 06aeba213e2bd0141ee1bec7175006b3f392993d /apr-config.in | |
parent | 01419dafece8e65cc71e7f77748ace37bd1cbbee (diff) | |
download | libapr-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.in | 6 |
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 |