+2003-04-27 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * automake.in (@common_files): Remove acinclude.m4 since
+ it will be m4_included by aclocal.m4 and files are always
+ distributed.
+ (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
+ We will get this dependency when tracing m4_includes.
+ * tests/aclocal6.test: Make sure acinclude.m4 is distributed
+ when used.
+ * tests/acinclude.test: Delete.
+ * tests/Makefile.am (TESTS): Remove acinclude.test.
+
2003-04-25 Alexandre Duret-Lutz <adl@gnu.org>
* automake.in (handle_configure): Don't add @configure_deps to
# DISTFILES.
my @common_files =
(qw(ABOUT-GNU ABOUT-NLS AUTHORS BACKLOG COPYING COPYING.DOC COPYING.LIB
- COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO acinclude.m4
+ COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO
ansi2knr.1 ansi2knr.c compile config.guess config.rpath config.sub
configure configure.ac configure.in depcomp elisp-comp
install-sh libversion.in mdate-sh missing mkinstalldirs
my @ac_deps = ();
- if (-f 'acinclude.m4')
- {
- $regen_aclocal = 1;
- push @ac_deps, 'acinclude.m4';
- }
-
if (variable_defined ('ACLOCAL_M4_SOURCES'))
{
push (@ac_deps, '$(ACLOCAL_M4_SOURCES)');
XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test
TESTS = \
-acinclude.test \
aclibobj.test \
aclocal.test \
aclocal3.test \
target_alias = @target_alias@
XFAIL_TESTS = auxdir2.test cond17.test txinfo5.test
TESTS = \
-acinclude.test \
aclibobj.test \
aclocal.test \
aclocal3.test \
+++ /dev/null
-#! /bin/sh
-# Copyright (C) 1996, 2002, 2003 Free Software Foundation, Inc.
-#
-# This file is part of GNU Automake.
-#
-# GNU Automake is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# GNU Automake is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with autoconf; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# Test to make sure acinclude is actually included.
-# Report from Jim Meyering.
-
-. ./defs || exit 1
-
-set -e
-: > acinclude.m4
-
-$ACLOCAL
-grep 'm4_include.*acinclude\.m4' aclocal.m4
# Boston, MA 02111-1307, USA.
# Make sure aclocal.m4 is rebuilt whenever a configure
-# dependency changes. Test for VPATH too.
+# dependency changes. Test for acinclude.m4 and VPATH too.
required='GNUmake'
. ./defs || exit 1
# Update an aclocal.m4 dependency, then make sure all Makefiles
# are updated, even from a sub-directory.
echo 'AC_DEFUN([SOME_DEFS], [MORE_DEFS])' > ../m4/somedefs.m4
+# Because aclocal will run again, it should also pick up acinclude.m4.
+echo 'AC_SUBST([METOO])' > ../acinclude.m4
+
cd sub
$MAKE
cd ..
grep GREPME Makefile
grep GREPME sub/Makefile
+grep GREPME sub/Makefile
+grep METOO Makefile
+grep METOO sub/Makefile
+grep METOO sub/Makefile
# Make sure configure dependencies are distributed.
$MAKE distdir
test -f aclocal6-1.0/m4/moredefs.m4
test -f aclocal6-1.0/m4/somedefs.m4
+test -f aclocal6-1.0/acinclude.m4