On some centos 5 the lex -o option is broken. Add a way to just
disable lex/yacc for math support.
Signed-off-by: Jens Axboe <axboe@fb.com>
exit_val=0
gfio_check="no"
libhdfs="no"
exit_val=0
gfio_check="no"
libhdfs="no"
prefix=/usr/local
# parse options
prefix=/usr/local
# parse options
;;
--enable-libhdfs) libhdfs="yes"
;;
;;
--enable-libhdfs) libhdfs="yes"
;;
+ --disable-lex) disable_lex="yes"
+ ;;
--disable-shm) no_shm="yes"
;;
--disable-optimizations) disable_opt="yes"
--disable-shm) no_shm="yes"
;;
--disable-optimizations) disable_opt="yes"
echo "--disable-numa Disable libnuma even if found"
echo "--disable-gfapi Disable gfapi"
echo "--enable-libhdfs Enable hdfs support"
echo "--disable-numa Disable libnuma even if found"
echo "--disable-gfapi Disable gfapi"
echo "--enable-libhdfs Enable hdfs support"
+ echo "--disable-lex Disable use of lex/yacc for math"
echo "--disable-shm Disable SHM support"
echo "--disable-optimizations Don't enable compiler optimizations"
exit $exit_val
echo "--disable-shm Disable SHM support"
echo "--disable-optimizations Don't enable compiler optimizations"
exit $exit_val
yacc_is_bison="no"
lex="no"
arith="no"
yacc_is_bison="no"
lex="no"
arith="no"
+if test "$disable_lex" = "no"; then
if test "$targetos" != "SunOS" ; then
LEX=$(which lex 2> /dev/null)
if test -x "$LEX" ; then
if test "$targetos" != "SunOS" ; then
LEX=$(which lex 2> /dev/null)
if test -x "$LEX" ; then
echo "lex/yacc for arithmetic $arith"
echo "lex/yacc for arithmetic $arith"