]> The Tcpdump Group git mirrors - libpcap/commit
Fix Bison detection for minor version 0. [skip ci]
authorDenis Ovsienko <[email protected]>
Wed, 3 Feb 2021 21:55:15 +0000 (21:55 +0000)
committerGuy Harris <[email protected]>
Thu, 25 Feb 2021 19:02:29 +0000 (11:02 -0800)
commit840d7122d448e2bcba9a7159d2c7738edbcb3bbc
treeae43487c676ca524a9c2d6a4a8ffd1bfa0afa334
parent8f62d0e631afdb361dcc4e8de375608861344e33
Fix Bison detection for minor version 0. [skip ci]

Amend the autoconf and CMake regexps to match a minor version that is
an integer >= 0 instead of >= 1. As far as I can tell, grammar.y would
have "%define api.pure" instead of "%pure-parser" for bison/yacc
versions 1.0 and 2.0 (cannot estimate the probability of running into
these in the wild though). Also this bug caused an error message in the
middle of the usual output:

./configure: line 8569: test: : integer expression expected

$ bison -V
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(cherry picked from commit 3c453c59240786868dc3f1e47adaa3daaeca7579)
CHANGES
CMakeLists.txt
configure
configure.ac