configure: lex force off
authorJens Axboe <axboe@fb.com>
Thu, 7 Jan 2016 18:18:22 +0000 (11:18 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jan 2016 18:18:22 +0000 (11:18 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index e92e96b879b5b92bc857d71bbce3bf16bc4978af..517668233fc79cbddd6e41157c23957ee8ab95ee 100755 (executable)
--- 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"