From: Eric Blake Date: Thu, 25 Feb 2010 23:34:17 +0000 (-0700) Subject: Properly quote AC_PREREQ during autoupdate. X-Git-Tag: v2.66~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a18ec77aaf1c514a4fe0f122b13f298ba3f3eca0;p=thirdparty%2Fautoconf.git 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. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index fac7c042..9c626346 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-06-07 Eric Blake + + 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 Documentation and tests for the AC_CHECK_DECL change. diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 762a56cb..f73673e4 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -298,7 +298,7 @@ m4_define([AC_REVISION], # 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) diff --git a/tests/tools.at b/tests/tools.at index 05e88c9c..167d68a8 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -860,7 +860,7 @@ AT_SETUP([autoupdating AC_PREREQ]) # Produce `AC_PREREQ()'. 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], [])