*** empty log message ***
[arla.git] / cf / bsd-func-vfs-getnewfsid.m4
blob4f32cdcca04c76a68d5ae50b80fe1a3b0737d05f
1 dnl
2 dnl $Id$
3 dnl
5 AC_DEFUN([AC_BSD_FUNC_VFS_GETNEWFSID], [
6 AC_CHECK_KERNEL_FUNCS(vfs_getnewfsid)
7 if test "$ac_cv_kernel_func_vfs_getnewfsid" = "yes"; then
8 AC_CACHE_CHECK(if vfs_getnewfsid takes two arguments,
9 ac_cv_func_vfs_getnewfsid_two_args,
10 AC_TRY_COMPILE_KERNEL([
11 #include <sys/types.h>
12 #include <sys/param.h>
13 #ifdef HAVE_SYS_MODULE_H
14 #include <sys/module.h>
15 #endif
16 #include <sys/mount.h>
17 #include <sys/vnode.h>
19 [vfs_getnewfsid(NULL, 0);],
20 ac_cv_func_vfs_getnewfsid_two_args=yes,
21 ac_cv_func_vfs_getnewfsid_two_args=no))
22 if test "$ac_cv_func_vfs_getnewfsid_two_args" = yes; then
23         AC_DEFINE(HAVE_TWO_ARGUMENT_VFS_GETNEWFSID, 1,
24         [define if vfs_getnewfsid takes two arguments])