build system: fix lexinc path by replacing the last instance of 'flex'

time-shift
Houtan Bastani 2016-03-09 14:03:14 +01:00
parent f471105a21
commit 04989822ac
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ AC_PROG_MKDIR_P
AM_PROG_LEX
# Hack to get lex include dir, ticket #575
AC_PATH_PROG([LEXPATH], [$LEX])
AC_SUBST([LEXINC], [`eval "echo $LEXPATH | sed 's|$LEX$|../include|'"`])
AC_SUBST([LEXINC], [`eval "echo $LEXPATH | sed 's|\(.*\)$LEX$|\1../include|'"`])
AC_CHECK_PROG([YACC], [bison], [bison])
if test "x$YACC" = "x"; then