* lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
style for AC_PREREQ.
* tests/tools.at (autoupdating AC_PREREQ): Update expected
results.
Reported by NightStrike.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2010-06-07 Eric Blake <eblake@redhat.com>
+
+ Properly quote AC_PREREQ during autoupdate.
+ * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
+ style for AC_PREREQ.
+ * tests/tools.at (autoupdating AC_PREREQ): Update expected
+ results.
+ Reported by NightStrike.
+
2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Documentation and tests for the AC_CHECK_DECL change.
# Autoconf, which is certainly not what the user intended.
AU_DEFUN([AC_PREREQ],
[m4_version_prereq([$1])[]dnl
-[AC_PREREQ(]]m4_defn([m4_PACKAGE_VERSION])[[)]])
+[AC_PREREQ(]]m4_dquote(m4_dquote(m4_defn([m4_PACKAGE_VERSION])))[[)]])
# AC_PREREQ(VERSION)
# Produce `AC_PREREQ(<AUTOUPDATE VERSION>)'.
AT_CHECK([autoupdate --version | sed 's/.*) //;q'], 0, [stdout])
autoupdate_version=`cat stdout`
-echo "AC_PREREQ($autoupdate_version)" >expout
+[echo "AC_PREREQ([$autoupdate_version])" >expout]
AT_CHECK([echo "AC_PREREQ(1.0)" | autoupdate -],
0, [expout], [])