mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 18:31:00 +03:00
006e9a4088
Move platform specific Linux headers under include/os/linux/. Update the build system accordingly to detect the platform. This lays some of the initial groundwork to supporting building for other platforms. As part of this change it was necessary to create both a user and kernel space sys/simd.h header which can be included in either context. No functional change, the source has been refactored and the relevant #include's updated. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Signed-off-by: Matthew Macy <mmacy@FreeBSD.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #9198
27 lines
639 B
Plaintext
27 lines
639 B
Plaintext
dnl #
|
|
dnl # Set the target system
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SYSTEM], [
|
|
AC_MSG_CHECKING([for system type ($host_os)])
|
|
case $host_os in
|
|
*linux*)
|
|
AC_DEFINE([SYSTEM_LINUX], [1],
|
|
[True if ZFS is to be compiled for a Linux system])
|
|
ac_system="Linux"
|
|
;;
|
|
*freebsd*)
|
|
AC_DEFINE([SYSTEM_FREEBSD], [1],
|
|
[True if ZFS is to be compiled for a FreeBSD system])
|
|
ac_system="FreeBSD"
|
|
;;
|
|
*)
|
|
ac_system="unknown"
|
|
;;
|
|
esac
|
|
AC_MSG_RESULT([$ac_system])
|
|
AC_SUBST([ac_system])
|
|
|
|
AM_CONDITIONAL([BUILD_LINUX], [test "x$ac_system" = "xLinux"])
|
|
AM_CONDITIONAL([BUILD_FREEBSD], [test "x$ac_system" = "xFreeBSD"])
|
|
])
|