Commit d59ff39d22b807cf40d821650e06896950a07425

Adrian Perez de Castro 2019-08-13T01:17:51

meson.build: Take win_bison as a possible variant for Bison Signed-off-by: Ran Benita <ran@unusedvar.com>

diff --git a/PACKAGING b/PACKAGING
index ab1b682..85488e9 100644
--- a/PACKAGING
+++ b/PACKAGING
@@ -11,7 +11,7 @@ libxkbcommon-x11 can be disabled with -Denable-x11=false (see
 Dependencies for libxkbcommon:
 - C compiler, meson, pkg-config, libc, bash, grep, sed.
 
-- (build) bison (preferred) or byacc>=20141006.
+- (build) bison (preferred), win_bison or byacc>=20141006.
   byacc must be configured with --enable-btyacc.
 
 - (build optional, runtime) xkeyboard-config.
diff --git a/meson.build b/meson.build
index efbf661..0098492 100644
--- a/meson.build
+++ b/meson.build
@@ -128,7 +128,7 @@ have_version_script = cc.links(
 # libxkbcommon.
 # Note: we use some yacc extensions, which work with either GNU bison
 # (preferred) or byacc. Other yacc's may or may not work.
-yacc = find_program('bison', 'byacc')
+yacc = find_program('bison', 'win_bison', 'byacc')
 yacc_gen = generator(
     yacc,
     output: ['@BASENAME@.c', '@BASENAME@.h'],