]>
Commit | Line | Data |
---|---|---|
cae5b340 AX |
1 | dnl # |
2 | dnl # Set the target arch for libspl atomic implementation and the icp | |
3 | dnl # | |
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/` | |
7 | ||
8 | case $TARGET_ARCH in | |
9 | i386|x86_64) | |
10 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
11 | ;; | |
12 | *) | |
13 | TARGET_ASM_DIR=asm-generic | |
14 | ;; | |
15 | esac | |
16 | ||
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]) | |
22 | ]) |