]> git.ipfire.org Git - pakfire.git/commitdiff
configure: Use bison instead of POSIX yacc
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Feb 2021 16:26:46 +0000 (16:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Feb 2021 16:26:46 +0000 (16:26 +0000)
bison is around everywhere and we can make use of its modern features
instead of sticking to the POSIX standard.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
configure.ac

index 87b686bbee88fc9bb0f9afaac902718dc9adc32b..3f1ed8a87ed84547153c357a01ad9300c78ec81b 100644 (file)
@@ -107,8 +107,11 @@ CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
        -Wl,-z,now])
 AC_SUBST([OUR_LDFLAGS], $with_ldflags)
 
-# Bison & Flex
-AC_PROG_YACC
+# Bison
+AC_PATH_PROG(YACC, bison)
+AC_SUBST(YACC)
+
+# Flex
 AM_PROG_LEX
 
 # Python