From: Jens Axboe Date: Thu, 7 Jan 2016 18:18:22 +0000 (-0700) Subject: configure: lex force off X-Git-Tag: fio-2.4~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=daf705b52f6473dff99e631b6b3d3ce574b00a11 configure: lex force off Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index e92e96b8..51766823 100755 --- a/configure +++ b/configure @@ -247,6 +247,8 @@ AIX) # Unless explicitly enabled, turn off lex. if test -z "$disable_lex" ; then disable_lex="yes" + else + force_no_lex_o="yes" fi ;; Darwin) @@ -1505,6 +1507,9 @@ fi # Check if lex fails using -o if test "$arith" = "yes" ; then +if test "$force_no_lex_o" = "yes" ; then + lex_use_o="no" +else $LEX -o lex.yy.c exp/expression-parser.l 2> /dev/null if test "$?" = "0" ; then lex_use_o="yes" @@ -1512,6 +1517,7 @@ else lex_use_o="no" fi fi +fi echo "lex/yacc for arithmetic $arith"