xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/type_efs_args.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1dnl ######################################################################
2dnl Find the correct type for EFS mount(2) arguments structure
3AC_DEFUN([AMU_TYPE_EFS_ARGS],
4[
5AC_CACHE_CHECK(for structure type of efs mount(2) arguments,
6ac_cv_type_efs_args,
7[
8# set to a default value
9ac_cv_type_efs_args=notfound
10
11# look for "struct efs_args"
12if test "$ac_cv_type_efs_args" = notfound
13then
14AC_TRY_COMPILE_ANYFS(
15[ struct efs_args a;
16], ac_cv_type_efs_args="struct efs_args", ac_cv_type_efs_args=notfound)
17fi
18
19])
20if test "$ac_cv_type_efs_args" != notfound
21then
22  AC_DEFINE_UNQUOTED(efs_args_t, $ac_cv_type_efs_args)
23fi
24])
25dnl ======================================================================
26