# HG changeset patch # User Mario de Sousa # Date 1346273553 -3600 # Node ID e7ac0fe9a287e4d953c657d8b51a4aac39523937 # Parent 1cc0e1ca2aad746ad9dad941453cfb8b3994dcbc# Parent 2ca07e3b08d6ec4f40bb026f2e5ce03c8d082bc8 Merge. diff -r 1cc0e1ca2aad -r e7ac0fe9a287 configure.ac --- a/configure.ac Wed Aug 29 19:38:15 2012 +0100 +++ b/configure.ac Wed Aug 29 21:52:33 2012 +0100 @@ -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])