# HG changeset patch
# User Manuele Conti <conti.ma@alice.it>
# Date 1346186246 -7200
# Node ID 2ca07e3b08d6ec4f40bb026f2e5ce03c8d082bc8
# Parent  5681f600ac18ccbb37f0b7c2a1ed836a6f2d3a6b
Replace test bison version without bash regular expression.
Tested on OS X 10.8 - Linux Ubuntu 12.4 - MinGW.

diff -r 5681f600ac18 -r 2ca07e3b08d6 configure.ac
--- a/configure.ac	Thu Aug 16 22:44:38 2012 +0200
+++ b/configure.ac	Tue Aug 28 22:37:26 2012 +0200
@@ -28,7 +28,8 @@
 AC_PROG_AWK
 
 # Check bison version, we need a version great or equal than 2.4 to build matiec.
-[[[ $(bison --version) =~ ([0-9][.][0-9]*) ]]] && version_bison="${BASH_REMATCH[[1]]}"
+version_bison="$(bison --version | sed q | cut -d' ' -f4)"
+version_bison=${version_bison:0:3}
 
 AS_IF([awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'],
 	[have_bison_correct=yes], [have_bison_correct=no])