From 9ae7b11b64533f8f227a3ba579cdfc0be7a4e757 Mon Sep 17 00:00:00 2001 From: Yossi Itigin Date: Tue, 8 Mar 2022 17:18:37 +0200 Subject: [PATCH] CONFIG/GO: Don't fail configure if can't find go compiler When --with-go=guess (default), should not fail if go not found --- config/m4/go.m4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/m4/go.m4 b/config/m4/go.m4 index 9d80eda1b70..47497b13985 100644 --- a/config/m4/go.m4 +++ b/config/m4/go.m4 @@ -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.])