summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-24 01:57:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-24 01:57:01 +0300
commit61a330dfb4823e6b402c7fd311da9b0c6de9b28b (patch)
treed7ebd4fa04399cedbd4232dee8003559a4aade9b
parentd2e38e0dc95108adef3c5944ba5b710ebeab6a20 (diff)
downloadevol-hercules-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.gz
evol-hercules-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.bz2
evol-hercules-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.tar.xz
evol-hercules-61a330dfb4823e6b402c7fd311da9b0c6de9b28b.zip
Disable old for broken gcc 4.9 versions.
-rw-r--r--configure.ac15
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])