]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix recent testsuite failures.
authorEric Blake <ebb9@byu.net>
Thu, 4 Oct 2007 21:31:41 +0000 (15:31 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 4 Oct 2007 23:07:42 +0000 (17:07 -0600)
* lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
that must not be re-expanded after AS_ESCAPE.
* lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
checking if it is an identifier.

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

index ed77090b7cbde0778c4cb85b2336f0fc823eac2b..9052228dcf19922cd0ae012794083f1c3284811d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-10-04  Eric Blake  <ebb9@byu.net>
 
+       Fix recent testsuite failures.
+       * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
+       that must not be re-expanded after AS_ESCAPE.
+       * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
+       checking if it is an identifier.
+
        Whitespace cleanup.
        * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
        leading whitespace, as it caused space-tab in testsuite.
index b55741dd39a0f5e72607fd932771fd077f5efda9..5390d49856ccd5e0998b8d4869cca255b6ed58ef 100644 (file)
@@ -304,7 +304,7 @@ at_groups_all='AT_groups_all'
 # numerical order.
 at_format='m4_bpatsubst(m4_defn([AT_ordinal]), [.], [?])'
 # Description of all the test groups.
-at_help_all="AS_ESCAPE(m4_defn([AT_help_all]))"])])dnl
+at_help_all="AS_ESCAPE(m4_dquote(m4_defn([AT_help_all])))"])])dnl
 m4_divert_push([PARSE_ARGS])dnl
 
 at_prev=
@@ -1202,7 +1202,7 @@ m4_append([AT_groups_all], [ ]m4_defn([AT_ordinal]))
 m4_divert_push([TESTS])dnl
   AT_ordinal ) @%:@ AT_ordinal. m4_defn([AT_line]): m4_defn([AT_description])
     at_setup_line='m4_defn([AT_line])'
-    at_desc="AS_ESCAPE(m4_defn([AT_description]))"
+    at_desc="AS_ESCAPE(m4_dquote(m4_defn([AT_description])))"
     $at_quiet AS_ECHO_N(["m4_format([%3d: ], AT_ordinal)$at_desc"]dnl
 ["m4_format(%m4_eval(47 - m4_qlen(m4_defn([AT_description])))[s])"])
 m4_divert_push([TEST_SCRIPT])dnl
index 025934d84495f41811354256c24fc9c8755e3f40..26326f5ed388a6b2ad1b41a9826735e34ad52655 100644 (file)
@@ -1249,7 +1249,7 @@ m4_define([AS_IDENTIFIER_IF],
        [_$0(m4_bpatsubst([[$1]], [@&t@]), [$2], [$3])])])
 m4_define([_AS_IDENTIFIER_IF],
 [m4_if([$1], [], [$3],
-       m4_translit([$1], ]m4_dquote(m4_defn([m4_cr_symbols2]))[), [],
+       m4_translit([[$1]], ]m4_dquote(m4_defn([m4_cr_symbols2]))[), [],
        [m4_if(m4_len(m4_translit(m4_format([[%.1s]], [$1]), ]]dnl
 m4_dquote(m4_dquote(m4_defn([m4_cr_symbols1])))[[)), [0], [$2], [$3])],
        [$3])])