Commit 82c07fb1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix SSE compilation when you Crosscompile, and fix O3 flags.

parent 3adb71a2
......@@ -945,6 +945,17 @@ CFLAGS="${CFLAGS_save}"
RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast cast-align write-strings missing-prototypes volatile-register-var])
RDC_PROG_CC_FLAGS_IFELSE([-pipe])
dnl
dnl Debugging mode
dnl
AC_ARG_ENABLE(debug,
[ --enable-debug debug mode (default disabled)])
test "${enable_debug}" != "yes" && enable_debug="no"
AH_TEMPLATE(NDEBUG,
[Define to 1 if debug code should NOT be compiled])
AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
dnl Check for various optimization flags
AC_CACHE_CHECK([if \$CC accepts -Os],
[ac_cv_c_os],
......@@ -1335,7 +1346,7 @@ AC_ARG_ENABLE(sse,
[ --disable-sse disable SSE (1 and 2) optimizations (default auto)]
,, [
case "${host_cpu}" in
i686|x86_64)
i*86|x86_64)
enable_sse=yes
;;
*)
......@@ -1569,16 +1580,6 @@ if test "${enable_optimizations}" != "no"; then
fi
fi
dnl
dnl Debugging mode
dnl
AC_ARG_ENABLE(debug,
[ --enable-debug debug mode (default disabled)])
test "${enable_debug}" != "yes" && enable_debug="no"
AH_TEMPLATE(NDEBUG,
[Define to 1 if debug code should NOT be compiled])
AS_IF([test "x${enable_debug}" = "xno"], [AC_DEFINE(NDEBUG)])
dnl
dnl Test coverage
dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment