rpc.m4 443 B

1234567891011121314151617
  1. AC_DEFUN([AC_CHECK_RPC],
  2. [
  3. AC_CHECK_FUNCS(pmap_set, , [
  4. AC_CHECK_LIB(rpc, pmap_set, [
  5. LIBS="-lrpc $LIBS"
  6. AC_DEFINE(HAVE_PMAP_SET)
  7. ])])
  8. AC_CHECK_FUNCS(pmap_getport pmap_getmaps rresvport)
  9. dnl add for source routing support setsockopt
  10. AC_CHECK_HEADERS(rpc/pmap_clnt.h, , , [
  11. #include <sys/types.h>
  12. #include <sys/socket.h>
  13. #include <netinet/in.h>
  14. #include <rpc/rpc.h>
  15. #include <rpc/pmap_prot.h>
  16. ])
  17. ])