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:
David Nadlinger 2010-12-08 16:57:32 +00:00
commit 56dfa781ff

View file

@ -2006,6 +2006,7 @@ else
GO="$GOBIN" GO="$GOBIN"
fi fi
if test -n "$GO" ; then
GOGCC=false GOGCC=false
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
@ -2016,7 +2017,7 @@ else
GO= GO=
fi fi
fi fi
fi
fi fi
AC_SUBST(GOGCC) AC_SUBST(GOGCC)