diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-24 01:57:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-24 01:57:01 +0300 |
commit | 61a330dfb4823e6b402c7fd311da9b0c6de9b28b (patch) | |
tree | d7ebd4fa04399cedbd4232dee8003559a4aade9b /configure.ac | |
parent | d2e38e0dc95108adef3c5944ba5b710ebeab6a20 (diff) | |
download | plugin-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.gz plugin-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.bz2 plugin-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.xz plugin-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.zip |
Disable old for broken gcc 4.9 versions.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2fb99a4..dc6a1c0 100644 --- a/configure.ac +++ b/configure.ac @@ -185,7 +185,20 @@ if test "$enable_lto" != "no" ; then } ])], [ - AC_MSG_RESULT([yes]) + if test -n "$CC"; then + case `($CC --version) 2>/dev/null` in + *gcc*4.9-*| \ + *gcc*4.9.0*| \ + *gcc*4.9.1*| \ + *gcc*4.9.2*) + AC_MSG_RESULT([no]) + CFLAGS="$OLD_CFLAGS" + LDFLAGS="$OLD_LDFLAGS" + ;; + *) + AC_MSG_RESULT([yes]) + esac + fi ], [ AC_MSG_RESULT([no]) |