]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 30 Jan 2004 14:21:35 +0000 (14:21 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Fri, 30 Jan 2004 14:21:35 +0000 (14:21 +0000)
* doc/autoconf.texi: Don't say that the third parameter
is broken.
* lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
(AU_DEFUN): Honor the third parameter, create autoupdate
macros with AU_DEFINE.
* lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
AC_DIR_HEADER): Use AU_DEFUN's third parameter.
* lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
* lib/autoconf/programs.m4 (AC_RSH): Likewise.
* lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
AC_XENIX_DIR): Likewise.
* lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
* lib/autoconf/status.m4: Remove FIXME.
* tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
that the macro is not present anymore in the updated
configure.ac.
* tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
of autoupdate.

12 files changed:
ChangeLog
bin/autoupdate.in
doc/autoconf.texi
lib/autoconf/autoupdate.m4
lib/autoconf/headers.m4
lib/autoconf/lang.m4
lib/autoconf/programs.m4
lib/autoconf/specific.m4
lib/autoconf/status.m4
lib/autoconf/types.m4
tests/local.at
tests/tools.at

index 3f05f8ca0e2efa42c734e778005ed157332c08b3..ed57e2aa234064f5948ae868b6fb588d7b0dd9d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2003-11-26  Paolo Bonzini  <bonzini@bogus.example.com>
+
+       * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
+       * doc/autoconf.texi: Don't say that the third parameter
+       is broken.
+       * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
+       (AU_DEFUN): Honor the third parameter, create autoupdate
+       macros with AU_DEFINE.
+       * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
+       AC_DIR_HEADER): Use AU_DEFUN's third parameter.
+       * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
+       * lib/autoconf/programs.m4 (AC_RSH): Likewise.
+       * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
+       AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
+       AC_XENIX_DIR): Likewise.
+       * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
+       AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
+       * lib/autoconf/status.m4: Remove FIXME.
+       * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
+       that the macro is not present anymore in the updated
+       configure.ac.
+       * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
+       of autoupdate.
+
 2004-01-28  Paul Eggert  <eggert@twinsun.com>
 
        * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
index d5792b3cd0d3eabc19d454f97a4698296494e633..9c58ff85482f549cca1000683b00675d942ac421 100644 (file)
@@ -1,7 +1,7 @@
 #! @PERL@ -w
 # -*- perl -*-
 # autoupdate - modernize an Autoconf file.
