1dnl ######################################################################
2dnl Find the correct type for UFS mount(2) arguments structure
3AC_DEFUN([AMU_TYPE_UFS_ARGS],
4[
5AC_CACHE_CHECK(for structure type of ufs mount(2) arguments,
6ac_cv_type_ufs_args,
7[
8# set to a default value
9ac_cv_type_ufs_args=notfound
10
11# look for "struct ufs_args"
12if test "$ac_cv_type_ufs_args" = notfound
13then
14AC_TRY_COMPILE_ANYFS(
15[ struct ufs_args a;
16], ac_cv_type_ufs_args="struct ufs_args", ac_cv_type_ufs_args=notfound)
17fi
18
19# look for "struct efs_args" (irix)
20if test "$ac_cv_type_ufs_args" = notfound
21then
22AC_TRY_COMPILE_ANYFS(
23[ struct efs_args a;
24], ac_cv_type_ufs_args="struct efs_args", ac_cv_type_ufs_args=notfound)
25fi
26
27# look for "struct ufs_specific" (ultrix)
28if test "$ac_cv_type_ufs_args" = notfound
29then
30AC_TRY_COMPILE_ANYFS(
31[ struct ufs_specific a;
32], ac_cv_type_ufs_args="struct ufs_specific", ac_cv_type_ufs_args=notfound)
33fi
34
35])
36if test "$ac_cv_type_ufs_args" != notfound
37then
38  AC_DEFINE_UNQUOTED(ufs_args_t, $ac_cv_type_ufs_args)
39fi
40])
41dnl ======================================================================
42