X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7ba01e111c878291d8677db124eb4d7aef7c9541..39bace5da815c0290ce5e84628ca7615307b8349:/configure.ac diff --git a/configure.ac b/configure.ac index df5670cd..992e2033 100644 --- a/configure.ac +++ b/configure.ac @@ -144,7 +144,9 @@ if test "$enable_gcc_warnings" = yes; then done # Clang++ 3.2+ reject C code generated by Flex. gl_WARN_ADD([-Wno-null-conversion], [FLEX_SCANNER_CXXFLAGS]) - # So does G++ 4.8 in std=c++11 mode. + # So does G++ 4.8... + gl_WARN_ADD([-Wno-sign-compare], [FLEX_SCANNER_CXXFLAGS]) + # ... possiby in std=c++11 mode. gl_WARN_ADD([-Wno-zero-as-null-pointer-constant], [FLEX_SCANNER_CXXFLAGS]) CXXFLAGS=$save_CXXFLAGS AC_LANG_POP([C++]) @@ -173,7 +175,10 @@ AC_SUBST([YACC_LIBRARY]) # Checks for programs. AM_MISSING_PROG([DOT], [dot]) AC_PROG_LEX -$LEX_IS_FLEX || AC_MSG_ERROR([Flex is required]) +$LEX_IS_FLEX || test "X$LEX" = X: || { + AC_MSG_WARN([bypassing lex because flex is required]) + LEX=: +} AC_PROG_YACC AC_PROG_RANLIB AC_PROG_GNU_M4 @@ -228,10 +233,16 @@ case $VALGRIND:$host_os in '':*) ;; *:darwin*) # See README-hacking. - # VALGRIND+=' --suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind' + # VALGRIND+='-q --suppressions=$(abs_top_srcdir)/build-aux/darwin11.4.0.valgrind' VALGRIND=;; *:*) - AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"]);; + suppfile=build-aux/$host_os.valgrind + if test -f "$srcdir/$suppfile"; then + VALGRIND="$VALGRIND --gen-suppressions=all" + VALGRIND="$VALGRIND --suppressions=\$(abs_top_srcdir)/$suppfile" + fi + AC_SUBST([VALGRIND_PREBISON], ["$VALGRIND -q"]) + ;; esac AM_MISSING_PROG([AUTOM4TE], [autom4te])