configure.in: Check for sse3 too when setting -mfpmath=387.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 24 Jan 2017 12:20:12 -0500
changeset 10847425040bd82be
parent 10846 32efb3bc4db5
child 10848 7764aba2f211
configure.in: Check for sse3 too when setting -mfpmath=387.
configure
configure.in
     1.1 --- a/configure	Tue Jan 24 10:09:29 2017 -0500
     1.2 +++ b/configure	Tue Jan 24 12:20:12 2017 -0500
     1.3 @@ -1524,7 +1524,7 @@
     1.4    --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
     1.5    --enable-assembly       Enable assembly routines [[default=yes]]
     1.6    --enable-ssemath        Allow GCC to use SSE floating point math
     1.7 -                          [[default=no]]
     1.8 +                          [[default=maybe]]
     1.9    --enable-mmx            use MMX assembly routines [[default=yes]]
    1.10    --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
    1.11    --enable-sse            use SSE assembly routines [[default=yes]]
    1.12 @@ -17083,7 +17083,7 @@
    1.13  fi
    1.14  
    1.15      if test x$enable_ssemath = xno; then
    1.16 -        if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
    1.17 +        if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
    1.18              EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
    1.19          fi
    1.20      fi
     2.1 --- a/configure.in	Tue Jan 24 10:09:29 2017 -0500
     2.2 +++ b/configure.in	Tue Jan 24 12:20:12 2017 -0500
     2.3 @@ -479,10 +479,10 @@
     2.4              ;;
     2.5      esac
     2.6      AC_ARG_ENABLE(ssemath,
     2.7 -AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]),
     2.8 +AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=maybe]]]),
     2.9                    , enable_ssemath=$default_ssemath)
    2.10      if test x$enable_ssemath = xno; then
    2.11 -        if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
    2.12 +        if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
    2.13              EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
    2.14          fi
    2.15      fi