[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
aclocal.m4's AU_DEFUNs are discarded by autoupdate
From: |
Alexandre Duret-Lutz |
Subject: |
aclocal.m4's AU_DEFUNs are discarded by autoupdate |
Date: |
18 Apr 2002 22:54:05 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Why does autoupdate explicitly ignore AU_DEFUNed symbols in
aclocal.m4? This prevents third party tools (such as Automake)
from provinging there own autoupdatable macros.
Let's quote the wonderful error message (for the sake of future
google users):
% autoupdate -f
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [m4.m4]: No such file or
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [m4sugar/m4sugar.m4]: No
such file or directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [ac.m4]: No such file or
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Warning: Excess arguments to built-in
`_au_ifdef' ignored
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [unac.m4]: No such file or
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [unm4.m4]: No such file or
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Warning: Excess arguments to built-in
`_au_ifdef' ignored
autoupdate: `configure.in' is updated
2002-04-18 Alexandre Duret-Lutz <address@hidden>
* bin/autoupdate.in (handle_autoconf_macros): Don't ignore traces
from aclocal.m4, so that its AU_DEFUNs get quoted too.
Index: bin/autoupdate.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoupdate.in,v
retrieving revision 1.31
diff -u -r1.31 autoupdate.in
--- bin/autoupdate.in 8 Mar 2002 11:46:31 -0000 1.31
+++ bin/autoupdate.in 18 Apr 2002 20:45:54 -0000
@@ -167,12 +167,11 @@
my ($domain, $file, $macro) = /^(AC|AU):(.*):([^:]*)$/ or next;
# ../lib/m4sugar/m4sugar.m4 -> m4sugar
# ../lib/autoconf/general.m4 -> autoconf
- # aclocal.m4 -> ignore
- next
- if $file eq 'aclocal.m4';
+ # aclocal.m4 -> aclocal
my $set = basename (dirname ($file));
+ $set = 'aclocal' if $file eq 'aclocal.m4';
die "$me: unknown set: $set: $_\n"
- unless $set =~ /^(m4sugar|autoconf)$/;
+ unless $set =~ /^(m4sugar|aclocal|autoconf)$/;
if ($domain eq "AC")
{
$ac_macros{$macro} = $set;
--
Alexandre Duret-Lutz
- aclocal.m4's AU_DEFUNs are discarded by autoupdate,
Alexandre Duret-Lutz <=