more standard configure messages for checking Go version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
93b030ec6a
commit
2ccdf35dd6
1 changed files with 21 additions and 17 deletions
14
configure.in
14
configure.in
|
|
@ -1995,9 +1995,9 @@ AC_ARG_WITH(go, AS_HELP_STRING([--without-go], [Disable Go])
|
||||||
AS_HELP_STRING([--with-go=path], [Set location of Go compiler]),[GOBIN="$withval"], [GOBIN=yes])
|
AS_HELP_STRING([--with-go=path], [Set location of Go compiler]),[GOBIN="$withval"], [GOBIN=yes])
|
||||||
|
|
||||||
if test x"${GOBIN}" = xno -o x"${with_alllang}" = xno ; then
|
if test x"${GOBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||||
AC_MSG_NOTICE([Disabling Go])
|
AC_MSG_NOTICE([Disabling Go])
|
||||||
GO=
|
GO=
|
||||||
GOGCC=false
|
GOGCC=false
|
||||||
else
|
else
|
||||||
|
|
||||||
if test "x$GOBIN" = xyes; then
|
if test "x$GOBIN" = xyes; then
|
||||||
|
|
@ -2011,10 +2011,14 @@ else
|
||||||
if $GO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then
|
if $GO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then
|
||||||
GOGCC=true
|
GOGCC=true
|
||||||
else
|
else
|
||||||
|
AC_MSG_CHECKING([whether Go ($GO) version is too old])
|
||||||
go_version=`$GO -V | sed -e 's/.*version \([[0-9]]*\).*/\1/'`
|
go_version=`$GO -V | sed -e 's/.*version \([[0-9]]*\).*/\1/'`
|
||||||
if test "$go_version" -lt 6707; then
|
go_min_version=6707
|
||||||
AC_MSG_NOTICE([Installed Go too old; disabling Go])
|
if test "$go_version" -lt $go_min_version; then
|
||||||
|
AC_MSG_RESULT([yes - minimum version is $go_min_version])
|
||||||
GO=
|
GO=
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue