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