CI: Move perl script to dist_noinst_DATA
[zfs.git] / config / kernel-register_sysctl_table.m4
bloba5e934f56d29282928780bd88e34853973c61db6
1 dnl #
2 dnl # Linux 6.5 removes register_sysctl_table
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_REGISTER_SYSCTL_TABLE], [
5         ZFS_LINUX_TEST_SRC([has_register_sysctl_table], [
6                 #include <linux/sysctl.h>
8                 static struct ctl_table dummy_table[] = {
9                         {}
10                 };
12     ],[
13                 struct ctl_table_header *h
14                         __attribute((unused)) = register_sysctl_table(dummy_table);
15     ])
18 AC_DEFUN([ZFS_AC_KERNEL_REGISTER_SYSCTL_TABLE], [
19         AC_MSG_CHECKING([whether register_sysctl_table exists])
20         ZFS_LINUX_TEST_RESULT([has_register_sysctl_table], [
21                 AC_MSG_RESULT([yes])
22                 AC_DEFINE(HAVE_REGISTER_SYSCTL_TABLE, 1,
23                         [register_sysctl_table exists])
24         ],[
25                 AC_MSG_RESULT([no])
26         ])