1*a53f50b9Schristosdnl ###################################################################### 2*a53f50b9Schristosdnl Find if struct nfs_args exists anywhere in typical headers 3*a53f50b9SchristosAC_DEFUN([AMU_STRUCT_NFS_ARGS], 4*a53f50b9Schristos[ 5*a53f50b9Schristosdnl make sure this is called before [AC_TYPE_NFS_FH] 6*a53f50b9SchristosAC_BEFORE([$0], [AC_TYPE_NFS_FH]) 7*a53f50b9SchristosAC_BEFORE([$0], [AC_STRUCT_FIELD_NFS_FH]) 8*a53f50b9SchristosAC_CACHE_CHECK(for struct nfs_args, 9*a53f50b9Schristosac_cv_have_struct_nfs_args, 10*a53f50b9Schristos[ 11*a53f50b9Schristos# try to compile a program which may have a definition for the structure 12*a53f50b9Schristos# assume not found 13*a53f50b9Schristosac_cv_have_struct_nfs_args=notfound 14*a53f50b9Schristos 15*a53f50b9Schristos# look for "struct irix5_nfs_args" (specially set in conf/nfs_prot/) 16*a53f50b9Schristosif test "$ac_cv_have_struct_nfs_args" = notfound 17*a53f50b9Schristosthen 18*a53f50b9SchristosAC_TRY_COMPILE_NFS( 19*a53f50b9Schristos[ struct irix5_nfs_args na; 20*a53f50b9Schristos], ac_cv_have_struct_nfs_args="struct irix5_nfs_args", ac_cv_have_struct_nfs_args=notfound) 21*a53f50b9Schristosfi 22*a53f50b9Schristos 23*a53f50b9Schristos# look for "struct aix5_nfs_args" (specially set in conf/nfs_prot/) 24*a53f50b9Schristosif test "$ac_cv_have_struct_nfs_args" = notfound 25*a53f50b9Schristosthen 26*a53f50b9SchristosAC_TRY_COMPILE_NFS( 27*a53f50b9Schristos[ struct aix5_nfs_args na; 28*a53f50b9Schristos], ac_cv_have_struct_nfs_args="struct aix5_nfs_args", ac_cv_have_struct_nfs_args=notfound) 29*a53f50b9Schristosfi 30*a53f50b9Schristos 31*a53f50b9Schristos# look for "struct aix4_nfs_args" (specially set in conf/nfs_prot/) 32*a53f50b9Schristosif test "$ac_cv_have_struct_nfs_args" = notfound 33*a53f50b9Schristosthen 34*a53f50b9SchristosAC_TRY_COMPILE_NFS( 35*a53f50b9Schristos[ struct aix4_nfs_args na; 36*a53f50b9Schristos], ac_cv_have_struct_nfs_args="struct aix4_nfs_args", ac_cv_have_struct_nfs_args=notfound) 37*a53f50b9Schristosfi 38*a53f50b9Schristos 39*a53f50b9Schristos# look for "struct nfs_args" 40*a53f50b9Schristosif test "$ac_cv_have_struct_nfs_args" = notfound 41*a53f50b9Schristosthen 42*a53f50b9SchristosAC_TRY_COMPILE_NFS( 43*a53f50b9Schristos[ struct nfs_args na; 44*a53f50b9Schristos], ac_cv_have_struct_nfs_args="struct nfs_args", ac_cv_have_struct_nfs_args=notfound) 45*a53f50b9Schristosfi 46*a53f50b9Schristos 47*a53f50b9Schristos]) 48*a53f50b9Schristos 49*a53f50b9Schristosif test "$ac_cv_have_struct_nfs_args" != notfound 50*a53f50b9Schristosthen 51*a53f50b9Schristos AC_DEFINE(HAVE_STRUCT_NFS_ARGS) 52*a53f50b9Schristos AC_DEFINE_UNQUOTED(nfs_args_t, $ac_cv_have_struct_nfs_args) 53*a53f50b9Schristosfi 54*a53f50b9Schristos]) 55*a53f50b9Schristosdnl ====================================================================== 56