diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-04-14 22:27:59 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-04-14 22:27:59 -0700 |
commit | a11ec63713ea3903c482dc907a108be404191a02 (patch) | |
tree | e9a57c38aa620e21ea59e5cb258550e469e4c06a /sysdeps/i386/configure.in | |
parent | df87f54923da6cb94e1a7d65c3f2349c95d49700 (diff) | |
download | glibc-a11ec63713ea3903c482dc907a108be404191a02.tar.gz glibc-a11ec63713ea3903c482dc907a108be404191a02.tar.xz glibc-a11ec63713ea3903c482dc907a108be404191a02.zip |
Add x86-32 FMA support
Diffstat (limited to 'sysdeps/i386/configure.in')
-rw-r--r-- | sysdeps/i386/configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in index 9fc7fa59fe..d8dd648f80 100644 --- a/sysdeps/i386/configure.in +++ b/sysdeps/i386/configure.in @@ -55,3 +55,14 @@ if AC_TRY_COMMAND([${CC-cc} -Wa,-mtune=i686 -xc /dev/null -S -o /dev/null]); the else libc_cv_as_i686=no fi]) + +dnl Check if -mavx works. +AC_CACHE_CHECK(for AVX support, libc_cv_cc_avx, [dnl +if AC_TRY_COMMAND([${CC-cc} -mavx -xc /dev/null -S -o /dev/null]); then + libc_cv_cc_avx=yes +else + libc_cv_cc_avx=no +fi]) +if test $libc_cv_cc_avx = yes; then + AC_DEFINE(HAVE_AVX_SUPPORT) +fi |