1dnl ###################################################################### 2dnl Find the correct type for CDFS mount(2) arguments structure 3AC_DEFUN([AMU_TYPE_CDFS_ARGS], 4[ 5AC_CACHE_CHECK(for structure type of cdfs mount(2) arguments, 6ac_cv_type_cdfs_args, 7[ 8# set to a default value 9ac_cv_type_cdfs_args=notfound 10 11# look for "struct iso_args" 12if test "$ac_cv_type_cdfs_args" = notfound 13then 14AC_TRY_COMPILE_ANYFS( 15[ struct iso_args a; 16], ac_cv_type_cdfs_args="struct iso_args", ac_cv_type_cdfs_args=notfound) 17fi 18 19# look for "struct iso9660_args" 20if test "$ac_cv_type_cdfs_args" = notfound 21then 22AC_TRY_COMPILE_ANYFS( 23[ struct iso9660_args a; 24], ac_cv_type_cdfs_args="struct iso9660_args", ac_cv_type_cdfs_args=notfound) 25fi 26 27# look for "struct cdfs_args" 28if test "$ac_cv_type_cdfs_args" = notfound 29then 30AC_TRY_COMPILE_ANYFS( 31[ struct cdfs_args a; 32], ac_cv_type_cdfs_args="struct cdfs_args", ac_cv_type_cdfs_args=notfound) 33fi 34 35# look for "struct hsfs_args" 36if test "$ac_cv_type_cdfs_args" = notfound 37then 38AC_TRY_COMPILE_ANYFS( 39[ struct hsfs_args a; 40], ac_cv_type_cdfs_args="struct hsfs_args", ac_cv_type_cdfs_args=notfound) 41fi 42 43# look for "struct iso_specific" (ultrix) 44if test "$ac_cv_type_cdfs_args" = notfound 45then 46AC_TRY_COMPILE_ANYFS( 47[ struct iso_specific a; 48], ac_cv_type_cdfs_args="struct iso_specific", ac_cv_type_cdfs_args=notfound) 49fi 50 51]) 52if test "$ac_cv_type_cdfs_args" != notfound 53then 54 AC_DEFINE_UNQUOTED(cdfs_args_t, $ac_cv_type_cdfs_args) 55fi 56]) 57dnl ====================================================================== 58