Add -p switch to "zpool get"
[zfs.git] / config / kernel-rq-for-each_segment.m4
1 dnl #
2 dnl # 2.6.x API change
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_RQ_FOR_EACH_SEGMENT], [
5         AC_MSG_CHECKING([whether rq_for_each_segment() is available])
6         tmp_flags="$EXTRA_KCFLAGS"
7         EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
8         ZFS_LINUX_TRY_COMPILE([
9                 #include <linux/blkdev.h>
10         ],[
11                 struct bio_vec *bv;
12                 struct req_iterator iter;
13                 struct request *req = NULL;
14                 rq_for_each_segment(bv, req, iter) { }
15         ],[
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_RQ_FOR_EACH_SEGMENT, 1,
18                           [rq_for_each_segment() is available])
19         ],[
20                 AC_MSG_RESULT(no)
21         ])
22         EXTRA_KCFLAGS="$tmp_flags"
23 ])