From 98a51029f81c6014e40e46e114f24d99fe7d4799 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 11 Sep 2024 19:32:48 -0500 Subject: [PATCH] configure.ac: in --enable-all-asm handler, support only x86_64 and aarch64, and enable sp-asm only for them, to avoid "ASM not available for CPU" error from sp-asm handler. --- configure.ac | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index beca8a675..8a3f7a890 100644 --- a/configure.ac +++ b/configure.ac @@ -993,27 +993,34 @@ then AC_MSG_ERROR([--enable-all-asm is incompatible with --disable-armasm]) fi - if test "$ENABLED_SP" != "no" - then - ENABLED_SP_ASM=yes - if test "$ENABLED_SP" = "" - then - ENABLED_SP=yes - fi - fi - case "$host_cpu" in *x86_64*|*amd64*) if test "$enable_intelasm" = "" then enable_intelasm=yes fi + if test "$ENABLED_SP" != "no" + then + ENABLED_SP_ASM=yes + if test "$ENABLED_SP" = "" + then + ENABLED_SP=yes + fi + fi ;; - *aarch64*|*arm*|*cortex*) + *aarch64*) if test "$enable_armasm" = "" then enable_armasm=yes fi + if test "$ENABLED_SP" != "no" + then + ENABLED_SP_ASM=yes + if test "$ENABLED_SP" = "" + then + ENABLED_SP=yes + fi + fi ;; esac fi