diff options
author | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2003-06-02 12:50:52 +0000 |
---|---|---|
committer | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2003-06-02 12:50:52 +0000 |
commit | 5cb86202f0c8d3b43c336d11fe7387376ed979ac (patch) | |
tree | 7d25e691ccdc9345a7741295e203474fdc033eeb /apr-config.in | |
parent | 2e25b329b262a3be3a170f0b949c41a1b991997a (diff) | |
download | libapr-5cb86202f0c8d3b43c336d11fe7387376ed979ac.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: http://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 |