Skip to content

Commit

Permalink
configure.ac: fix golang binary check
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThomasAdam committed Sep 4, 2020
1 parent 898a452 commit ee5465c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ 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=
;;
*)
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
Expand Down

0 comments on commit ee5465c

Please sign in to comment.