1dnl ######################################################################
2dnl Find the correct type for RFS mount(2) arguments structure
3AC_DEFUN([AMU_TYPE_RFS_ARGS],
4[
5AC_CACHE_CHECK(for structure type of rfs mount(2) arguments,
6ac_cv_type_rfs_args,
7[
8# set to a default value
9ac_cv_type_rfs_args=notfound
10# look for "struct rfs_args"
11if test "$ac_cv_type_rfs_args" = notfound
12then
13AC_TRY_COMPILE_ANYFS(
14[ struct rfs_args a;
15], ac_cv_type_rfs_args="struct rfs_args", ac_cv_type_rfs_args=notfound)
16fi
17])
18if test "$ac_cv_type_rfs_args" != notfound
19then
20  AC_DEFINE_UNQUOTED(rfs_args_t, $ac_cv_type_rfs_args)
21fi
22])
23dnl ======================================================================
24