diff options
Diffstat (limited to 'sysdeps/i386/configure.ac')
-rw-r--r-- | sysdeps/i386/configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac index dfe0b47..35c4522 100644 --- a/sysdeps/i386/configure.ac +++ b/sysdeps/i386/configure.ac @@ -88,6 +88,15 @@ LIBC_TRY_CC_OPTION([-mno-vzeroupper], ]) LIBC_CONFIG_VAR([config-cflags-novzeroupper], [$libc_cv_cc_novzeroupper]) +dnl Check if -mavx2 works. +AC_CACHE_CHECK(for AVX2 support, libc_cv_cc_avx2, [dnl +LIBC_TRY_CC_OPTION([-mavx2], [libc_cv_cc_avx2=yes], [libc_cv_cc_avx2=no]) +]) +if test $libc_cv_cc_avx2 = yes; then + AC_DEFINE(HAVE_AVX2_SUPPORT) +fi +LIBC_CONFIG_VAR([config-cflags-avx2], [$libc_cv_cc_avx2]) + AC_DEFINE(USE_REGPARMS) dnl It is always possible to access static and hidden symbols in an |