From: Jannick Date: Tue, 3 Nov 2020 15:11:23 +0000 (-0500) Subject: _AC_PROG_YYTEXT_DECL: Forward declare yywrap (#110312) X-Git-Tag: v2.69d~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ada9d3a0e46c28c0a3af2357b64bbd14d818a8;p=thirdparty%2Fautoconf.git _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. --- 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; }