-# Copyright (C) 1994, 1999, 2000, 2001, 2002, 2003
+# Copyright (C) 1994, 1999, 2000, 2001, 2002, 2003, 2004
 # Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -172,7 +172,7 @@ my (%ac_macros, %au_macros);
 sub handle_autoconf_macros ()
 {
   my $macros = new Autom4te::XFile ("$autoconf"
-                                   . " --trace AU_DEFUN:'AU:\$f:\$1'"
+                                   . " --trace AU_DEFINE:'AU:\$f:\$1'"
                                    . " --trace define:'AC:\$f:\$1'"
                                    . " --melt /dev/null |");
   while ($_ = $macros->getline)
@@ -251,7 +251,7 @@ my $au_changequote =
   's/\b(' . join ('|', keys %au_macros) . ')\b/_au_changequote([,])$1/g';
 
 # au.m4 -- definitions the AU macros.
-xsystem ("$autoconf --trace AU_DEFUN:'_au_defun(\@<:\@\$1\@:>\@,
+xsystem ("$autoconf --trace AU_DEFINE:'_au_defun(\@<:\@\$1\@:>\@,
 \@<:\@\$2\@:>\@)' --melt /dev/null "
        . ">$tmp/au.m4");
 
index cede1f43351e2332a9c33fd6cb5fa4581334dca9..aec04a12f74f9085bf8f1857354c70e566aa0523 100644 (file)
@@ -8940,8 +8940,8 @@ with @code{AC_DEFUN} is that the user will be warned that
 @var{old-macro} is now obsolete.
 
 If she then uses @command{autoupdate}, the call to @var{old-macro} will be
-replaced by the modern @var{implementation}.  In the future,
-@command{autoupdate} will then print the additional @var{message}.
+replaced by the modern @var{implementation}.  @command{autoupdate} will
+then print the additional @var{message}.
 @end defmac
 
 @node Coding Style
index 3b6c90d4816cb77445db3573a916f9cf6e70b4e5..0cc41593d296bcf1938dd7624bfc52b5820b72b6 100644 (file)
 ## ---------------------------------- ##
 
 
+# AU_DEFINE(NAME, CODE)
+# ---------------------
+# Define the macro NAME so that it expand to CODE only when
+# autoupdate is running.  This is achieved with traces in
+# autoupdate itself, so this macro expands to nothing.
+#
+m4_define([AU_DEFINE], [])
+
 # AU_DEFUN(NAME, NEW-CODE, [MESSAGE])
 # -----------------------------------
 # Declare that the macro NAME is now obsoleted, and should be replaced
 # by NEW-CODE.  Tell the user she should run autoupdate, and include
 # the additional MESSAGE.
 #
-# FIXME: MESSAGE should be grabbed with autom4te traces, and that's
-# why it is never used in the body of the macro; however, as of 2003-11-25
-# it is never used and it seems that it never was.  Also, MESSAGE is
-# used only once in AC_LINK_FILES, it may be the case to remove it from
-# there.  See the FIXME in AC_LINK_FILES as well.
-#
 # Also define NAME as a macro which code is NEW-CODE.
 #
 # This allows sharing the same code for both supporting obsoleted macros,
 # and to update a configure.ac.
 # See `acobsolete.m4' for a longer description.
 m4_define([AU_DEFUN],
-[AC_DEFUN([$1],
+[AU_DEFINE([$1],
+[m4_ifval([$3], [_au_warn_$1[]AC_DIAGNOSE([obsolete], [$3])d[]nl
+])dnl
+$2])
+AU_DEFINE([_au_warn_$1],
+[m4_warning([$3])dnl
+m4_define([_au_warn_$1], [])])
+AC_DEFUN([$1],
           [AC_DIAGNOSE([obsolete], [The macro `$1' is obsolete.
 You should run autoupdate.])dnl
 $2])])
index 393be3487c563c7295b10bdeb610cbc1c01b6089..8d902489d5bba51c8b094559ebe91a0d8c2cfdcf 100644 (file)
@@ -730,10 +730,7 @@ AU_DEFUN([AC_UNISTD_H],
 # ----------
 # Define `USG' if string functions are in strings.h.
 AU_DEFUN([AC_USG],
-[AC_DIAGNOSE([obsolete],
-[$0: Remove `AC_MSG_CHECKING', `AC_LINK_IFELSE' and this `AC_DIAGNOSE'
-when you adjust your code to use HAVE_STRING_H.])dnl
-AC_MSG_CHECKING([for BSD string and memory functions])
+[AC_MSG_CHECKING([for BSD string and memory functions])
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <strings.h>]],
                                [[rindex(0, 0); bzero(0, 0);]])],
               [AC_MSG_RESULT(yes)],
@@ -742,8 +739,9 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <strings.h>]],
                          [Define to 1 if you do not have <strings.h>, index,
                           bzero, etc... This symbol is obsolete, you should
                           not depend upon it.])])
-AC_CHECK_HEADERS(string.h)
-])# AU::AC_USG
+AC_CHECK_HEADERS(string.h)],
+[Remove `AC_MSG_CHECKING', `AC_LINK_IFELSE' and this warning
+when you adjust your code to use HAVE_STRING_H.])
 
 
 # AU::AC_MEMORY_H
