summaryrefslogtreecommitdiff
path: root/aclocal.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1999-12-15 19:03:10 +0000
committerTom Tromey <tromey@redhat.com>1999-12-15 19:03:10 +0000
commit3984f1eb16dfd6bfc09f76390428befd28ca59e0 (patch)
tree373b65945428e1aa35f088d83a6a51e381386263 /aclocal.in
parent6b57816fbe9ee6c4a7a849220c471ba2d7d40a20 (diff)
downloadautomake-3984f1eb16dfd6bfc09f76390428befd28ca59e0.tar.gz
* aclocal.in: Don't pass $acdir to scan_m4_files.
(parse_arguments): Push $acdir on end of dirlist. (scan_file): Don't warn if duplicate macro seen.
Diffstat (limited to 'aclocal.in')
-rw-r--r--aclocal.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/aclocal.in b/aclocal.in
index 472d1d08e..1ac0f14e4 100644
--- a/aclocal.in
+++ b/aclocal.in
@@ -112,7 +112,7 @@ $ac_require_rx = "AC_REQUIRE\\(\\[?([^])]*)\\]?\\)";
local (@dirlist) = &parse_arguments (@ARGV);
-&scan_m4_files ($acdir, @dirlist);
+&scan_m4_files (@dirlist);
&scan_configure;
if (! $exit_status)
{
@@ -201,6 +201,9 @@ sub parse_arguments
exit 0;
}
+ # Search our install directory last.
+ push (@dirlist, $acdir);
+
return @dirlist;
}
@@ -392,13 +395,14 @@ sub scan_file
if (/$ac_defun_rx/)
{
- if (!defined $map{$1})
+ if (! defined $map{$1})
{
$map{$1} = $file;
}
- # Allow acinclude.m4 to override other macro files.
- elsif ($map{$1} ne 'acinclude.m4' || $file eq 'acinclude.m4')
+ 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;
}