From 7b969bbb2e3a0ec9a173a7ddf276b2a03e14452b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 19 Mar 2018 23:46:02 +0200 Subject: [PATCH] Add support for building for windows on aarch64 Just as on windows/x86_64, "long" still is 32 bit; tweak the arm/aarch64 ABI check to test sizeof(void*) instead of sizeof(long), and use long long for mp_limb_t for mingw targets. --- acinclude.m4 | 4 ++-- configure.ac | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 2ea5f5a..6eb7343 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -907,8 +907,8 @@ dnl a workaround for a HP compiler bug. AC_DEFUN([GMP_C_TEST_SIZEOF], [echo "configure: testlist $2" >&AC_FD_CC -[gmp_sizeof_type=`echo "$2" | sed 's/sizeof-\([a-z]*\).*/\1/'`] -[gmp_sizeof_want=`echo "$2" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`] +[gmp_sizeof_type=`echo "$2" | sed 's/sizeof-\([a-z\*]*\).*/\1/'`] +[gmp_sizeof_want=`echo "$2" | sed 's/sizeof-[a-z\*]*-\([0-9]*\).*/\1/'`] AC_MSG_CHECKING([compiler $1 has sizeof($gmp_sizeof_type)==$gmp_sizeof_want]) cat >conftest.c <