@@ -760,14 +758,13 @@ AC_CHECK_HEADERS(string.h)
 # But it is better to check for both headers, and alias NEED_MEMORY_H to
 # HAVE_MEMORY_H.
 AU_DEFUN([AC_MEMORY_H],
-[AC_DIAGNOSE([obsolete], [$0: Remove this `AC_DIAGNOSE' and
-`AC_CHECK_HEADER(memory.h, AC_DEFINE(...))' when you adjust your code to
-use and HAVE_STRING_H and HAVE_MEMORY_H, not NEED_MEMORY_H.])dnl
-AC_CHECK_HEADER(memory.h,
+[AC_CHECK_HEADER(memory.h,
                [AC_DEFINE([NEED_MEMORY_H], 1,
                           [Same as `HAVE_MEMORY_H', don't depend on me.])])
-AC_CHECK_HEADERS(string.h memory.h)
-])
+AC_CHECK_HEADERS(string.h memory.h)],
+[Remove this warning and
+`AC_CHECK_HEADER(memory.h, AC_DEFINE(...))' when you adjust your code to
+use HAVE_STRING_H and HAVE_MEMORY_H, not NEED_MEMORY_H.])
 
 
 # AU::AC_DIR_HEADER
@@ -778,9 +775,6 @@ AC_CHECK_HEADERS(string.h memory.h)
 AU_DEFUN([AC_DIR_HEADER],
 [AC_HEADER_DIRENT
 AC_FUNC_CLOSEDIR_VOID
-AC_DIAGNOSE([obsolete],
-[$0: Remove this `AC_DIAGNOSE' and the four `AC_DEFINE' when you
-adjust your code to use `AC_HEADER_DIRENT'.])
 test ac_cv_header_dirent_dirent_h &&
   AC_DEFINE([DIRENT], 1, [Same as `HAVE_DIRENT_H', don't depend on me.])
 test ac_cv_header_dirent_sys_ndir_h &&
@@ -788,5 +782,6 @@ test ac_cv_header_dirent_sys_ndir_h &&
 test ac_cv_header_dirent_sys_dir_h &&
   AC_DEFINE([SYSDIR], 1, [Same as `HAVE_SYS_DIR_H', don't depend on me.])
 test ac_cv_header_dirent_ndir_h &&
-  AC_DEFINE([NDIR], 1, [Same as `HAVE_NDIR_H', don't depend on me.])
-])
+  AC_DEFINE([NDIR], 1, [Same as `HAVE_NDIR_H', don't depend on me.])],
+[Remove this warning and the four `AC_DEFINE' when you
+adjust your code to use `AC_HEADER_DIRENT'.])
index 237ea30af4b0c0145ffb288b25dfaf04a23513dd..64fedc398b20dce91cf7bac207522e15795c793b 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Programming languages support.
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -160,10 +160,9 @@ m4_popdef([$0 OLD])dnl
 # ------------
 # Save the current language, but don't change language.
 AU_DEFUN([AC_LANG_SAVE],
-[AC_DIAGNOSE([obsolete],
-            [instead of using `AC_LANG', `AC_LANG_SAVE',
-and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.])
-m4_pushdef([_AC_LANG], _AC_LANG)])
+[m4_pushdef([_AC_LANG], _AC_LANG)],
+[Instead of using `AC_LANG', `AC_LANG_SAVE', and `AC_LANG_RESTORE',
+you should use `AC_LANG_PUSH' and `AC_LANG_POP'.])
 
 
 # AC_LANG_RESTORE
index 9353bbe1a7899b283f6585967928b8f5d3678c74..be008268098a9bb49a3f2450d8396b4c27a84392 100644 (file)
@@ -606,9 +606,9 @@ AC_DEFUN([AC_PROG_RANLIB],
 # AC_RSH
 # ------
 # I don't know what it used to do, but it no longer does.
-AU_DEFUN([AC_RSH],
-[AC_DIAGNOSE([obsolete], [$0: is no longer supported.
-Remove this warning when you adjust the code.])])
+AU_DEFUN([AC_RSH], [],
+[$0 is no longer supported.  Remove this warning when you
+adjust the code.])
 
 
 # AC_PROG_SED
index c5e605ac594c15bd1face6a26cfb41c70cdffe41..6e9d96470cd65f59dd1cb15f24e62c7ef307a2c0 100644 (file)
@@ -97,16 +97,14 @@ interpval=$ac_cv_sys_interpreter
 
 
 AU_DEFUN([AC_HAVE_POUNDBANG],
-[AC_SYS_INTERPRETER
-AC_DIAGNOSE([obsolete],
-[$0: Remove this warning when you adjust your code to use
-      `AC_SYS_INTERPRETER'.])])
+[AC_SYS_INTERPRETER],
+[Remove this warning when you adjust your code to use
+`AC_SYS_INTERPRETER'.])
 
 
-AU_DEFUN([AC_ARG_ARRAY],
-[AC_DIAGNOSE([obsolete],
-[$0: no longer implemented: don't do unportable things
-with arguments. Remove this warning when you adjust your code.])])
+AU_DEFUN([AC_ARG_ARRAY], [],
+[$0 is no longer implemented: don't do unportable things
+with arguments. Remove this warning when you adjust your code.])
 
 
 # _AC_SYS_LARGEFILE_TEST_INCLUDES
@@ -354,13 +352,12 @@ AC_DEFINE([_GNU_SOURCE])
 # EXEEXT.
 AU_DEFUN([AC_CYGWIN],
 [AC_CANONICAL_HOST
-AC_DIAGNOSE([obsolete],
-           [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os matches *cygwin*])dnl
 case $host_os in
   *cygwin* ) CYGWIN=yes;;
         * ) CYGWIN=no;;
 esac
-])# AC_CYGWIN
+], [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os
+matches *cygwin*])# AC_CYGWIN
 
 
 # AC_EMXOS2
@@ -369,13 +366,12 @@ esac
 # for EXEEXT.
 AU_DEFUN([AC_EMXOS2],
 [AC_CANONICAL_HOST
-AC_DIAGNOSE([obsolete],
-           [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os matches *emx*])dnl
 case $host_os in
   *emx* ) EMXOS2=yes;;
       * ) EMXOS2=no;;
 esac
-])# AC_EMXOS2
+], [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os
+matches *emx*])# AC_EMXOS2
 
 
 # AC_MINGW32
@@ -384,13 +380,12 @@ esac
 # EXEEXT.
 AU_DEFUN([AC_MINGW32],
 [AC_CANONICAL_HOST
-AC_DIAGNOSE([obsolete],
-           [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os matches *mingw32*])dnl
 case $host_os in
   *mingw32* ) MINGW32=yes;;
          * ) MINGW32=no;;
 esac
-])# AC_MINGW32
+], [$0 is obsolete: use AC_CANONICAL_HOST and check if $host_os
+matches *mingw32*])# AC_MINGW32
 
 
 
