From a5d9005ac70eb1893e1a7bfcdbaaf6720784c54d Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 18 Mar 2013 15:32:04 -0700 Subject: [PATCH] change autconf system to default to fastmath now --- configure.ac | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 1af141a39..63a1cc0b4 100644 --- a/configure.ac +++ b/configure.ac @@ -1037,15 +1037,21 @@ fi # fastmath AC_ARG_ENABLE([fastmath], - [ --enable-fastmath Enable fast math for BigInts (default: disabled)], + [ --enable-fastmath Enable fast math for BigInts (default: enabled)], [ ENABLED_FASTMATH=$enableval ], - [ ENABLED_FASTMATH=no ] + [ ENABLED_FASTMATH=yes ] ) if test "x$ENABLED_FASTMATH" = "xyes" then - AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH" - ENABLED_SLOWMATH="no" + # turn off fastmth if leanpsk on or asn off + if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no" + then + ENABLED_FASTMATH=no + else + AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH" + ENABLED_SLOWMATH="no" + fi fi