]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Don't check for non-POSIX extensions in suggested tests.
authorEric Blake <ebb9@byu.net>
Thu, 30 Oct 2008 15:39:57 +0000 (09:39 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 30 Oct 2008 15:50:46 +0000 (09:50 -0600)
* lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
we still use += if available, but should not reject shells (like
dash) that don't provide it.
(_AS_DETECT_SUGGESTED): Document a policy for m4sh.
Reported by Paolo Bonzini.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/m4sugar/m4sh.m4

index 89c2214bc6c0ec4376dbc1ea699cbf69bc91d5af..a9556b85cd7eacf47fa3a71e9a4f1d0566cc0a37 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-10-30  Eric Blake  <ebb9@byu.net>
+
+       Don't check for non-POSIX extensions in suggested tests.
+       * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
+       we still use += if available, but should not reject shells (like
+       dash) that don't provide it.
+       (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
+       Reported by Paolo Bonzini.
+
 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
 
        Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
index e0870ab8c6c3ae9ccdff55b708f13a976a389f18..52b21ac286e2e8edfae0352839eba26319b35854 100644 (file)
@@ -173,6 +173,9 @@ m4_define([_AS_DETECT_EXPAND],
 # -------------------------
 # Refuse to execute under a shell that does not pass the given TEST.
 # Does not do AS_REQUIRE for the better-shell detection code.
+#
+# M4sh should never require something not required by POSIX, although
+# other clients are free to do so.
 m4_defun([_AS_DETECT_REQUIRED],
 [m4_set_add([_AS_DETECT_REQUIRED_BODY], [$1 || AS_EXIT])])
 
@@ -181,6 +184,9 @@ m4_defun([_AS_DETECT_REQUIRED],
 # --------------------------
 # Prefer to execute under a shell that passes the given TEST.
 # Does not do AS_REQUIRE for the better-shell detection code.
+#
+# M4sh should never suggest something not required by POSIX, although
+# other clients are free to do so.
 m4_defun([_AS_DETECT_SUGGESTED],
 [m4_set_add([_AS_DETECT_SUGGESTED_BODY], [$1 || AS_EXIT])])
 
@@ -1682,7 +1688,6 @@ m4_define([_AS_VAR_APPEND_WORKS],
 # Note that unlike AS_VAR_SET, VALUE must be properly quoted to avoid
 # field splitting and file name expansion.
 m4_defun_init([AS_VAR_APPEND],
-[_AS_DETECT_SUGGESTED([_AS_VAR_APPEND_WORKS])]dnl
 [AS_REQUIRE([_AS_VAR_APPEND_PREPARE], [], [M4SH-INIT-FN])],
 [as_func_append $1 $2])