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.
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.
* 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.
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
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"
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"}
# 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