From 796882bcc5314c0bb095fcad0a6ffa30a6122bae Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 10 Dec 2016 17:09:21 +0100 Subject: Check for -ffloat-store before using it in dgreftest. --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7ee1ab5..38e3080 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,25 @@ AC_COMPILE_IFELSE( ) AC_LANG_POP([C++]) +dnl =========================== +dnl Check for -ffloat-store support +dnl =========================== +AC_LANG_PUSH([C++]) +TMP_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="-Wall -Werror -ffloat-store" +AC_MSG_CHECKING([whether CXX supports -ffloat-store]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + [AC_MSG_RESULT([yes]) + FLOAT_STORE="-ffloat-store" + ], + [AC_MSG_RESULT([no]) + FLOAT_STORE="" + ] +) +AC_SUBST(FLOAT_STORE) +CXXFLAGS="$TMP_CXXFLAGS" +AC_LANG_POP([C++]) + dnl ====================== dnl Init pkg-config dnl ====================== -- cgit v1.2.3