aboutsummaryrefslogtreecommitdiff
path: root/m4/macros/type_udf_args.m4
blob: 9c9886718e2c4e809df008da505ac657e3580388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl ######################################################################
dnl Find the correct type for UDF mount(2) arguments structure
AC_DEFUN([AMU_TYPE_UDF_ARGS],
[
AC_CACHE_CHECK(for structure type of udf mount(2) arguments,
ac_cv_type_udf_args,
[
# set to a default value
ac_cv_type_udf_args=notfound

# look for "struct udf_args"
if test "$ac_cv_type_udf_args" = notfound
then
AC_TRY_COMPILE_ANYFS(
[ struct udf_args a;
], ac_cv_type_udf_args="struct udf_args", ac_cv_type_udf_args=notfound)
fi

])
if test "$ac_cv_type_udf_args" != notfound
then
  AC_DEFINE_UNQUOTED(udf_args_t, $ac_cv_type_udf_args)
fi
])
dnl ======================================================================