From 2e080e2035bc72b6ba08d58084b037bd6d322ebc Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Wed, 9 Nov 2022 21:25:36 +0530 Subject: [PATCH] build: disable gmp if targeting darwin on aarch64 when on 'auto' --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e8b07347d..90c6fc275 100644 --- a/configure.ac +++ b/configure.ac @@ -113,7 +113,21 @@ AC_ARG_WITH([backend], if test x"$want_backend" = x"auto"; then GMP_CHECK if test x"$has_gmp" = x"yes"; then - want_backend=gmp + case $host in + *darwin*) + case $host_cpu in + aarch*) + want_backend=easy + ;; + *) + want_backend=gmp + ;; + esac + ;; + *) + want_backend=gmp + ;; + esac else want_backend=easy fi