{
my ($options, @list) = @_;
my @warnings = ();
+ my $ret = 1;
foreach my $h (@list)
{
# Obsolete (and now removed) de-ANSI-fication support.
error ($where,
"automatic de-ANSI-fication support has been removed");
- return 0;
+ $ret = 0;
}
# TODO: Remove this special check in Automake 3.0.
elsif ($_ eq 'cygnus')
{
error $where, "support for Cygnus-style trees has been removed";
- return 0;
+ $ret = 0;
}
# TODO: Remove this special check in Automake 3.0.
elsif ($_ eq 'dist-lzma')
{
error ($where, "support for lzma-compressed distribution " .
"archives has been removed");
- return 0;
+ $ret = 0;
}
# TODO: Make this a fatal error in Automake 2.0.
elsif ($_ eq 'dist-shar')
{
if (not _option_is_from_configure ($_, $where))
{
- return 0;
+ $ret = 0;
}
for my $opt ('tar-v7', 'tar-ustar', 'tar-pax')
{
if $opt eq $_ or ! exists $options->{$opt};
error ($where,
"options '$_' and '$opt' are mutually exclusive");
- return 0;
+ $ret = 0;
}
}
elsif (/^\d+\.\d+(?:\.\d+)?[a-z]?(?:-[A-Za-z0-9]+)?$/)
{
error ($where, "require Automake $_, but have $VERSION",
uniq_scope => US_GLOBAL);
- return 0;
+ $ret = 0;
}
}
elsif (/^(?:--warnings=|-W)(.*)$/)
elsif (! _is_valid_easy_option $_)
{
error ($where, "option '$_' not recognized");
- return 0;
+ $ret = 0;
}
}
+
# We process warnings here, so that any explicitly-given warning setting
# will take precedence over warning settings defined implicitly by the
# strictness.
"unknown warning category '$w->{'cat'}'"
if switch_warning $w->{cat};
}
- return 1;
+
+ return $ret;
}
sub process_option_list (@)