]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
authorAkim Demaille <akim@epita.fr>
Fri, 3 Nov 2000 11:59:39 +0000 (11:59 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 3 Nov 2000 11:59:39 +0000 (11:59 +0000)
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.

ChangeLog
THANKS
acgeneral.m4
lib/autoconf/general.m4
tests/semantics.at
tests/tools.at

index f6b629510179c1218a0d6946e2a1d87f10a5b362..cf3e8543c99118676ddd1a34dd560b94759179cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-11-03  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>
 
        * autoconf.m4: Instead of reactivating the macros before reading
diff --git a/THANKS b/THANKS
index 4cac3c1368bf7fbd6070519c19bb74739cb2588c..daa80686b13225581127a8305999620e4587d743 100644 (file)
--- 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
index 9f1e31ba5892917a6829f254ed5b73c2116aac9e..bf41696dcf4acb3fb85cd6d3cdac7e15767b938e 100644 (file)
@@ -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($][@)])])
 
 
 
index 9f1e31ba5892917a6829f254ed5b73c2116aac9e..bf41696dcf4acb3fb85cd6d3cdac7e15767b938e 100644 (file)
@@ -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($][@)])])
 
 
 
index c9810d3a60dae577163ca4356a2cc70c52144642..77eed00383eb828635e25a20987e2f7123628cb5 100644 (file)
@@ -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 */
index 59fd81b53ba4993c20c1e0595715e0181d026fd0..84615e9ad77a6cc933595b80a6b61996277bfc61 100644 (file)
@@ -176,7 +176,7 @@ AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
 # Checking `autoupdate'.
 AT_CHECK([autoupdate --autoconf-dir $top_srcdir -<configure.in], 0,
 [[AC_INIT
-AC_CANONICAL_TARGET()
+AC_CANONICAL_TARGET([])
 dnl The doc says 27 is a valid fubar.
 fubar=27
 AC_CONFIG_FILES([Makefile])
@@ -240,6 +240,7 @@ AT_CLEANUP
 
 
 
+
 ## ------------------ ##
 ## autoconf --trace.  ##
 ## ------------------ ##