From: Akim Demaille Date: Mon, 7 Aug 2000 12:07:43 +0000 (+0000) Subject: * tests/tools.m4 (undefined macros): New test. X-Git-Tag: autoconf-2.50~664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=970d1bc9d04470814c53e3c8a3c798150faf8e7e;p=thirdparty%2Fautoconf.git * tests/tools.m4 (undefined macros): New test. --- diff --git a/ChangeLog b/ChangeLog index 9f610772b..30b3d79b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-08-07 Akim Demaille + + * tests/tools.m4 (undefined macros): New test. + 2000-08-07 Akim Demaille * autoconf.sh (finalize.awk): New subtool, eved from the previous diff --git a/tests/tools.m4 b/tests/tools.m4 index 73a4b9ce8..3889f74b1 100644 --- a/tests/tools.m4 +++ b/tests/tools.m4 @@ -239,3 +239,26 @@ AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -t TRACE2:'${)===(}@'], 0, ]]) AT_CLEANUP + + + + +## ----------------------------------------------- ## +## autoconf's ability to catch unexpanded macros. ## +## ----------------------------------------------- ## + +AT_SETUP(unexpanded macros) + +AT_DATA([configure.in], +[[AC_PLAIN_SCRIPT()dnl +AC_THIS_IS_PROBABLY_NOT_DEFINED +# AC_THIS_IS_A_COMMENT so just shut up. +It would be very bad if Autoconf forgot to expand [AC_]OUTPUT! +]]) + +AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], +[[configure.in:2: warning: undefined macro: AC_THIS_IS_PROBABLY_NOT_DEFINED +configure:3: warning: undefined macro: AC_OUTPUT +]]) + +AT_CLEANUP(configure)