CI: Move perl script to dist_noinst_DATA
[zfs.git] / config / kernel-in-compat-syscall.m4
blobbaaac8c4fda2652e0ce80058d923b694b51b9dc0
1 dnl #
2 dnl # 4.5 API change
3 dnl # Added in_compat_syscall() which can be overridden on a per-
4 dnl # architecture basis.  Prior to this is_compat_task() was the
5 dnl # provided interface.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL], [
8         ZFS_LINUX_TEST_SRC([in_compat_syscall], [
9                 #include <linux/compat.h>
10         ],[
11                 in_compat_syscall();
12         ])
15 AC_DEFUN([ZFS_AC_KERNEL_IN_COMPAT_SYSCALL], [
16         AC_MSG_CHECKING([whether in_compat_syscall() is available])
17         ZFS_LINUX_TEST_RESULT([in_compat_syscall], [
18                 AC_MSG_RESULT(yes)
19                 AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
20                     [in_compat_syscall() is available])
21         ],[
22                 AC_MSG_RESULT(no)
23         ])