mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
bd0955cd8e
This fixes (harmless) error spew from configuring on, e.g., armv6l Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13193 Closes #13225
42 lines
697 B
Plaintext
42 lines
697 B
Plaintext
dnl #
|
|
dnl # Set the target cpu architecture. This allows the
|
|
dnl # following syntax to be used in a Makefile.am.
|
|
dnl #
|
|
dnl # ifeq ($(TARGET_CPU),x86_64)
|
|
dnl # ...
|
|
dnl # endif
|
|
dnl #
|
|
dnl # if TARGET_CPU_POWERPC
|
|
dnl # ...
|
|
dnl # else
|
|
dnl # ...
|
|
dnl # endif
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [
|
|
case $target_cpu in
|
|
i?86)
|
|
TARGET_CPU=i386
|
|
;;
|
|
amd64|x86_64)
|
|
TARGET_CPU=x86_64
|
|
;;
|
|
powerpc*)
|
|
TARGET_CPU=powerpc
|
|
;;
|
|
aarch64*)
|
|
TARGET_CPU=aarch64
|
|
;;
|
|
sparc64)
|
|
TARGET_CPU=sparc64
|
|
;;
|
|
*)
|
|
TARGET_CPU=$target_cpu
|
|
;;
|
|
esac
|
|
|
|
AC_SUBST(TARGET_CPU)
|
|
|
|
AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64)
|
|
AM_CONDITIONAL([TARGET_CPU_POWERPC], test $TARGET_CPU = powerpc)
|
|
])
|