diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-12-10 17:09:21 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-12-10 17:09:21 +0100 |
commit | 796882bcc5314c0bb095fcad0a6ffa30a6122bae (patch) | |
tree | 76ea31b3abc650df818573c5eaac327298781267 | |
parent | e5a27f071b80b808134336360b8674e589a80f7e (diff) |
Check for -ffloat-store before using it in dgreftest.
-rw-r--r-- | configure.ac | 19 | ||||
-rw-r--r-- | test/dgreftest/Makefile.am | 2 |
2 files changed, 20 insertions, 1 deletions
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 ====================== diff --git a/test/dgreftest/Makefile.am b/test/dgreftest/Makefile.am index 06c167b..7e23839 100644 --- a/test/dgreftest/Makefile.am +++ b/test/dgreftest/Makefile.am @@ -13,7 +13,7 @@ dgreftest_LDFLAGS = dgreftest_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \ -I$(top_srcdir)/include -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \ - $(JACK_CFLAGS) $(SSEFLAGS) $(SMF_CFLAGS) -ffloat-store + $(JACK_CFLAGS) $(SSEFLAGS) $(SMF_CFLAGS) $(FLOAT_STORE) dgreftest_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER |