···11+diff --git a/m4/cpu-check.m4 b/m4/cpu-check.m4
22+index 3cf0a7f08..12bb926ac 100644
33+--- a/m4/cpu-check.m4
44++++ b/m4/cpu-check.m4
55+@@ -37,6 +37,18 @@ if test "$ac_cv_singcpuname" = ppc; then
66+ AC_DEFINE(SI_CPU_PPC,1,"PPC")
77+ AC_SUBST(SI_CPU_PPC)
88+ fi
99++if test "$ac_cv_singcpuname" = arm -o "$ac_cv_singcpuname" = armel; then
1010++ AC_DEFINE(SI_CPU_ARM,1,"ARM")
1111++ AC_SUBST(SI_CPU_ARM)
1212++fi
1313++if test "$ac_cv_singcpuname" = aarch64; then
1414++ AC_DEFINE(SI_CPU_AARCH64,1,"AARCH64")
1515++ AC_SUBST(SI_CPU_AARCH64)
1616++fi
1717++if test "$ac_cv_singcpuname" = s390; then
1818++ AC_DEFINE(SI_CPU_S390,1,"S390")
1919++ AC_SUBST(SI_CPU_S390)
2020++fi
2121+2222+ # UNAME and PATH
2323+ AC_MSG_CHECKING(uname for Singular)
2424+@@ -65,6 +77,14 @@ dnl testet on: ppc_Linux, 740/750 PowerMac G3, 512k L2 cache
2525+ [powerpc*|ppc*], [AC_DEFINE(HAVE_GENERIC_MULT,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)],
2626+ dnl the following settings seems to be better on arm processors
2727+ [arm*], [],
2828++dnl FIXME: need to run some tests
2929++ [aarch64*], [
3030++ AC_DEFINE(HAVE_MULT_MOD,1,multiplication is fast on the cpu: a*b is with mod otherwise using tables of logartihms)
3131++ AC_DEFINE(HAVE_GENERIC_ADD,1,use branch for addition in Z/p otherwise it uses a generic add)
3232++ AC_DEFINE(HAVE_DIV_MOD,1,division using extend euclidian algorithm otherwise using tables of logartihms)
3333++ ],
3434++dnl FIXME: need to run some tests
3535++ [s390*], [AC_DEFINE(HAVE_GENERIC_ADD,1,use branch for addition in Z/p otherwise it uses a generic add)],
3636+ []
3737+ )
3838+