Move udev rules from /etc/udev to /lib/udev
[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         ZFS_LINUX_TRY_COMPILE([
7                 #include <linux/blkdev.h>
8         ],[
9                 struct bio_vec *bv;
10                 struct req_iterator iter;
11                 struct request *req = NULL;
12                 rq_for_each_segment(bv, req, iter) { }
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_RQ_FOR_EACH_SEGMENT, 1,
16                           [rq_for_each_segment() is available])
17         ],[
18                 AC_MSG_RESULT(no)
19         ])
20 ])