From: Alexandre Duret-Lutz Date: Wed, 3 Nov 2004 21:40:25 +0000 (+0000) Subject: * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists X-Git-Tag: Release-1-9b~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ea2a5ee44c95163b7fe62139f47f20a050aab4;p=thirdparty%2Fautomake.git * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists before using it. Suppress a warning observable in test/acloca16.test. Report from Ralf Wildenhues. --- diff --git a/ChangeLog b/ChangeLog index 92350ef72..5438a1360 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-11-03 Alexandre Duret-Lutz + + * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists + before using it. Suppress a warning observable in test/acloca16.test. + Report from Ralf Wildenhues. + 2004-11-01 Alexandre Duret-Lutz * lib/Automake/XFile.pm (lock): Make sure $ENV{'MAKEFLAGS'} exists @@ -805,8 +811,8 @@ %map_traced_defs. (write_aclocal): Use $map_traced_defs to filter out unused definitions. - * tests/acloca15.test: New file. - * tests/Makefile.am (TESTS): Add acloca15.test. + * tests/acloca16.test: New file. + * tests/Makefile.am (TESTS): Add acloca16.test. 2004-04-12 Alexandre Duret-Lutz diff --git a/aclocal.in b/aclocal.in index e2ec464de..b6ffce618 100644 --- a/aclocal.in +++ b/aclocal.in @@ -465,7 +465,9 @@ sub write_aclocal ($@) # instead.) for my $m (@macros) { - $files{$map{$m}} = 1 if $map{$m} eq $map_traced_defs{$m}; + $files{$map{$m}} = 1 + if (exists $map_traced_defs{$m} + && $map{$m} eq $map_traced_defs{$m}); } $files{'acinclude.m4'} = 1 if -f 'acinclude.m4'; %files = strip_redundant_includes %files;