xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_checkmount_style.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl check style of fixmount check_mount() function
3*a53f50b9SchristosAC_DEFUN([AMU_CHECK_CHECKMOUNT_STYLE],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(style of fixmount check_mount(),
6*a53f50b9Schristosac_cv_style_checkmount,
7*a53f50b9Schristos[
8*a53f50b9Schristos# select the correct style for unmounting filesystems
9*a53f50b9Schristoscase "${host_os_name}" in
10*a53f50b9Schristos	svr4* | sysv4* | solaris2* | sunos5* )
11*a53f50b9Schristos			ac_cv_style_checkmount=svr4 ;;
12*a53f50b9Schristos	bsd44* | bsdi* | freebsd* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
13*a53f50b9Schristos			ac_cv_style_checkmount=bsd44 ;;
14*a53f50b9Schristos	aix* )
15*a53f50b9Schristos			ac_cv_style_checkmount=aix ;;
16*a53f50b9Schristos	osf* )
17*a53f50b9Schristos			ac_cv_style_checkmount=osf ;;
18*a53f50b9Schristos	ultrix* )
19*a53f50b9Schristos			ac_cv_style_checkmount=ultrix ;;
20*a53f50b9Schristos	* )
21*a53f50b9Schristos			ac_cv_style_checkmount=default ;;
22*a53f50b9Schristosesac
23*a53f50b9Schristos])
24*a53f50b9Schristosam_utils_checkmount_style_file="check_mount.c"
25*a53f50b9Schristosam_utils_link_files=${am_utils_link_files}fixmount/${am_utils_checkmount_style_file}:conf/checkmount/checkmount_${ac_cv_style_checkmount}.c" "
26*a53f50b9Schristos
27*a53f50b9Schristos])
28*a53f50b9Schristosdnl ======================================================================
29