Files
xen/m4/golang.m4
T
Nick Rosbrook fec6a7af5c tools: check go compiler version if present
Currently, no minimum go compiler version is required by the configure
scripts. However, the go bindings actually will not build with some
older versions of go. Add a check for a minimum go version of 1.11.1 in
accordance with tools/golang/xenlight/go.mod.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Tested-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
2020-06-15 15:49:13 +01:00

9 lines
201 B
Plaintext

AC_DEFUN([AC_PROG_GO], [
dnl Check for the go compiler
AC_CHECK_TOOL([GO],[go],[no])
if test "$GO" != "no"; then
GOVERSION=`$GO version | cut -d " " -f 3 | sed "s/go//"`
fi
])