* bin/autom4te.in (load_configuration): Reject #args out of any

language.
This commit is contained in:
Akim Demaille 2002-10-31 08:37:20 +00:00
parent c4e69deefd
commit fad4a1fa3c
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-10-31 Akim Demaille <akim@epita.fr>
* bin/autom4te.in (load_configuration): Reject #args out of any
language.
2002-10-31 Akim Demaille <akim@epita.fr>
* lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.

View File

@ -465,15 +465,20 @@ sub load_configuration ($)
my $type = shift @words;
if ($type eq 'begin-language:')
{
error "$file:$.: end-language missing for: $lang"
if defined $lang;
$lang = lc $words[0];
}
elsif ($type eq 'end-language:')
{
error "$file:$.: end-language mismatch: $lang"
if $lang ne lc $words[0];
$lang = undef;
}
elsif ($type eq 'args:')
{
error "$file:$.: no current language"
unless defined $lang;
push @{$language{$lang}}, @words;
}
else