Fix go configuration and SWIG_GCC_VERSION

- in configure.ac: modify sed expression to only look at first line of
  gccgo --version, extract the last numeric token, and remove periods;
  this parses e.g. "gccgo (Debian 4.7.2-5) 4.7.2"
- in goruntime.swg: fix typo in __GNUC_PATCHLEVEL__ (SF Bug #1298)
This commit is contained in:
Karl Wette 2014-04-25 00:12:06 +02:00
commit 66555ad2a7
3 changed files with 11 additions and 3 deletions

View file

@ -116,7 +116,7 @@ extern void _cgo_panic(const char *);
file is the same as the version of gccgo. */
#define SWIG_GCC_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC__PATH_LEVEL__)
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#if SWIG_GCC_VERSION < 40700
#define SwigDoCgocall()