X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/ec991d74e1da338c151921fc2309b4e8669f39bf..d116722c542af7c6c85012064aa06c0f4d8d3d01:/configure.ac diff --git a/configure.ac b/configure.ac index 734825af..f7319a15 100644 --- a/configure.ac +++ b/configure.ac @@ -230,10 +230,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])