@@ -453,9 +448,8 @@ AC_DEFUN([AC_ISC_POSIX], [AC_SEARCH_LIBS(strerror, cposix)])
 
 # AC_XENIX_DIR
 # ------------
-AU_DEFUN(AC_XENIX_DIR,
-[# You shouldn't need to depend upon XENIX.  Remove this test if useless.
-AC_MSG_CHECKING([for Xenix])
+AU_DEFUN([AC_XENIX_DIR],
+[AC_MSG_CHECKING([for Xenix])
 AC_EGREP_CPP(yes,
 [#if defined(M_XENIX) && !defined(M_UNIX)
   yes
@@ -464,7 +458,10 @@ AC_EGREP_CPP(yes,
             [AC_MSG_RESULT([no]); XENIX=])
 
 AC_HEADER_DIRENT[]dnl
-])
+],
+[You shouldn't need to depend upon XENIX.  Remove the
+`AC_MSG_CHECKING', `AC_EGREP_CPP', and this warning if this part
+of the test is useless.])
 
 
 # AC_DYNIX_SEQ
index 9723e0913979726fd8f6e66ea44cefa8aa437a4e..99e3f3febcd735b5a9ef92b5afe81f0f04a4812c 100644 (file)
@@ -747,18 +747,9 @@ while test -n "$ac_sources"; do
 done
 AC_CONFIG_LINKS($[ac_config_links_]_AC_LINK_FILES_CNT)dnl
 ],
-dnl FIXME: Macros such as AC_USG put messages like this into an
-dnl AC_DIAGNOSE macro, in the first parameter of AU_DEFUN.  We cannot
-dnl do the same with this one, because it makes no sense to print it
-dnl when running `autoconf -W obsolete' on a configure script that uses
-dnl AC_LINK_FILES.  Instead, only `autoupdate' should print it (it may
-dnl be acceptable that autoupdated configure scripts print this message
-dnl when running `autoconf -W obsolete').  As of 2003-11-25, the third
-dnl argument to AU_DEFUN is broken, so this is never seen by the user.
-[
-  It is technically impossible to `autoupdate' cleanly from AC_LINK_FILES
-  to AC_CONFIG_FILES.  `autoupdate' provides a functional but inelegant
-  update, you should probably tune the result yourself.])# AC_LINK_FILES
+[It is technically impossible to `autoupdate' cleanly from AC_LINK_FILES
+to AC_CONFIG_FILES.  `autoupdate' provides a functional but inelegant
+update, you should probably tune the result yourself.])# AC_LINK_FILES
 
 
 # Initialize.
index 26e8b9f1c9c4c982a52d5c0d5794110f00ae95be..2a847b457f54d77ef1604c0071f2b87dde5902b2 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Type related macros: existence, sizeof, and structure members.
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -415,29 +415,25 @@ AC_DEFINE_UNQUOTED(AS_TR_CPP(sizeof_$1), $AS_TR_SH([ac_cv_sizeof_$1]),
 # What a great name :)
 AU_DEFUN([AC_INT_16_BITS],
 [AC_CHECK_SIZEOF([int])
-AC_DIAGNOSE([obsolete], [$0:
-       your code should no longer depend upon `INT_16_BITS', but upon
-       `SIZEOF_INT == 2'.  Remove this warning and the `AC_DEFINE' when you
-       adjust the code.])dnl
 test $ac_cv_sizeof_int = 2 &&
   AC_DEFINE(INT_16_BITS, 1,
            [Define to 1 if `sizeof (int)' = 2.  Obsolete, use `SIZEOF_INT'.])
-])
+], [your code should no longer depend upon `INT_16_BITS', but upon
+`SIZEOF_INT == 2'.  Remove this warning and the `AC_DEFINE' when you
+adjust the code.])
 
 
 # AU::AC_LONG_64_BITS
 # -------------------
 AU_DEFUN([AC_LONG_64_BITS],
 [AC_CHECK_SIZEOF([long int])
-AC_DIAGNOSE([obsolete], [$0:
-       your code should no longer depend upon `LONG_64_BITS', but upon
-       `SIZEOF_LONG_INT == 8'.  Remove this warning and the `AC_DEFINE' when
-       you adjust the code.])dnl
 test $ac_cv_sizeof_long_int = 8 &&
   AC_DEFINE(LONG_64_BITS, 1,
            [Define to 1 if `sizeof (long int)' = 8.  Obsolete, use
             `SIZEOF_LONG_INT'.])
-])
+], [your code should no longer depend upon `LONG_64_BITS', but upon
+`SIZEOF_LONG_INT == 8'.  Remove this warning and the `AC_DEFINE' when
+you adjust the code.])
 
 
 
