old, and unlikely to be able to handle modern C programs for other
reasons (e.g. not having a C90-compliant compiler at all).
+*** Configure scripts require support for $( ... ) command substitution.
+
+ This POSIX shell feature is approximately the same age as
+ user-defined functions, but there do exist shells that support
+ functions and not $( ... ), such as Solaris 10 /bin/sh.
+
+ Configure scripts will automatically locate a shell that supports
+ this feature and re-execute themselves with it, if necessary, so
+ the new requirement should be transparent to most users.
+
+ In this release, most of Autoconf’s code still uses the older `...`
+ notation for command substitution.
+
*** AC_INIT now trims extra white space from its arguments.
For instance, AC_INIT([ GNU Hello ], [1.0]) will set PACKAGE_NAME
test x$exitcode = x0[]])# _AS_SHELL_FN_WORK
+# _AS_MODERN_CMDSUBST_WORKS
+# -------------------------
+# This is a spy to detect "in the wild" shells that do not support
+# the newer $(...) form of command substitutions.
+m4_define([_AS_MODERN_CMDSUBST_WORKS],
+[blah=$(echo $(echo blah))
+test x"$blah" = xblah])
+
+
# _AS_SHELL_SANITIZE
# ------------------
# This is the prolog that is emitted by AS_INIT and AS_INIT_GENERATED;
m4_provide_if([AS_INIT], [],
[m4_provide([AS_INIT])
_AS_DETECT_REQUIRED([_AS_SHELL_FN_WORK])
+_AS_DETECT_REQUIRED([_AS_MODERN_CMDSUBST_WORKS])
_AS_DETECT_REQUIRED([_AS_TEST_X_WORKS])
_AS_DETECT_BETTER_SHELL
_AS_UNSET_PREPARE
m4_divert([BODY])dnl
m4_text_box([Main body of script.])
_AS_DETECT_REQUIRED([_AS_SHELL_FN_WORK])dnl
+_AS_DETECT_REQUIRED([_AS_MODERN_CMDSUBST_WORKS])dnl
_AS_DETECT_REQUIRED([_AS_TEST_X_WORKS])dnl
AS_REQUIRE([_AS_UNSET_PREPARE], [], [M4SH-INIT-FN])dnl
])