2 dnl # Set the target arch for libspl atomic implementation and the icp
4 AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [
5 AC_MSG_CHECKING(for target asm dir)
6 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
10 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13 TARGET_ASM_DIR=asm-generic
17 AC_SUBST([TARGET_ASM_DIR])
18 AM_CONDITIONAL([TARGET_ASM_X86_64], test $TARGET_ASM_DIR = asm-x86_64)
19 AM_CONDITIONAL([TARGET_ASM_I386], test $TARGET_ASM_DIR = asm-i386)
20 AM_CONDITIONAL([TARGET_ASM_GENERIC], test $TARGET_ASM_DIR = asm-generic)
21 AC_MSG_RESULT([$TARGET_ASM_DIR])