jerenkrantz 2003/01/08 01:49:32
Modified: . CHANGES apu-config.in
Log:
Allow apu-config to work in symlinked install directories when 'realpath' is
available.
Revision Changes Path
1.92 +3 -0 apr-util/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr-util/CHANGES,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -u -r1.91 -r1.92
--- CHANGES 29 Dec 2002 21:17:21 -0000 1.91
+++ CHANGES 8 Jan 2003 09:49:32 -0000 1.92
@@ -1,5 +1,8 @@
Changes with APR-util 0.9.2
+ *) Allow apu-config to work in symlinked install directories when
+ 'realpath' is available. [Justin Erenkrantz]
+
*) Fix bug in apr_strmatch when used with case-insensitive patterns.
[Justin Erenkrantz]
1.25 +5 -0 apr-util/apu-config.in
Index: apu-config.in
===================================================================
RCS file: /home/cvs/apr-util/apu-config.in,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -u -r1.24 -r1.25
--- apu-config.in 1 Jan 2003 00:02:17 -0000 1.24
+++ apu-config.in 8 Jan 2003 09:49:32 -0000 1.25
@@ -110,6 +110,11 @@
thisdir="`dirname $0`"
thisdir="`cd $thisdir && pwd`"
+# If we have the realpath program, use it to resolve symlinks.
+# Otherwise, being in a symlinked dir may result in incorrect output.
+if test -x `which realpath 2>/dev/null`; then
+ thisdir="`realpath $thisdir`"
+fi
if test -d $bindir; then
tmpbindir="`cd $bindir && pwd`"
else
|