No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / am-utils / dist / m4 / macros / check_nfs_fh_dref.m4
blob6ef0ab4fbb66d92d0fd3fb1e5682d6299b74a1ec
1 dnl ######################################################################
2 dnl check the correct way to dereference the address part of the nfs fhandle
3 AC_DEFUN([AMU_CHECK_NFS_FH_DREF],
5 AC_CACHE_CHECK(nfs file-handle address dereferencing style,
6 ac_cv_nfs_fh_dref_style,
8 # select the correct nfs address dereferencing style
9 case "${host_os}" in
10         hpux[[6-9]]* | hpux10* )
11                 ac_cv_nfs_fh_dref_style=hpux ;;
12         sunos3* )
13                 ac_cv_nfs_fh_dref_style=sunos3 ;;
14         sunos4* | solaris1* )
15                 ac_cv_nfs_fh_dref_style=sunos4 ;;
16         svr4* | sysv4* | solaris* | sunos* | hpux* )
17                 ac_cv_nfs_fh_dref_style=svr4 ;;
18         bsd44* | bsdi2* | freebsd2.[[01]]* )
19                 ac_cv_nfs_fh_dref_style=bsd44 ;;
20         # all new BSDs changed the type of the
21         # filehandle in nfs_args from nfsv2fh_t to u_char.
22         freebsd* | freebsdelf* | bsdi* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
23                 ac_cv_nfs_fh_dref_style=freebsd22 ;;
24         aix[[1-3]]* | aix4.[[01]]* )
25                 ac_cv_nfs_fh_dref_style=aix3 ;;
26         aix* )
27                 ac_cv_nfs_fh_dref_style=aix42 ;;
28         irix* )
29                 ac_cv_nfs_fh_dref_style=irix ;;
30         linux* )
31                 ac_cv_nfs_fh_dref_style=linux ;;
32         isc3 )
33                 ac_cv_nfs_fh_dref_style=isc3 ;;
34         osf[[1-3]]* )
35                 ac_cv_nfs_fh_dref_style=osf2 ;;
36         osf* )
37                 ac_cv_nfs_fh_dref_style=osf4 ;;
38         nextstep* )
39                 ac_cv_nfs_fh_dref_style=nextstep ;;
40         * )
41                 ac_cv_nfs_fh_dref_style=default ;;
42 esac
44 am_utils_nfs_fh_dref=$srcdir"/conf/fh_dref/fh_dref_"$ac_cv_nfs_fh_dref_style".h"
45 AC_SUBST_FILE(am_utils_nfs_fh_dref)
47 dnl ======================================================================