-# Find arch type
-AS_CASE([$host_cpu],
- [k1om], [ARCHTYPE="x86"],
- [i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],
- [i486], [ARCHTYPE="x86"],
- [i586], [ARCHTYPE="x86"],
- [i686], [ARCHTYPE="x86"],
- [amd64], [ARCHTYPE="x86"],
- [x86_64], [ARCHTYPE="x86"],
- [powerpc], [ARCHTYPE="ppc"],
- [ppc64], [ARCHTYPE="ppc"],
- [powerpc64], [ARCHTYPE="ppc"],
- [powerpc64le], [ARCHTYPE="ppc"],
- [ppc], [ARCHTYPE="ppc"],
- [s390], [ARCHTYPE="s390"],
- [s390x], [ARCHTYPE="s390"],
- [sparc], [ARCHTYPE="sparc64"],
- [sparc64], [ARCHTYPE="sparc64"],
- [alpha*], [ARCHTYPE="alpha"],
- [ia64], [ARCHTYPE="ia64"],
- [arm*], [ARCHTYPE="arm"],
- [aarch64*], [ARCHTYPE="aarch64"],
- [mips*], [ARCHTYPE="mips"],
- [nios2*], [ARCHTYPE="nios2"],
- [tile*], [ARCHTYPE="tile"],
- [hppa*], [ARCHTYPE="hppa"],
- [m68k], [ARCHTYPE="m68k"],
- [riscv*], [ARCHTYPE="riscv"],
- [ARCHTYPE="unknown"]
-)