From ee5465c2505abfb9996c10a05fd8c8f2c63243d0 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Fri, 4 Sep 2020 22:58:27 +0100 Subject: [PATCH] configure.ac: fix golang binary check When checking the version of golang, test the major part of the string (1.XX.yy), and fix up the error message to not mislead the minimum version. Fixes #202 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e0db2d3f1..58ac4da07 100644 --- a/configure.ac +++ b/configure.ac @@ -83,9 +83,9 @@ if test ! x"$with_golang" = xno; then if test -n "$GO" ; then GOVERSIONOPTION=version go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version //') - AC_MSG_CHECKING([whether go version is >= 1.4.x]) + AC_MSG_CHECKING([whether go version is >= 1.14.x]) case $go_version in - go1.[14]*) + go1.1[456789]*) AC_MSG_RESULT([yes - version is: $go_version]) with_golang="yes" GO= @@ -93,7 +93,7 @@ if test ! x"$with_golang" = xno; then *) AC_MSG_RESULT([no - version is: $go_version]) with_golang="no" - problem_golang=": version of go ($go_version) <= 1.4.x" + problem_golang=": version of go ($go_version) <= 1.14.x" ;; esac fi