# HG changeset patch # User Mario de Sousa # Date 1513962842 0 # Node ID 29735e347716b5f2da0591b0d0af0505c126aa7d # Parent 0066fe31a034680544ddaf9f559b67371655e6e1 Fix method ./configure uses to determine bison version (did not work in bourne shell) (submitted by anonymous)" diff -r 0066fe31a034 -r 29735e347716 configure.ac --- a/configure.ac Thu Dec 21 17:56:12 2017 +0000 +++ b/configure.ac Fri Dec 22 17:14:02 2017 +0000 @@ -28,8 +28,7 @@ AC_PROG_AWK # Check bison version, we need a version great or equal than 2.4 to build matiec. -version_bison="$(bison --version | sed q | cut -d' ' -f4)" -version_bison=${version_bison:0:3} +version_bison="$(bison --version | sed q | cut -d' ' -f4 | cut -d'.' -f1,2 )" AS_IF([awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'], [have_bison_correct=yes], [have_bison_correct=no])