Skip to content

Commit

Permalink
CONFIG/GO: Don't fail configure if can't find go compiler
Browse files Browse the repository at this point in the history
When --with-go=guess (default), should not fail if go not found
  • Loading branch information
yosefe committed Mar 13, 2022
1 parent 65a2ac0 commit 9ae7b11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/m4/go.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ AS_IF([test "x$with_go" != xno],
AC_CHECK_PROG(GOBIN, go, yes)
AS_IF([test "x${GOBIN}" = "xyes"],
[AS_VERSION_COMPARE([1.16], [`go version | awk '{print substr($3, 3, length($3)-2)}'`],
[go_happy="yes"], [go_happy="yes"],
[AC_MSG_ERROR([Need Go compiler of version 1.16 or newer.])])],
[go_happy="yes"], [go_happy="yes"], [go_happy=no])],
[go_happy=no])
AS_IF([test "x$go_happy" == xno],
[AS_IF([test "x$with_go" = "xguess"],
[AC_MSG_WARN([Disabling GO support - GO compiler not found.])],
[AC_MSG_ERROR([GO support was explicitly requested, but go compiler not found.])])
])
[AC_MSG_WARN([Disabling GO support - GO compiler version 1.16 or newer not found.])],
[AC_MSG_ERROR([GO support was explicitly requested, but go compiler not found.])])])
],
[
AC_MSG_WARN([GO support was explicitly disabled.])
Expand Down

0 comments on commit 9ae7b11

Please sign in to comment.