From b51021698e1b87e080640eaba95402365941774b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 30 Apr 2018 09:37:14 +0200 Subject: [PATCH] build-sys: improve bison version detection Addresses: https://github.com/karelzak/util-linux/issues/630 Signed-off-by: Karel Zak --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 04b6cb4593..3625b2da91 100755 --- a/autogen.sh +++ b/autogen.sh @@ -73,7 +73,7 @@ if ! (bison --version) < /dev/null > /dev/null 2>&1; then echo DIE=1 else - lexver=$(bison --version | awk '/bison \(GNU Bison\)/ { print $4 }') + lexver=$(bison --version | awk '/^bison \(GNU [Bb]ison\)/ { print $4 }') case "$lexver" in [2-9].*) ;; -- 2.47.3