]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_mode_link) <shell wrapper>:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 13 Feb 2006 16:51:50 +0000 (16:51 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 13 Feb 2006 16:51:50 +0000 (16:51 +0000)
Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues
with zsh and other shells.
Reported by David Gómez Espinosa <david@pleyades.net>.

ChangeLog
libltdl/config/ltmain.m4sh

index 8a02295dea62c38debe8258a89e395339f7621a7..0e42069538d71d3910b76f46173a5e646961b757 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/config/ltmain.m4sh (func_mode_link) <shell wrapper>: 
+       Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues
+       with zsh and other shells.
+       Reported by David Gómez Espinosa <david@pleyades.net>.
+
 2006-02-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/m4/libtool.m4 (AC_PROG_SED): m4_defun this rather
index dc0fdc6284190568d42776819217b99d20541280..87c974fbcbdf2b1703dd914faeeafed5a1444cb6 100644 (file)
@@ -6186,6 +6186,20 @@ EOF
 Xsed='${SED} -e 1s/^X//'
 sed_quote_subst='$sed_quote_subst'
 
+# 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
+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
+
 # 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