]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtoolize.in, config/ltmain.in: Add CDPATH protection to
authorGary V. Vaughan <gary@gnu.org>
Wed, 1 Sep 2004 09:48:25 +0000 (09:48 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 1 Sep 2004 09:48:25 +0000 (09:48 +0000)
preamble.
* tests/defs: Put a full m4sh.m4 style 'Be Bourne compatible'
preamble in here too.
* HACKING: Note that tests/defs needs synching with m4sh.m4 too.
* TODO: Add new item.

ChangeLog
HACKING
TODO
config/ltmain.in
libtoolize.in
tests/defs

index 717cc23645ed41981ab50b08aaaee2d55970a2b0..1ca4e1c42f0f5986edd56b6f5dbfe5822bbfe8ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2004-09-01  Gary V. Vaughan  <gary@gnu.org>
 
+       * libtoolize.in, config/ltmain.in: Add CDPATH protection to
+       preamble.
+       * tests/defs: Put a full m4sh.m4 style 'Be Bourne compatible'
+       preamble in here too.
+       * HACKING: Note that tests/defs needs synching with m4sh.m4 too.
+       * TODO: Add new item.
+
        * libltdl/ltdl.c (try_dlopen, lt_dlforeachfile): Use correct cpp
        macro name, LT_DLSEARCH_PATH.
 
diff --git a/HACKING b/HACKING
index 957de31930dbfb30432a1194a813182823cdf143..0df96e1e2dc3818cf8298326b4c2f6d7bec6351d 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -131,9 +131,9 @@ and is not part of a release distribution.
 * Update NEWS, ChangeLog.
 
 * Make sure the 'Be Bourne compatible' shell snippet near the top of
-  ./libtoolize.in, ./ltmain.in matches the latest autoconf wisdom by
-  updating to match CVS autoconf AS_SHELL_SANITIZE in autoconf's
-  lib/m4sugar/m4sh.m4.
+  ./libtoolize.in, config/ltmain.in and tests/defs matches the latest
+  autoconf wisdom by updating to match CVS autoconf AS_SHELL_SANITIZE in
+  autoconf's lib/m4sugar/m4sh.m4.
 
 * Run ./bootstrap.
 
diff --git a/TODO b/TODO
index 9647a0032802f13e694f52edbc6fc5bbc336074b..6393078790234f85e3de0752ded6f928a966a0c7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -7,6 +7,10 @@ GNU Libtool
 1.1. libtool
 ------------
 
+* Factor common shell preamble and function definitions into a separate
+  file and substitute the contents into all of our shell scripts at
+  bootstrap, to avoid any synchronisation issues.
+
 * We could have an option to hardcode paths into libraries, as well as
   binaries: `... -Wl,-soname -Wl,/tmp/libtest.so.0 ...'.  This is not
   possible on all platforms, and is in part obviated by the ability of
index 29395ac4fe0ad160405a849b5dfa7033f7a45a27..00910959923fa2fe80df220be2b3ec687b972ad3 100644 (file)
@@ -80,6 +80,10 @@ elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/nul
 fi
 DUALCASE=1; export DUALCASE # for MKS sh
 
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
 dirname="s,/[^/]*$,,"
 basename="s,^.*/,,g"
 
index ed5d1e2eeb93acce83d2a8eedc6fa3f1422b5742..5bc34abd35e9d75a71c4b3bdece1e5fc5a576971 100644 (file)
@@ -70,6 +70,10 @@ elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/nul
 fi
 DUALCASE=1; export DUALCASE # for MKS sh
 
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
 : ${CP="cp -f"}
 : ${LN_S="@LN_S@"}
 : ${MKDIR="mkdir"}
index f99074f0dea49ec21e4bb3ff04fdf6e00f486ea6..3b3492ba291aca818bd984f1adb71f22d41da0c7 100644 (file)
@@ -3,11 +3,22 @@
 # Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 # Gary V. Vaughan <gary@gnu.org>, 2003
 
-# See if we are running on zsh, and set the options which allow our
-# commands through without removal of \ escapes.
-if test -n "${ZSH_VERSION+set}" ; then
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
   setopt NO_GLOB_SUBST
+elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
 fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 # Check that srcdir is set to an absolute path.
 case "$srcdir" in