]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Updated code enabling Bourne-compatibility in test scripts.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 8 Oct 2009 20:57:26 +0000 (22:57 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 11 Oct 2009 11:27:32 +0000 (13:27 +0200)
* tests/defs.in: updated the code enabling Bourne-compatibility
mode in the shell (now it's copied from autoconf 2.64).

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/defs.in

index 61d415b92244d1ec29392d09f460425226fdea07..cd3746c38cf02aab3ab35996e4ece7e2b9589ff5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       Updated code enabling Bourne-compatibility in test scripts.
+       * tests/defs.in: updated the code enabling Bourne-compatibility
+       mode in the shell (now it's copied from autoconf 2.64).
+
        Avoid leaking TEST_LOG_COMPILER in environment of test scripts.
        * tests/defs.in: Unset variable `TEST_LOG_COMPILER'.
 
index 06f81108529f82a2219a17118f3d681c29011053..995e6494af1cf69cdefd75cbf2cb63413a56d8d8 100644 (file)
 # Defines for Automake testing environment.
 # Tom Tromey <tromey@cygnus.com>
 
-# Be Bourne compatible.
-# (Snippet copied from configure's initialization in Autoconf 2.59c.)
+# Be more Bourne compatible.
+# (Snippet copied from configure's initialization in Autoconf 2.64)
+DUALCASE=1; export DUALCASE # for MKS sh
 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
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   # is contrary to our usage.  Disable this feature.
   alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
 else
   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
 
 # Ensure we are running from the right directory.
 test -f ./defs || {