Skip to content
Snippets Groups Projects
Commit fe7ea4b6 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Add support for testing reentrant support in flex

parent 5a574cc6
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,13 @@ LT_INIT
# Checks for programs.
AC_PROG_CC
AM_PROG_LEX
LEX_FLEX=`$LEX -version | awk '{print $1;exit}'`
LEX_FLEX=`$LEX --version | awk '{print $1;exit}'`
if test "$LEX_FLEX" != "flex"; then
AC_MSG_ERROR([GNU flex needed for reentrant parsers, set the \$LEX variable before running configure])
fi
if ! $LEX --reentrant </dev/null 2>/dev/null; then
AC_MSG_ERROR([GNU flex version 2.X.X or higher needed for reentrant parsers])
fi
AC_PROG_YACC
YACC_BISON=`bison --version | awk '{print $1;exit}'`
if test "$YACC_BISON" != "bison"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment