From ab5adf0bb361aad4d9194284a7a3b51366f9d8c9 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Fri, 20 Feb 2004 17:21:08 +0000 Subject: [PATCH] Add <*mmintrin.h> detection for generic SSE2/SSE/MMX optimizations --- SheepShaver/src/Unix/configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SheepShaver/src/Unix/configure.in b/SheepShaver/src/Unix/configure.in index 852719c7..13184e5b 100644 --- a/SheepShaver/src/Unix/configure.in +++ b/SheepShaver/src/Unix/configure.in @@ -183,6 +183,9 @@ AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(mach/vm_map.h mach/mach_init.h sys/mman.h) AC_CHECK_HEADERS(sys/time.h sys/times.h) AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h) +AC_CHECK_HEADER(mmintrin.h, [have_mmintrin_h=yes]) +AC_CHECK_HEADER(xmmintrin.h, [have_xmmintrin_h=yes]) +AC_CHECK_HEADER(emmintrin.h, [have_emmintrin_h=yes]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN @@ -725,6 +728,15 @@ if [[ "x$EMULATED_PPC" = "xyes" ]]; then else DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0" fi + if [[ "x$have_mmintrin_h" = "xyes" ]]; then + DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -mmmx" + fi + if [[ "x$have_xmmintrin_h" = "xyes" ]]; then + DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse" + fi + if [[ "x$have_emmintrin_h" = "xyes" ]]; then + DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse2" + fi ;; esac DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-limit=10000"