Signed-off-by: Jens Axboe <axboe@fb.com>
# Unless explicitly enabled, turn off lex.
if test -z "$disable_lex" ; then
disable_lex="yes"
# Unless explicitly enabled, turn off lex.
if test -z "$disable_lex" ; then
disable_lex="yes"
+ else
+ force_no_lex_o="yes"
# Check if lex fails using -o
if test "$arith" = "yes" ; then
# 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"
$LEX -o lex.yy.c exp/expression-parser.l 2> /dev/null
if test "$?" = "0" ; then
lex_use_o="yes"
echo "lex/yacc for arithmetic $arith"
echo "lex/yacc for arithmetic $arith"