]>
Commit | Line | Data |
---|---|---|
47621f3d BB |
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> | |
47621f3d | 9 | |
ed3fc800 RY |
10 | int show_options (struct seq_file * x, struct dentry * y) { return 0; }; |
11 | static struct super_operations sops __attribute__ ((unused)) = { | |
12 | .show_options = show_options, | |
13 | }; | |
14 | ],[ | |
47621f3d BB |
15 | ],[ |
16 | AC_MSG_RESULT([yes]) | |
17 | AC_DEFINE(HAVE_SHOW_OPTIONS_WITH_DENTRY, 1, | |
18 | [sops->show_options() with dentry]) | |
19 | ],[ | |
20 | AC_MSG_RESULT([no]) | |
21 | ]) | |
22 | ]) |