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:
William S Fulton 2010-12-09 07:39:19 +00:00
commit 2ccdf35dd6

View file

@ -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