From 60c820245de2bfc5c43e6b2e85f7985ea7881a2f Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Tue, 18 Aug 2020 09:05:33 -0400 Subject: [PATCH] Only set -Wno-yacc if $YACC supports it --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d0b228f..2f22ece 100644 --- a/configure.ac +++ b/configure.ac @@ -53,7 +53,9 @@ if $YACC -V >/dev/null 2>&1; then if $YACC -Wno-conflicts-sr -V >/dev/null 2>&1; then YFLAGS="$YFLAGS -Wno-conflicts-sr" fi - YFLAGS="$YFLAGS -Wno-yacc" + if $YACC -Wno-yacc -V >/dev/null 2>&1; then + YFLAGS="$YFLAGS -Wno-yacc" + fi else sql=false fi