summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-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])