only have fastmath on by default on x86_64

This commit is contained in:
toddouska 2013-07-01 12:10:59 -07:00
parent 593e466a44
commit b3d99f2d32

View File

@ -1121,11 +1121,19 @@ then
fi
# set fastmath default
FASTMATH_DEFAULT=no
if test "$target_cpu" = "x86_64"
then
FASTMATH_DEFAULT=yes
fi
# fastmath
AC_ARG_ENABLE([fastmath],
[ --enable-fastmath Enable fast math for BigInts (default: enabled)],
[ --enable-fastmath Enable fast math ops (default: enabled on x86_64)],
[ ENABLED_FASTMATH=$enableval ],
[ ENABLED_FASTMATH=yes ]
[ ENABLED_FASTMATH=$FASTMATH_DEFAULT]
)
if test "x$ENABLED_FASTMATH" = "xyes"