From: Alexandre Duret-Lutz Date: Fri, 19 Apr 2002 10:21:29 +0000 (+0000) Subject: * automake.in (initialize_per_input): Clear %require_file_found. X-Git-Tag: Release-1-6b~125 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=ec14ee8dc862f3e2fa6c15451daf3c4f504c4f5f;p=automake.git * automake.in (initialize_per_input): Clear %require_file_found. (%require_file_found): Group the declaration with the other variables initialized by initialize_per_input. * tests/required.test: New file. * tests/Makefile.am (TESTS): Add it. Reported by Marius Vollmer. --- diff --git a/ChangeLog b/ChangeLog index 8b62d498..ca592b85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-04-19 Alexandre Duret-Lutz + + * automake.in (initialize_per_input): Clear %require_file_found. + (%require_file_found): Group the declaration with the other + variables initialized by initialize_per_input. + * tests/required.test: New file. + * tests/Makefile.am (TESTS): Add it. + Reported by Marius Vollmer. + 2002-04-19 Alexandre Duret-Lutz * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function, diff --git a/automake.in b/automake.in index dccbbcd2..86bd1897 100755 --- a/automake.in +++ b/automake.in @@ -604,6 +604,12 @@ my @substtos; # variables. my %substnums = (); +# If a file name appears as a key in this hash, then it has already +# been checked for. This variable is local to the "require file" +# functions. +my %require_file_found = (); + + ## --------------------------------- ## ## Forward subroutine declarations. ## ## --------------------------------- ## @@ -738,6 +744,8 @@ sub initialize_per_input () # We always include `.'. This isn't strictly correct. %libtool_clean_directories = ('.' => 1); + + %require_file_found = (); } @@ -985,9 +993,6 @@ while ($automake_needs_to_reprocess_all_files); exit $exit_status; -# FIXME: This should be `my'ed next to its subs. -use vars '%require_file_found'; - ################################################################ # prog_error (@PRINT-ME) @@ -7587,11 +7592,6 @@ sub is_make_dir # This variable is local to the "require file" set of functions. my @require_file_paths = (); -# If a file name appears as a key in this hash, then it has already -# been checked for. This variable is local to the "require file" -# functions. -%require_file_found = (); - # &maybe_push_required_file ($DIR, $FILE, $FULLFILE) # -------------------------------------------------- diff --git a/tests/Makefile.am b/tests/Makefile.am index 411bb3a8..985004c9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -281,6 +281,7 @@ remake.test \ remake2.test \ remake3.test \ req.test \ +required.test \ rulepat.test \ scripts.test \ seenc.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 2cb29ef3..93d1f61e 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -365,6 +365,7 @@ remake.test \ remake2.test \ remake3.test \ req.test \ +required.test \ rulepat.test \ scripts.test \ seenc.test \ diff --git a/tests/required.test b/tests/required.test new file mode 100755 index 00000000..3c65adb3 --- /dev/null +++ b/tests/required.test @@ -0,0 +1,33 @@ +#! /bin/sh + +# Make sure Automake will install several copies of required files if needed. +# Reported by Marius Vollmer. + +. $srcdir/defs || exit 1 + +set -e + +cat >> configure.in < Makefile.am +echo 'info_TEXINFOS = mumble.texi' > one/Makefile.am +cat >one/mumble.texi <<'END' +@setfilename mumble.info +@include version.texi +END + +cp one/Makefile.am one/mumble.texi two + +$ACLOCAL +$AUTOMAKE --add-missing --copy + +test -f one/mdate-sh +test -f one/texinfo.tex +test -f two/mdate-sh +test -f two/texinfo.tex