1dnl ######################################################################
2dnl check the correct type for the 3rd argument to yp_order()
3AC_DEFUN([AMU_TYPE_YP_ORDER_OUTORDER],
4[
5AC_CACHE_CHECK(pointer type of 3rd argument to yp_order(),
6ac_cv_yp_order_outorder,
7[
8# select the correct type
9case "${host_os}" in
10	aix[[1-3]]* | aix4.[[0-2]]* | sunos[[34]]* | solaris1* )
11		ac_cv_yp_order_outorder=int ;;
12	solaris* | svr4* | sysv4* | sunos* | hpux* | aix* )
13		ac_cv_yp_order_outorder="unsigned long" ;;
14	linux* | osf* )
15		# DU4 man page is wrong, headers are right
16		ac_cv_yp_order_outorder="unsigned int" ;;
17	* )
18		ac_cv_yp_order_outorder=int ;;
19esac
20])
21AC_DEFINE_UNQUOTED(YP_ORDER_OUTORDER_TYPE, $ac_cv_yp_order_outorder)
22])
23dnl ======================================================================
24