diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-16 10:39:56 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-16 10:48:09 -0700 |
commit | 29ede6b96feee29c0c477d1659081bbdb82cd8b3 (patch) | |
tree | 798a93f0ea4e64303d1f2c1c9925a49060f61b79 /doc/autoconf.texi | |
parent | eb4a1d7fafde8e6d00ab0db3ea369c3927754e21 (diff) | |
download | autoconf-29ede6b96feee29c0c477d1659081bbdb82cd8b3.tar.gz |
AC_PROG_LEX no longer sets LEXLIB for yywrap
Suggested by Zack Weinberg in:
https://lists.gnu.org/r/autoconf-patches/2020-07/msg00016.html
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL):
Define yywrap too.
Diffstat (limited to 'doc/autoconf.texi')
-rw-r--r-- | doc/autoconf.texi | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 379e3c2f..b8f889cc 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4177,15 +4177,20 @@ The result of the test can be overridden by setting the variable @cvindex YYTEXT_POINTER @ovindex LEX_OUTPUT_ROOT @caindex prog_LEX -If @code{flex} is found, set output variable @code{LEX} to @samp{flex} -and @code{LEXLIB} to @option{-lfl}, if that library is in a standard -place. Otherwise set @code{LEX} to @samp{lex} and @code{LEXLIB} to -@option{-ll}, if found. If neither variant is available, set @code{LEX} +If @code{flex} is found, set output variable @code{LEX} to @samp{flex}. +Otherwise set @code{LEX} to @samp{lex}, if found. +If neither variant is available, set @code{LEX} to @samp{:}; for packages that ship the generated @file{file.yy.c} alongside the source @file{file.l}, this default allows users without a lexer generator to still build the package even if the timestamp for @file{file.l} is inadvertently changed. +If generated lexers need a library to work, set output variable +@code{LEXLIB} to an option for that library (e.g., @option{-ll}); +otherwise define @code{LEXLIB} to empty. A library that merely defines +@code{main} and @code{yywrap} placeholder functions is not considered +to be needed. + Define @code{YYTEXT_POINTER} if @code{yytext} defaults to @samp{char *} instead of to @samp{char []}. Also set output variable @code{LEX_OUTPUT_ROOT} to the base of the file name that the lexer generates; usually |