tools: build golang tools if go compiler is present
authorNick Rosbrook <rosbrookn@gmail.com>
Fri, 24 Apr 2020 03:05:40 +0000 (23:05 -0400)
committerWei Liu <wl@xen.org>
Mon, 27 Apr 2020 13:24:59 +0000 (14:24 +0100)
commit1e13ea98bbb8369d065af4666c45c26dab5240d5
tree3e511921ca28db432077754405b43496a26e61df
parent8d4c17a90b0a9b3d82628461090a54a2c7897154
tools: build golang tools if go compiler is present

By default, if the go compiler is found by the configure script, build
the golang tools. If the compiler is not found, and --enable-golang was
not explicitly set, do not build to the golang tools.

The corresponding make variable is CONFIG_GOLANG. Remove CONFIG_GOLANG
from tools/Rules.mk since the variable is now set by configure in
config/Tools.mk.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Acked-by: Wei Liu <wl@xen.org>
Acked-by: George Dunlap <george.dunlap@citrix.com>
config/Tools.mk.in
m4/golang.m4 [new file with mode: 0644]
tools/Rules.mk
tools/configure
tools/configure.ac