diff options
author | Jannick <thirdedition@gmx.net> | 2020-11-03 10:11:23 -0500 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2020-11-03 10:11:23 -0500 |
commit | 15ada9d3a0e46c28c0a3af2357b64bbd14d818a8 (patch) | |
tree | d4acbc9b64502436641554ce683ff9ab309c2c81 | |
parent | 73f1be5e42e37644e9e742e9995fac250a9b3f25 (diff) | |
download | autoconf-15ada9d3a0e46c28c0a3af2357b64bbd14d818a8.tar.gz |
_AC_PROG_YYTEXT_DECL: Forward declare yywrap (#110312)
Some versions of lex need you to forward-declare yywrap in a %{ %}
block before the rules section, if you’re going to define it yourself.
May help with bug #110312.
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): In the test
input to lex, forward-declare yywrap before the rules.
-rw-r--r-- | lib/autoconf/programs.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index e289a018..b352ce24 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -746,6 +746,9 @@ fi])]) # declares yytext as a char * by default. AC_DEFUN([_AC_PROG_LEX_YYTEXT_DECL], [cat >conftest.l <<_ACEOF[ +%{ +int yywrap(void); +%} %% a { ECHO; } b { REJECT; } |