Merge commit 'refs/top-bases/linux-events' into linux-events
This commit is contained in:
commit
55852e36b0
|
@ -2,20 +2,18 @@ dnl #
|
||||||
dnl # Set the target arch for libspl atomic implementation
|
dnl # Set the target arch for libspl atomic implementation
|
||||||
dnl #
|
dnl #
|
||||||
AC_DEFUN([ZFS_AC_CONFIG_USER_ARCH], [
|
AC_DEFUN([ZFS_AC_CONFIG_USER_ARCH], [
|
||||||
AC_MSG_CHECKING(for target arch)
|
AC_MSG_CHECKING(for target asm dir)
|
||||||
TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
|
TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
|
||||||
TARGET_ARCH_DIR=asm-$TARGET_ARCH
|
|
||||||
AC_MSG_RESULT([$TARGET_ARCH])
|
|
||||||
|
|
||||||
case $TARGET_ARCH in
|
case $TARGET_ARCH in
|
||||||
i386|x86_64|powerpc64)
|
i386|x86_64)
|
||||||
AC_SUBST([TARGET_ARCH])
|
TARGET_ASM_DIR=asm-${TARGET_ARCH}
|
||||||
AC_SUBST([TARGET_ARCH_DIR])
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_ERROR([
|
TARGET_ASM_DIR=asm-generic
|
||||||
*** Unsupported architecture $TARGET_ARCH
|
|
||||||
*** Available architectures: x86, x86_64, powerpc64])
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
AC_SUBST([TARGET_ASM_DIR])
|
||||||
|
AC_MSG_RESULT([$TARGET_ASM_DIR])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue