[PATCH] Fix configure.ac error of intel-avx512

Tianjia Zhang tianjia.zhang at linux.alibaba.com
Tue Mar 29 10:26:00 CEST 2022


* configure.ac: Correctly set value for avx512support.
--

Signed-off-by: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index b41322e357ca..467151391a73 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1303,6 +1303,7 @@ if test "$mpi_cpu_arch" != "x86" ; then
    sse41support="n/a"
    avxsupport="n/a"
    avx2support="n/a"
+   avx512support="n/a"
    padlocksupport="n/a"
    drngsupport="n/a"
 fi
@@ -2404,6 +2405,11 @@ if test x"$avx2support" = xyes ; then
     avx2support="no (unsupported by compiler)"
   fi
 fi
+if test x"$avx512support" = xyes ; then
+  if test "$gcry_cv_gcc_inline_asm_avx512" != "yes" ; then
+    avx512support="no (unsupported by compiler)"
+  fi
+fi
 if test x"$neonsupport" = xyes ; then
   if test "$gcry_cv_gcc_inline_asm_neon" != "yes" ; then
     if test "$gcry_cv_gcc_inline_asm_aarch64_neon" != "yes" ; then
-- 
2.24.3 (Apple Git-128)




More information about the Gcrypt-devel mailing list