From 20077d035224c6f3b3eef8b111b8b842635f2c40 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Fri, 5 Feb 2021 12:53:27 +0100 Subject: [PATCH] tools/configure: add bison as mandatory MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bison is now mandatory when the pvshim build is enabled in order to generate the Kconfig. Signed-off-by: Roger Pau Monné Release-Acked-by: Ian Jackson Reviewed-by: Ian Jackson --- tools/configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/configure.ac b/tools/configure.ac index 3a3e7b4b2b..6b611deb13 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -309,7 +309,6 @@ AC_ARG_VAR([AWK], [Path to awk tool]) AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL -AC_PATH_PROG([BISON], [bison]) AC_PATH_PROG([FLEX], [flex]) AX_PATH_PROG_OR_FAIL([PERL], [perl]) AX_PATH_PROG_OR_FAIL([AWK], [awk]) @@ -517,6 +516,11 @@ AC_ARG_ENABLE([pvshim], esac ]) AC_SUBST(pvshim) +AS_IF([test "x$pvshim" = "xy"], [ + AX_PATH_PROG_OR_FAIL([BISON], [bison]) +], [ + AC_PATH_PROG([BISON], [bison]) +]) AX_FIND_HEADER([INCLUDE_ENDIAN_H], [endian.h sys/endian.h]) -- 2.30.2