diff options
author | Sander Striker <striker@apache.org> | 2003-06-02 12:50:52 +0000 |
---|---|---|
committer | Sander Striker <striker@apache.org> | 2003-06-02 12:50:52 +0000 |
commit | 9478c4645e2a27f9a80f983631698b1da5512e57 (patch) | |
tree | 7d25e691ccdc9345a7741295e203474fdc033eeb /apr-config.in | |
parent | dc8fc57020c2dbdc7969316530f07ba2a1106e42 (diff) | |
download | apr-9478c4645e2a27f9a80f983631698b1da5512e57.tar.gz |
Add a check to see if the sourcedir actually exists. If it doesn't,
which is likely when installed by a package, don't try and expand
the path using realpath.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r-- | apr-config.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apr-config.in b/apr-config.in index 0593e48fc..6afeb00a1 100644 --- a/apr-config.in +++ b/apr-config.in @@ -134,7 +134,9 @@ fi # Otherwise, being in a symlinked dir may result in incorrect output. if test -x "`which realpath 2>/dev/null`"; then thisdir="`realpath $thisdir`" - APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`" + if test -d "$APR_SOURCE_DIR"; then + APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`" + fi if test -n $tmpbindir; then tmpbindir="`realpath $tmpbindir`" fi |