gst/parse: define pure-parser depending on bison version
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 26 Aug 2019 10:48:28 +0000 (12:48 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 5 Nov 2019 15:25:23 +0000 (15:25 +0000)
commit77141834bb5d124fb5781ed3be6230cc66cb42de
tree01576fafaeeeaf5ca6878648e90cbc7f73766c1c
parent44623cacd637efb8f6cf93512238cdad575b9f60
gst/parse: define pure-parser depending on bison version

After release bison 2.5 the declaration %pure-parser was deprecated
in favor of %define api.pure

Nonetheless, until bison 3.4, the declaration was treated as backward
compatibility, but now bison shows a warning:

  warning: deprecated directive, use ‘%define api.pure’

The patch's approach is to handle both directives according with the
used bison's version, by string replacement at source configuration
stage.
gst/parse/grammar.y.in [moved from gst/parse/grammar.y with 99% similarity]
gst/parse/meson.build