Add -p switch to "zpool get"
[zfs.git] / config / kernel-get-gendisk.m4
1 dnl #
2 dnl # 2.6.34 API change
3 dnl # Verify the get_gendisk() symbol is available.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_GET_GENDISK],
6         [AC_MSG_CHECKING([whether get_gendisk() is available])
7         ZFS_LINUX_TRY_COMPILE_SYMBOL([
8                 #include <linux/genhd.h>
9         ], [
10                 get_gendisk(0, NULL);
11         ], [get_gendisk], [block/genhd.c], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_GET_GENDISK, 1, [get_gendisk() is available])
14         ], [
15                 AC_MSG_RESULT(no)
16         ])
17 ])