build: require bison >= 2.3a
authorRan Benita <ran@unusedvar.com>
Fri, 5 May 2023 07:16:30 +0000 (10:16 +0300)
committerRan Benita <ran@unusedvar.com>
Fri, 5 May 2023 08:17:07 +0000 (11:17 +0300)
At least 2.3 (released 2006) which is the version shipped with macos
doesn't work. Reading the changelog I think 2.3a *should* work, so
require that.

Signed-off-by: Ran Benita <ran@unusedvar.com>
meson.build

index 2c90cf9..9971dc0 100644 (file)
@@ -154,7 +154,7 @@ map_to_def = find_program('scripts/map-to-def')
 # libxkbcommon.
 # Note: we use some yacc extensions, which work with either GNU bison
 # (preferred) or byacc (with backtracking enabled).
-bison = find_program('bison', 'win_bison', required: false)
+bison = find_program('bison', 'win_bison', required: false, version: '>= 2.3a')
 if bison.found()
     yacc_gen = generator(
         bison,