2009-06-08 23:07:43 +00:00
|
|
|
dnl #
|
|
|
|
dnl # Set the target arch for libspl atomic implementation
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_ARCH], [
|
2009-07-16 16:59:44 +00:00
|
|
|
AC_MSG_CHECKING(for target asm dir)
|
2009-06-08 23:07:43 +00:00
|
|
|
TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
|
|
|
|
|
|
|
|
case $TARGET_ARCH in
|
2009-07-16 16:59:44 +00:00
|
|
|
i386|x86_64)
|
|
|
|
TARGET_ASM_DIR=asm-${TARGET_ARCH}
|
2009-06-08 23:07:43 +00:00
|
|
|
;;
|
|
|
|
*)
|
2009-07-16 16:59:44 +00:00
|
|
|
TARGET_ASM_DIR=asm-generic
|
2009-06-08 23:07:43 +00:00
|
|
|
;;
|
|
|
|
esac
|
2009-07-16 16:59:44 +00:00
|
|
|
|
|
|
|
AC_SUBST([TARGET_ASM_DIR])
|
|
|
|
AC_MSG_RESULT([$TARGET_ASM_DIR])
|
2009-06-08 23:07:43 +00:00
|
|
|
])
|