Check for immintrin.h before using it in SDL_cpuinfo.h

This commit is contained in:
Sam Lantinga
2017-12-11 12:00:12 -08:00
parent 1b16618b13
commit f1ec8a5f4c
6 changed files with 46 additions and 5 deletions

14
configure vendored
View File

@@ -17396,6 +17396,20 @@ $as_echo "$have_gcc_sse3" >&6; }
fi
fi
ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
if test "x$ac_cv_header_immintrin_h" = xyes; then :
have_immintrin_h_hdr=yes
else
have_immintrin_h_hdr=no
fi
if test x$have_immintrin_h_hdr = xyes; then
$as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
fi
# Check whether --enable-altivec was given.
if test "${enable_altivec+set}" = set; then :
enableval=$enable_altivec;