From: Tom Tromey Date: Mon, 2 Jul 2001 20:13:19 +0000 (+0000) Subject: * tests/Makefile.am (TESTS): Removed dup.test. X-Git-Tag: Release-1-4h~5 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=817b37bef7c2e88b5148cf2fc729c809efa1d91e;p=automake.git * tests/Makefile.am (TESTS): Removed dup.test. * tests/dup.test: Removed. * aclocal.in (scan_file): Don't give error for duplicate macro. --- diff --git a/ChangeLog b/ChangeLog index 85d9c4f5..fbb723d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-07-02 Tom Tromey + + * tests/Makefile.am (TESTS): Removed dup.test. + * tests/dup.test: Removed. + * aclocal.in (scan_file): Don't give error for duplicate macro. + 2001-07-01 Tom Tromey * automake.texi (Program and Library Variables): Document diff --git a/aclocal.in b/aclocal.in index 7879806c..aba9db84 100644 --- a/aclocal.in +++ b/aclocal.in @@ -423,13 +423,13 @@ sub scan_file { $map{$1} = $file; } - elsif ($map{$1} eq $file) - { - # You basically never want a macro in the same .m4 - # file twice. - warn "aclocal: $file: $.: duplicated macro `$1'\n"; - $exit_status = 1; - } + + # Note: we used to give an error here if we saw a + # duplicated macro. However, this turns out to be + # extremely unpopular. It causes actual problems which + # are hard to work around, especially when you must + # mix-and-match tool versions. + print STDERR "aclocal: found macro $1 in $file: $.\n" if $verbose; } } diff --git a/tests/Makefile.am b/tests/Makefile.am index 6110f8b6..74857ad0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -106,7 +106,6 @@ distcommon.test \ distdir.test \ distname.test \ double.test \ -dup.test \ dup2.test \ dup3.test \ else.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 67f7e88c..175b08a9 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -172,7 +172,6 @@ distcommon.test \ distdir.test \ distname.test \ double.test \ -dup.test \ dup2.test \ dup3.test \ else.test \ diff --git a/tests/dup.test b/tests/dup.test deleted file mode 100755 index ee26cae5..00000000 --- a/tests/dup.test +++ /dev/null @@ -1,17 +0,0 @@ -#! /bin/sh - -# Make sure aclocal catches duplicate definitions in acinclude.m4. - -. $srcdir/defs || exit 1 - -cat > configure.in << 'END' -pkg_INTERNAL_MACRO -END - -cat > acinclude.m4 << 'END' -AC_DEFUN([pkg_INTERNAL_MACRO]) -AC_DEFUN([pkg_INTERNAL_MACRO]) -END - -$ACLOCAL && exit 1 -exit 0