summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-04 14:23:29 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-12 19:22:59 +0200
commit1af5b6d9a3cc2bb264bb80f5c33e75ba79de53b2 (patch)
treeb875a5c0203b00098f6f43835625d294f65c0cf5
parent2655e41fa20c2fc7ae9a7bed50d1fb299b49ab5d (diff)
build: use -Wno-yacc on bison 3.3+
we only support bison, we don't care about yacc compatibility. Signed-off-by: David Lamparter <equinox@diac24.net>
-rwxr-xr-xconfigure.ac12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index a7d9b542b9..84ee213cd1 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1859,7 +1859,7 @@ AC_MSG_CHECKING([version of bison])
frr_ac_bison_version="$(eval $YACC -V | grep bison | head -n 1)"
frr_ac_bison_version="${frr_ac_bison_version##* }"
frr_ac_bison_missing="false"
-case "x${frr_ac_bison_version}" in
+case "x${frr_ac_bison_version}x" in
x2.7*)
BISON_OPENBRACE='"'
BISON_CLOSEBRACE='"'
@@ -1876,11 +1876,17 @@ case "x${frr_ac_bison_version}" in
AC_MSG_WARN([could not determine bison version. Please install GNU bison 2.7.x or newer.])
frr_ac_bison_missing="true"
;;
- *)
+ x3.[012][^0-9]*)
BISON_OPENBRACE='{'
BISON_CLOSEBRACE='}'
BISON_VERBOSE='-Dparse.error=verbose'
- AC_MSG_RESULT([$frr_ac_bison_version - 3.0 or newer])
+ AC_MSG_RESULT([$frr_ac_bison_version - 3.0 to 3.2])
+ ;;
+ *)
+ BISON_OPENBRACE='{'
+ BISON_CLOSEBRACE='}'
+ BISON_VERBOSE='-Dparse.error=verbose -Wno-yacc'
+ AC_MSG_RESULT([$frr_ac_bison_version - 3.3 or newer])
;;
esac
AC_SUBST([BISON_OPENBRACE])