changeset 647 | 99b45154eb2c |
parent 624 | c2546c6e0cfa |
child 649 | 83688d55d1ad |
--- a/configure Thu Aug 30 13:06:54 2012 +0100 +++ b/configure Thu Aug 30 13:08:02 2012 +0100 @@ -4613,7 +4613,8 @@ # 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} if awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'; then : have_bison_correct=yes