+2002-03-07 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ Fix for PR automake/303:
+ * automake.in (version_check): Move the error message ...
+ (process_option_list): ... here, so we can distinguish between
+ global and local options.
+
2002-03-07 Alexandre Duret-Lutz <duret_g@epita.fr>
* tests/pr300-lib.test, tests/pr300-ltlib.test,
&& $ralpha gt $talpha)
|| ($rfork ne '' && $rfork ne $tfork))
{
- macro_error ('AUTOMAKE_OPTIONS',
- "require version $_, but have $VERSION");
return 1;
}
# Got a version number.
if (version_check ($1, $2, $3, $4))
{
+ if ($config)
+ {
+ file_error ($seen_init_automake,
+ "require version $_, but have $VERSION");
+ # Arrange to process this global option only once, otherwise
+ # the error message would be printed for each Makefile.
+ $global_options =~ s/(?:^| )$_(?: |$)/ /g;
+ }
+ else
+ {
+ macro_error ('AUTOMAKE_OPTIONS',
+ "require version $_, but have $VERSION");
+ }
return 1;
}
}