diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6787f827..2df67970 100644 --- a/configure.ac +++ b/configure.ac @@ -560,6 +560,7 @@ echo "Initializing gettext:" AM_GNU_GETTEXT_VERSION([0.18]) AM_GNU_GETTEXT([external]) + ############################################################################### # Checks for header files. ############################################################################### @@ -573,6 +574,9 @@ AC_CHECK_HEADERS([fcntl.h limits.h sys/time.h], [], [AC_MSG_ERROR([Required header file(s) are missing.])]) +# This allows the use of the intrinsic functions if they are available. +AC_CHECK_HEADERS([immintrin.h]) + ############################################################################### # Checks for typedefs, structures, and compiler characteristics. @@ -681,6 +685,15 @@ AM_CONDITIONAL([COND_INTERNAL_SHA256], && test "x$ac_cv_func_SHA256Init" != xyes \ && test "x$ac_cv_func_CC_SHA256_Init" != xyes]) +# Check for SSE2 intrinsics. +AC_CHECK_DECL([_mm_movemask_epi8], + [AC_DEFINE([HAVE__MM_MOVEMASK_EPI8], [1], + [Define to 1 if _mm_movemask_epi8 is available.])], + [], +[#ifdef HAVE_IMMINTRIN_H +#include <immintrin.h> +#endif]) + ############################################################################### # If using GCC, set some additional AM_CFLAGS: |