From: Akim Demaille Date: Fri, 3 Nov 2000 11:59:39 +0000 (+0000) Subject: * acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to X-Git-Tag: autoconf-2.50~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3853ced4f50a93c85843bfc557cb59557bc015;p=thirdparty%2Fautoconf.git * acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to the new macro... Reported by Ezra Peisach. * tests/semantics.m4 (AC_HAVE_FUNCS): New test. * tests/tools.at (autoupdate): As a benign side effect, updating a macro that takes no argument produces `UPDATED([])', no longer `UPDATED()'. Adjust the test. --- diff --git a/ChangeLog b/ChangeLog index f6b629510..cf3e8543c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-11-03 Akim Demaille + + * acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to + the new macro... + Reported by Ezra Peisach. + * tests/semantics.m4 (AC_HAVE_FUNCS): New test. + * tests/tools.at (autoupdate): As a benign side effect, updating a + macro that takes no argument produces `UPDATED([])', no longer + `UPDATED()'. Adjust the test. + 2000-11-03 Akim Demaille * autoconf.m4: Instead of reactivating the macros before reading diff --git a/THANKS b/THANKS index 4cac3c136..daa80686b 100644 --- a/THANKS +++ b/THANKS @@ -36,6 +36,7 @@ Eli Zaretskii eliz@gnu.org Erez Zadok ezk@cs.columbia.edu Eric Backus ericb@lsid.hp.com Eric Mumpower nocturne@mit.edu +Ezra Peisach epeisach@zif.mit.edu Felix Lee flee@cygnus.com Franc,ois Pinard pinard@iro.umontreal.ca Gary V. Vaughan gvaughan@oranda.demon.co.uk diff --git a/acgeneral.m4 b/acgeneral.m4 index 9f1e31ba5..bf41696dc 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -328,7 +328,7 @@ $2], # Do not use `defn' since then autoupdate would replace an old macro # call with the new macro body instead of the new macro call. define([AU_ALIAS], -[AU_DEFUN([$1], [$2])]) +[AU_DEFUN([$1], [$2($][@)])]) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 9f1e31ba5..bf41696dc 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -328,7 +328,7 @@ $2], # Do not use `defn' since then autoupdate would replace an old macro # call with the new macro body instead of the new macro call. define([AU_ALIAS], -[AU_DEFUN([$1], [$2])]) +[AU_DEFUN([$1], [$2($][@)])]) diff --git a/tests/semantics.at b/tests/semantics.at index c9810d3a6..77eed0038 100644 --- a/tests/semantics.at +++ b/tests/semantics.at @@ -51,7 +51,19 @@ AT_CHECK_MACRO(AC_CHECK_DECLS, # -------------- # Check that it performs the correct actions: # Must define HAVE_EXIT, but not HAVE_AUTOCONF_TIXE -AT_CHECK_MACRO(AC_CHECK_FUNCS, +AT_CHECK_MACRO([AC_CHECK_FUNCS], +[AC_CHECK_FUNCS(exit autoconf_tixe)], +[AT_CHECK_DEFINES( +[/* #undef HAVE_AUTOCONF_TIXE */ +#define HAVE_EXIT 1 +])]) + + +# AC_HAVE_FUNCS +# ------------- +# This macro is an obsolete version of AC_CHECK_FUNCS. Running this +# test allows to check that AU_ALIAS'ed macros work properly. +AT_CHECK_MACRO([AC_HAVE_FUNCS], [AC_CHECK_FUNCS(exit autoconf_tixe)], [AT_CHECK_DEFINES( [/* #undef HAVE_AUTOCONF_TIXE */ diff --git a/tests/tools.at b/tests/tools.at index 59fd81b53..84615e9ad 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -176,7 +176,7 @@ AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar) # Checking `autoupdate'. AT_CHECK([autoupdate --autoconf-dir $top_srcdir -