@@ -515,16 +511,14 @@ AN_IDENTIFIER([st_rdev],    [AC_CHECK_MEMBERS([struct stat.st_rdev])])
 # AC_STRUCT_ST_BLKSIZE
 # --------------------
 AU_DEFUN([AC_STRUCT_ST_BLKSIZE],
-[AC_DIAGNOSE([obsolete], [$0:
-       your code should no longer depend upon `HAVE_ST_BLKSIZE', but
-       `HAVE_STRUCT_STAT_ST_BLKSIZE'.  Remove this warning and
-       the `AC_DEFINE' when you adjust the code.])
-AC_CHECK_MEMBERS([struct stat.st_blksize],
+[AC_CHECK_MEMBERS([struct stat.st_blksize],
                 [AC_DEFINE(HAVE_ST_BLKSIZE, 1,
                            [Define to 1 if your `struct stat' has
                             `st_blksize'.  Deprecated, use
                             `HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
-])# AC_STRUCT_ST_BLKSIZE
+], [your code should no longer depend upon `HAVE_ST_BLKSIZE', but
+`HAVE_STRUCT_STAT_ST_BLKSIZE'.  Remove this warning and
+the `AC_DEFINE' when you adjust the code.])# AC_STRUCT_ST_BLKSIZE
 
 
 # AC_STRUCT_ST_BLOCKS
@@ -555,16 +549,14 @@ AC_DEFUN([AC_STRUCT_ST_BLOCKS],
 # AC_STRUCT_ST_RDEV
 # -----------------
 AU_DEFUN([AC_STRUCT_ST_RDEV],
-[AC_DIAGNOSE([obsolete], [$0:
-       your code should no longer depend upon `HAVE_ST_RDEV', but
-       `HAVE_STRUCT_STAT_ST_RDEV'.  Remove this warning and
-       the `AC_DEFINE' when you adjust the code.])
-AC_CHECK_MEMBERS([struct stat.st_rdev],
+[AC_CHECK_MEMBERS([struct stat.st_rdev],
                 [AC_DEFINE(HAVE_ST_RDEV, 1,
                            [Define to 1 if your `struct stat' has `st_rdev'.
                             Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
                             instead.])])
-])# AC_STRUCT_ST_RDEV
+], [your code should no longer depend upon `HAVE_ST_RDEV', but
+`HAVE_STRUCT_STAT_ST_RDEV'.  Remove this warning and
+the `AC_DEFINE' when you adjust the code.])# AC_STRUCT_ST_RDEV
 
 
 # AC_STRUCT_TM
index f2f58ad90901f3d134c05c0a8884ceabe51c4bd0..e896e2380934a0362bb4d354ede6291a02baa8dd 100644 (file)
@@ -1,6 +1,6 @@
 # M4 macros used in building Autoconf test suites.        -*- Autotest -*-
 
-# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -367,7 +367,8 @@ AT_CHECK_CONFIGURE
 AT_CHECK_ENV
 
 rm config.hin
-AT_CHECK_AUTOUPDATE
+AT_CHECK_AUTOUPDATE([], 0, [], ignore)
+AT_CHECK([grep '^$1$' configure.ac], 1)
 
 AT_CHECK_AUTOCONF
 AT_CHECK_AUTOHEADER
index 4e7609907e2078b45ad61109f9b40bb5fa7ffeeb..2315af15082e74b4632d94667043862a07c21bbe 100644 (file)
@@ -2,7 +2,7 @@
 
 AT_BANNER([Executables (autoheader, autoupdate...).])
 
-# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -540,7 +540,7 @@ AT_DATA([dst2], dst2
 )
 
 # Checking `autoupdate'.
-AT_CHECK_AUTOUPDATE
+AT_CHECK_AUTOUPDATE([], 0, [], ignore)
 AT_CHECK_AUTOCONF
 AT_CHECK_CONFIGURE
 AT_CHECK([cat src1], 0, [dst1