You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by st...@apache.org on 2003/06/02 14:51:54 UTC
cvs commit: apr-util apu-config.in
striker 2003/06/02 05:51:54
Modified: . apu-config.in
Log:
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.
Revision Changes Path
1.32 +3 -1 apr-util/apu-config.in
Index: apu-config.in
===================================================================
RCS file: /home/cvs/apr-util/apu-config.in,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- apu-config.in 23 Mar 2003 03:32:57 -0000 1.31
+++ apu-config.in 2 Jun 2003 12:51:54 -0000 1.32
@@ -120,7 +120,9 @@
# Otherwise, being in a symlinked dir may result in incorrect output.
if test -x "`which realpath 2>/dev/null`"; then
thisdir="`realpath $thisdir`"
- APU_SOURCE_DIR="`realpath $APU_SOURCE_DIR`"
+ if test -d "$APU_SOURCE_DIR"; then
+ APU_SOURCE_DIR="`realpath $APU_SOURCE_DIR`"
+ fi
if test -n $tmpbindir; then
tmpbindir="`realpath $tmpbindir`"
fi