configure: Require a new enough flex version.

Wine needs a newer flex version than the prediluvian 2.5.4a.
This commit is contained in:
Michael Stefaniuc 2009-12-29 18:07:02 +01:00 committed by Alexandre Julliard
parent af302090b2
commit ce30733337
2 changed files with 31 additions and 0 deletions

17
configure vendored
View File

@ -4214,6 +4214,23 @@ if test "$FLEX" = "none"
then then
as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
$as_echo_n "checking whether flex is recent enough... " >&6; }
cat >conftest.l <<EOF
%top{
#include "prediluvian.h"
}
%%
EOF
if $FLEX -t conftest.l >/dev/null 2>&1
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
fi
for ac_prog in bison for ac_prog in bison
do do

View File

@ -230,6 +230,20 @@ if test "$FLEX" = "none"
then then
AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.]) AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.])
fi fi
AC_MSG_CHECKING([whether flex is recent enough])
cat >conftest.l <<EOF
%top{
#include "prediluvian.h"
}
%%
EOF
if $FLEX -t conftest.l >/dev/null 2>&1
then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([Your flex version is too old. Please install flex version 2.5.33 or newer.])
fi
dnl Check for bison dnl Check for bison
AC_CHECK_PROGS(BISON,bison,none) AC_CHECK_PROGS(BISON,bison,none)