summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cae88dbee..341127c1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -448,6 +448,13 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[asm(".align 3");]])],
[AC_DEFINE([ASMALIGN_1SLN], [1],
[define if '.align n' means alignment to (1 << n) - byte boundaries])])
+dnl avx instruction set support
+AC_MSG_CHECKING([for AVX assembler])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[asm("vmovaps %ymm1, %ymm0");]])],
+ [AC_DEFINE([HAVE_AVX], [1],
+ [define if compiler supports avx inline assembler])
+ AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
+
CC_ATTRIBUTE_ALIGNED
CC_ATTRIBUTE_VISIBILITY([protected],