libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI-1.5] CDPATH


From: Peter O'Gorman
Subject: [FYI-1.5] CDPATH
Date: Fri, 30 Jul 2004 23:18:12 +0900
User-agent: Mozilla Thunderbird 0.6 (Macintosh/20040502)

I just applied this.

Peter
--
Peter O'Gorman - http://www.pogma.com

Index: ChangeLog
        * libtool.m4, ltmain.in:  autoconf now says the best thing to do
        with CDPATH is to (unset CDPATH) >/dev/null 2>&1 && unset CDPATH,
        so do it.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.41
diff -u -3 -p -u -r1.314.2.41 libtool.m4
--- libtool.m4 30 Jul 2004 13:16:55 -0000 1.314.2.41
+++ libtool.m4 30 Jul 2004 13:58:50 -0000
@@ -319,7 +319,7 @@ fi
 
 # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.
-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 if test -z "$ECHO"; then
 if test "X${echo_test_string+set}" != Xset; then
@@ -3980,7 +3980,7 @@ Xsed="$SED -e s/^X//"
 
 # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.
-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 # The names of the tagged configurations supported by this script.
 available_tags=
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.334.2.36
diff -u -3 -p -u -r1.334.2.36 ltmain.in
--- ltmain.in 30 Jul 2004 13:16:56 -0000 1.334.2.36
+++ ltmain.in 30 Jul 2004 13:58:57 -0000
@@ -4831,7 +4831,7 @@ sed_quote_subst='$sed_quote_subst'
 
 # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.
-if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 relink_command=\"$relink_command\"
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]