+2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
+ $as_shell.exe too. Problem reported by Andreas Buening in
+ <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
+
2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
`unused variable' compiler warning, for `-Wall -Werror'.
- Report by Jaap Haitsma <jaap@haitsma.org>.
+ Reported by Jaap Haitsma in
+ <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
# AS_BOURNE_COMPATIBLE
# --------------------
# Try to be as Bourne and/or POSIX as possible.
+#
+# FIXME: The assignment to BIN_SH is dubious; see
+# <http://lists.gnu.org/archive/html/autoconf-patches/2006-03/msg00081.html>.
+# It might be better to remove it, but first please see
+# <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00025.html>.
m4_define([AS_BOURNE_COMPATIBLE],
[# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
# -----------------------
# The real workhorse for detecting a shell with the correct
# features.
+#
+# FIXME: The '/usr/bin/posix' below works around a shell bug in OSF
+# <http://lists.gnu.org/archive/html/autoconf-patches/2006-03/msg00081.html>
+# but this causes a regression on OpenServer 6.0.0
+# <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00017.html>
+# The code should test for the OSF bug directly rather than look at
+# /usr/bin/posix here.
+#
+# FIXME: The 'test -f "$as_shell.exe"' works around a problem in OS/2
+# <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>
+# but we should replace the two test -f calls with a single AS_EXECUTABLE_P.
+#
m4_defun_once([_AS_DETECT_BETTER_SHELL],
[m4_wrap([m4_divert_text([M4SH-SANITIZE], [
AS_REQUIRE([_AS_UNSET_PREPARE])dnl
esac])
for as_shell in $as_candidate_shells $SHELL; do
- # Try only shells which exist, to save several forks.
- AS_IF([test -f "$as_shell" &&
+ # Try only shells that exist, to save several forks.
+ AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } &&
_AS_RUN([_AS_DETECT_REQUIRED_BODY],
[("$as_shell") 2> /dev/null])],
[CONFIG_SHELL=$as_shell
# ----------------
# Find out ahead of time whether ``test -x'' can be used to distinguish
# executables from other regular files.
+# FIXME: This should use "test -x /"; that's much faster.
m4_defun([_AS_TEST_PREPARE],
[# Find out whether ``test -x'' works. Don't use a zero-byte file, as
# systems may use methods other than mode bits to determine executability.