Only check for Go version if a compiler was found.
This fixes a syntax error in the code which would occur when no Go compiler was found at all. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5558d0092a
commit
56dfa781ff
1 changed files with 11 additions and 10 deletions
21
configure.in
21
configure.in
|
|
@ -2006,17 +2006,18 @@ else
|
|||
GO="$GOBIN"
|
||||
fi
|
||||
|
||||
GOGCC=false
|
||||
if $GO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then
|
||||
GOGCC=true
|
||||
else
|
||||
go_version=`$GO -V | sed -e 's/.*version \([[0-9]]*\).*/\1/'`
|
||||
if test "$go_version" -lt 6707; then
|
||||
AC_MSG_NOTICE([Installed Go too old; disabling Go])
|
||||
GO=
|
||||
fi
|
||||
if test -n "$GO" ; then
|
||||
GOGCC=false
|
||||
if $GO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then
|
||||
GOGCC=true
|
||||
else
|
||||
go_version=`$GO -V | sed -e 's/.*version \([[0-9]]*\).*/\1/'`
|
||||
if test "$go_version" -lt 6707; then
|
||||
AC_MSG_NOTICE([Installed Go too old; disabling Go])
|
||||
GO=
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
AC_SUBST(GOGCC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue