diff --git a/configure.ac b/configure.ac index 3b1c9393..61ffd4e5 100644 --- a/configure.ac +++ b/configure.ac @@ -49,11 +49,12 @@ AX_CHECK_COMPILE_FLAG([-maltivec],[flag_altivec="true"]) AX_CHECK_COMPILE_FLAG([-mavx2], [flag_avx2="true"]) AX_CHECK_COMPILE_FLAG([-msse4.1], [flag_sse4_1="true"]) AX_CHECK_COMPILE_FLAG([-msse2], [flag_sse2="true"]) -AX_CHECK_COMPILE_FLAG([-mbmi], [flag_bmi="true"]) -AX_CHECK_COMPILE_FLAG([-mabm], [flag_abm="true"]) +AX_CHECK_COMPILE_FLAG([-mbmi], [flag_bmi="true"]) +AX_CHECK_COMPILE_FLAG([-mabm], [flag_abm="true"]) +AX_CHECK_COMPILE_FLAG([-mbmi2], [flag_bmi2="true"]) AM_CONDITIONAL([HAVE_ALTIVEC], [test x"$flag_altivec" = x"true"]) -AM_CONDITIONAL([HAVE_AVX2], [test x"$flag_avx2" = x"true" -a x"$flag_bmi" = x"true" -a x"$flag_abm" = x"true"]) +AM_CONDITIONAL([HAVE_AVX2], [test x"$flag_avx2" = x"true" -a x"$flag_bmi" = x"true" -a x"$flag_abm" = x"true" -a x"$flag_bmi2" = x"true"]) AM_CONDITIONAL([HAVE_SSE4_1], [test x"$flag_sse4_1" = x"true"]) AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"]) diff --git a/src/Makefile.am b/src/Makefile.am index 3f82bcb8..c932c407 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -213,7 +213,7 @@ endif #HAVE_PPC if HAVE_X86 if HAVE_AVX2 -libavx2_la_CFLAGS = -mavx2 -mbmi -mabm +libavx2_la_CFLAGS = -mavx2 -mbmi -mabm -mbmi2 endif if HAVE_SSE4_1 libsse41_la_CFLAGS = -msse4.1