suggest m4_pattern_allow.
Suggested by Adam J. Richter.
+2002-06-07 Akim Demaille <akim@epita.fr>
+
+ * bin/autom4te.in (warn_forbidden): When rejecting a token,
+ suggest m4_pattern_allow.
+ Suggested by Adam J. Richter.
+
2002-06-07 Akim Demaille <akim@epita.fr>
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
Akim Demaille akim@freefriends.org
Akinori Musha knu@iDaemons.org
Alain Knaff Alain.Knaff@imag.fr
+Adam J. Richter adam@yggdrasil.com
Alec Wolman wolman@cs.washington.edu
Alexandre Duret-Lutz duret_g@epita.fr
Alexandre Oliva oliva@lsd.ic.unicamp.br
# $WORD is forbidden. Warn with a dedicated error message if in
# %FORBIDDEN, otherwise, a simple `error: possibly undefined macro'
# will do.
+my $first_warn_forbidden = 1;
sub warn_forbidden ($$%)
{
my ($where, $word, %forbidden) = @_;
}
$message ||= "possibly undefined macro: $word";
warn "$where: error: $message\n";
+ if ($first_warn_forbidden)
+ {
+ warn <<EOF;
+ If this token and others are legitimate, please use m4_pattern_allow.
+ See the Autoconf documentation.
+EOF
+ $first_warn_forbidden = 0;
+ }
}