]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-show-options.m4
Linux 3.3 compat, sops->show_options()
[mirror_zfs.git] / config / kernel-show-options.m4
1 dnl #
2 dnl # Linux 3.3 API
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [
5 AC_MSG_CHECKING([whether sops->show_options() wants dentry])
6
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/fs.h>
9 ],[
10 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
11 struct super_operations sops __attribute__ ((unused));
12
13 sops.show_options = show_options;
14 ],[
15 AC_MSG_RESULT([yes])
16 AC_DEFINE(HAVE_SHOW_OPTIONS_WITH_DENTRY, 1,
17 [sops->show_options() with dentry])
18 ],[
19 AC_MSG_RESULT([no])
20 ])
21 ])