]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: improve bison version detection
authorKarel Zak <kzak@redhat.com>
Mon, 30 Apr 2018 07:37:14 +0000 (09:37 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 13:36:19 +0000 (15:36 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/630
Signed-off-by: Karel Zak <kzak@redhat.com>
autogen.sh

index 04b6cb45938eb9298f33cb11d4faf67bd5915875..3625b2da9125a105b0f5b6846dfb0075cbf93acc 100755 (executable)
@@ -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].*)
                        ;;