diff options
Diffstat (limited to 'contrib/amd/m4/macros/type_lofs_args.m4')
-rw-r--r-- | contrib/amd/m4/macros/type_lofs_args.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/amd/m4/macros/type_lofs_args.m4 b/contrib/amd/m4/macros/type_lofs_args.m4 new file mode 100644 index 0000000..e04c551 --- /dev/null +++ b/contrib/amd/m4/macros/type_lofs_args.m4 @@ -0,0 +1,30 @@ +dnl ###################################################################### +dnl Find the correct type for LOFS mount(2) arguments structure +AC_DEFUN(AMU_TYPE_LOFS_ARGS, +[ +AC_CACHE_CHECK(for structure type of lofs mount(2) arguments, +ac_cv_type_lofs_args, +[ +# set to a default value +ac_cv_type_lofs_args=notfound +# look for "struct lofs_args" +if test "$ac_cv_type_lofs_args" = notfound +then +AC_TRY_COMPILE_ANYFS( +[ struct lofs_args a; +], ac_cv_type_lofs_args="struct lofs_args", ac_cv_type_lofs_args=notfound) +fi +# look for "struct lo_args" +if test "$ac_cv_type_lofs_args" = notfound +then +AC_TRY_COMPILE_ANYFS( +[ struct lo_args a; +], ac_cv_type_lofs_args="struct lo_args", ac_cv_type_lofs_args=notfound) +fi +]) +if test "$ac_cv_type_lofs_args" != notfound +then + AC_DEFINE_UNQUOTED(lofs_args_t, $ac_cv_type_lofs_args) +fi +]) +dnl ====================================================================== |