1dnl ###################################################################### 2dnl Find the correct type for LOFS mount(2) arguments structure 3AC_DEFUN([AMU_TYPE_LOFS_ARGS], 4[ 5AC_CACHE_CHECK(for structure type of lofs mount(2) arguments, 6ac_cv_type_lofs_args, 7[ 8# set to a default value 9ac_cv_type_lofs_args=notfound 10# look for "struct lofs_args" 11if test "$ac_cv_type_lofs_args" = notfound 12then 13AC_TRY_COMPILE_ANYFS( 14[ struct lofs_args a; 15], ac_cv_type_lofs_args="struct lofs_args", ac_cv_type_lofs_args=notfound) 16fi 17# look for "struct lo_args" 18if test "$ac_cv_type_lofs_args" = notfound 19then 20AC_TRY_COMPILE_ANYFS( 21[ struct lo_args a; 22], ac_cv_type_lofs_args="struct lo_args", ac_cv_type_lofs_args=notfound) 23fi 24]) 25if test "$ac_cv_type_lofs_args" != notfound 26then 27 AC_DEFINE_UNQUOTED(lofs_args_t, $ac_cv_type_lofs_args) 28fi 29]) 30dnl ====================================================================== 31