1dnl ######################################################################
2dnl check the correct way to dereference the address part of the nfs fhandle
3AC_DEFUN([AMU_CHECK_NFS_SA_DREF],
4[
5AC_CACHE_CHECK(nfs address dereferencing style,
6ac_cv_nfs_sa_dref_style,
7[
8# select the correct nfs address dereferencing style
9case "${host_os}" in
10	hpux[[6-9]]* | hpux10* | sunos[[34]]* | solaris1* )
11		ac_cv_nfs_sa_dref_style=default ;;
12	svr4* | sysv4* | solaris* | sunos* | hpux* )
13		ac_cv_nfs_sa_dref_style=svr4 ;;
14	386bsd* | bsdi1* )
15		ac_cv_nfs_sa_dref_style=386bsd ;;
16	bsd44* | bsdi* | freebsd* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
17		ac_cv_nfs_sa_dref_style=bsd44 ;;
18	linux* )
19		ac_cv_nfs_sa_dref_style=linux ;;
20	aix* )
21		ac_cv_nfs_sa_dref_style=aix3 ;;
22	aoi* )
23		ac_cv_nfs_sa_dref_style=aoi ;;
24	isc3 )
25		ac_cv_nfs_sa_dref_style=isc3 ;;
26	* )
27		ac_cv_nfs_sa_dref_style=default ;;
28esac
29])
30am_utils_nfs_sa_dref=$srcdir"/conf/sa_dref/sa_dref_"$ac_cv_nfs_sa_dref_style".h"
31AC_SUBST_FILE(am_utils_nfs_sa_dref)
32])
33dnl ======================================================================
34