m4/gst-parser.m4: Fix AG_GST_BISON_CHECK to handle version numbers with more than...
authorRoland Illig <roland.illig@gmx.de>
Mon, 15 Dec 2008 07:06:26 +0000 (07:06 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 15 Dec 2008 07:06:26 +0000 (07:06 +0000)
Original commit message from CVS:
Patch by: Roland Illig <roland dot illig at gmx dot de>
* m4/gst-parser.m4:
Fix AG_GST_BISON_CHECK to handle version numbers with more than
two components (i.e. 2.4.1). Fixes bug #564507.

ChangeLog
m4/gst-parser.m4

index b3daa20..c26049b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-15  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       Patch by: Roland Illig <roland dot illig at gmx dot de>
+
+       * m4/gst-parser.m4:
+       Fix AG_GST_BISON_CHECK to handle version numbers with more than
+       two components (i.e. 2.4.1). Fixes bug #564507.
+
 2008-12-14  Edward Hervey  <bilboed@gmail.com>
 
        * gst.supp:
index 6698c9c..ac98442 100644 (file)
@@ -15,10 +15,7 @@ AC_DEFUN([AG_GST_BISON_CHECK],
   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
-    exit ($bison_version < $bison_min_version) ? 0 : 1;
-EOF 
-  then 
+  if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then 
     AC_MSG_RESULT([yes])
   else 
     AC_MSG_ERROR([no])