m4/gst-parser.m4: Fix bison version number detection for older --version output forma...
authorTim-Philipp Müller <tim@centricular.net>
Sun, 20 Jul 2008 19:55:14 +0000 (19:55 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 20 Jul 2008 19:55:14 +0000 (19:55 +0000)
Original commit message from CVS:
* m4/gst-parser.m4::
Fix bison version number detection for older --version
output format (as bison 1.28 on OSX 10.4 outputs).
Fixes #543853.

ChangeLog
m4/gst-parser.m4

index a56aba5..b9aadad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-20  Tim-Philipp Müller  <tim.muller at collabora co uk>
+
+       * m4/gst-parser.m4::
+         Fix bison version number detection for older --version
+         output format (as bison 1.28 on OSX 10.4 outputs).
+         Fixes #543853.
+
 2008-07-12  Stefan Kost  <ensonic@users.sf.net>
 
        * plugins.xsl:
index 8bac242..6698c9c 100644 (file)
@@ -10,8 +10,9 @@ AC_DEFUN([AG_GST_BISON_CHECK],
   dnl check bison version
   dnl we need version >= 1.875 for the reentrancy support
   dnl in the parser.
+  dnl First lines observed: 'bison (GNU Bison) 2.3' or 'GNU Bison version 1.28'
   bison_min_version=1.875
-  bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^.*) //' | sed 's/[[a-zA-Z]]*$//' | cut -d' ' -f1`
+  bison_version=`$BISON_PATH --version | head -n 1 |  sed 's/^[[^0-9]]*//' | sed 's/[[^0-9]]*$//' | cut -d' ' -f1`
   AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version])
 
   if perl -w <<EOF