]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
authorEric Blake <ebb9@byu.net>
Thu, 5 Jun 2008 21:18:11 +0000 (15:18 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 5 Jun 2008 21:18:11 +0000 (15:18 -0600)
* lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
converting it to lower case.
* tests/autotest.at (Keywords and ranges): Test this.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Karsten Hopp.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
NEWS
THANKS
lib/autotest/general.m4
tests/autotest.at

index 76340a69422b0665dc1932490e10f94ef4aa39fb..ef3d04dbf8c7164a4a99984ecf411ff9a2722c16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-06-05  Eric Blake  <ebb9@byu.net>
+
+       Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
+       * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
+       converting it to lower case.
+       * tests/autotest.at (Keywords and ranges): Test this.
+       * NEWS: Document the fix.
+       * THANKS: Update.
+       Reported by Karsten Hopp.
+
 2008-06-03  Eric Blake  <ebb9@byu.net>
 
        Fix 'make dist' regression from 2008-05-08.
diff --git a/NEWS b/NEWS
index 183d4f1ab0f6c6bb78c6a89ba8b7486d75ccf290..8b866adf09cecef637fc6ba44959f8c0f0a225df 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@ GNU Autoconf NEWS - User visible changes.
 ** Two new quadrigraphs have been introduced: @{:@ for (, and @:}@ for ),
    allowing the output of unbalanced parantheses in more contexts.
 
+** AT_KEYWORDS once again performs expansion on its argument, such that
+   AT_KEYWORDS([m4_if([$1], [], [default])]) no longer complains about
+   the possibly unexpanded m4_if [regression introduced in 2.62].
+
 \f
 * Major changes in Autoconf 2.62 (2008-04-05) [stable]
   Released by Eric Blake, based on git versions 2.61a.*.
diff --git a/THANKS b/THANKS
index 5ec89219019fb7f59fdce2e988f161b8d9b6c37c..224cdeada90a0ac5403479899fc2780c6360fd5d 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -177,6 +177,7 @@ Justace Clutter             ?
 Jörn Rennecke               amylaar@cygnus.co.uk
 Karl Berry                  karl@cs.umb.edu
 Karl Heuer                  kwzh@gnu.org
+Karsten Hopp                karsten@redhat.com
 Kate Hedstrom               ?
 Kathryn Hargreaves          kathryn@deas.harvard.edu
 Kaveh R. Ghazi              ghazi@caip.rutgers.edu
index 88d10a31eaa21f055c5ce9b8cfabf1bbe612fb4e..993dd9ff98366e833d4a00983462c205d13bb753 100644 (file)
@@ -1476,9 +1476,10 @@ m4_case([$1],
 # AT_KEYWORDS(KEYWORDS)
 # ---------------------
 # Declare a list of keywords associated to the current test group.
-# The list is stored in lower case, since the -k option is case-insensitive.
+# Since the -k option is case-insensitive, the list is stored in lower case
+# to avoid duplicates that differ only by case.
 _AT_DEFINE_SETUP([AT_KEYWORDS],
-[m4_append_uniq_w([AT_keywords], m4_tolower([[$1]]))])
+[m4_append_uniq_w([AT_keywords], m4_tolower(m4_dquote(m4_expand([$1]))))])
 
 
 # AT_CAPTURE_FILE(FILE)
index dc3cfd5249a6f4bd0bb34b67c10ca8a128ab1912..c4c0eda6d3245e0071dce496b5e462a6e40fb0c5 100644 (file)
@@ -690,7 +690,7 @@ AT_CHECK(:)
 AT_CLEANUP
 AT_SETUP(both) # 04
 AT_KEYWORDS([key1 key2])
-AT_KEYWORDS([key1])
+AT_KEYWORDS([m4@&t@_echo([Key1])])
 AT_CHECK(:)
 AT_CLEANUP
 AT_SETUP(test5) # 05
@@ -713,7 +713,7 @@ AT_CHECK(:)
 AT_CLEANUP
 ]])
 dnl check that AT_KEYWORDS does not duplicate words
-AT_CHECK([grep 'key1.*key1' k], [1])
+AT_CHECK([grep -i 'key1.*key1' k], [1])
 dnl check that -k requires an argument
 AT_CHECK([$CONFIG_SHELL ./k -k], [1], [], [ignore])