1dnl ######################################################################
2dnl check the correct way to dereference the address part of the nfs fhandle
3AC_DEFUN([AMU_CHECK_NFS_FH_DREF],
4[
5AC_CACHE_CHECK(nfs file-handle address dereferencing style,
6ac_cv_nfs_fh_dref_style,
7[
8# select the correct nfs address dereferencing style
9case "${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 ;;
42esac
43])
44am_utils_nfs_fh_dref=$srcdir"/conf/fh_dref/fh_dref_"$ac_cv_nfs_fh_dref_style".h"
45AC_SUBST_FILE(am_utils_nfs_fh_dref)
46])
47dnl ======================================================================
48