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.

This commit is contained in:
Daniel Pouzzner
2024-09-11 19:32:48 -05:00
parent 8d0047fedf
commit 98a51029f8

View File

@ -993,27 +993,34 @@ then
AC_MSG_ERROR([--enable-all-asm is incompatible with --disable-armasm]) AC_MSG_ERROR([--enable-all-asm is incompatible with --disable-armasm])
fi 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 case "$host_cpu" in
*x86_64*|*amd64*) *x86_64*|*amd64*)
if test "$enable_intelasm" = "" if test "$enable_intelasm" = ""
then then
enable_intelasm=yes enable_intelasm=yes
fi 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" = "" if test "$enable_armasm" = ""
then then
enable_armasm=yes enable_armasm=yes
fi fi
if test "$ENABLED_SP" != "no"
then
ENABLED_SP_ASM=yes
if test "$ENABLED_SP" = ""
then
ENABLED_SP=yes
fi
fi
;; ;;
esac esac
fi fi