LTO is no longer needed.
diff --git a/configure.ac b/configure.ac
index 0ea6d53..a152c23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,10 +34,6 @@ AC_ARG_ENABLE([arch-native],
AS_HELP_STRING([--disable-arch-native], [Disable CPU-specific optimizations]))
AM_CONDITIONAL([ENABLE_ARCH_NATIVE], [test x"$enable_arch_native" != xno])
-AC_ARG_ENABLE([link-time-optimization],
- AS_HELP_STRING([--disable-link-time-optimization], [Disable link time optimization]))
-AM_CONDITIONAL([ENABLE_LINK_TIME_OPTIMIZATION], [test x"$enable_link_time_optimization" != xno])
-
AC_ARG_ENABLE([static-exe],
AS_HELP_STRING([--enable-static-exe], [Enable static builds of the executable.]))
AM_CONDITIONAL([ENABLE_STATIC], [test x"$enable_static_exe" != x])
@@ -57,11 +53,6 @@ AM_COND_IF([PASSED_CFLAGS], [
[AC_MSG_ERROR([Compiler does not support native optimizations, use --disable-arch-native])])
])
- AM_COND_IF([ENABLE_LINK_TIME_OPTIMIZATION], [
- AX_CHECK_COMPILE_FLAG([-flto], [CFLAGS="$CFLAGS -flto"],
- [AC_MSG_ERROR([Compiler does not support link time optimization, use --disable-link-time-optimization])])
- ])
-
AM_COND_IF([ENABLE_STATIC], [
AX_CHECK_COMPILE_FLAG([-static], [LIBS="$LIBS -all-static"],
[AC_MSG_ERROR([Compiler does not support static linking.])])
