+2000-09-19 Pavel Roskin <proski@gnu.org>
+
+ * acgeneral.m4 (AU_ALIAS): Do not use `defn' since then autoupdate
+ would replace an old macro call with the new macro body instead of
+ the new macro call.
+ * tests/tools.m4 (autoupdate): Test an AU_ALIAS'd macro update.
+
2000-09-19 Pavel Roskin <proski@gnu.org>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): New macro.
# little difference with using AU_DEFUN but the fact there is little
# interest in running the test suite on both OLD-NAME and NEW-NAME.
# This macro makes it possible to distinguish such cases.
+#
+# 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], defn([$2]))])
+[AU_DEFUN([$1], [$2])])
# little difference with using AU_DEFUN but the fact there is little
# interest in running the test suite on both OLD-NAME and NEW-NAME.
# This macro makes it possible to distinguish such cases.
+#
+# 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], defn([$2]))])
+[AU_DEFUN([$1], [$2])])
## ------------ ##
# Check that AC_LINK_FILES and AC_OUTPUT are properly updated.
-# actest.m4 AU_ defines OSBOLETE to UPDATED.
AT_SETUP(autoupdate)
AT_DATA(configure.in,
[[AC_INIT
+AC_CANONICAL_SYSTEM
dnl The doc says 27 is a valid fubar.
fubar=27
AC_OUTPUT(Makefile, echo $fubar, fubar=$fubar)
# Checking `autoupdate'.
AT_CHECK([../autoupdate --autoconf-dir $top_srcdir -<configure.in], 0,
[[AC_INIT
+AC_CANONICAL_TARGET()
dnl The doc says 27 is a valid fubar.
fubar=27
AC_CONFIG_FILES([Makefile])