X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=aclocal%2Flibtirpc.m4;fp=aclocal%2Flibtirpc.m4;h=67c40120cf35df1f46601b00d2e44c85b8837078;hp=0000000000000000000000000000000000000000;hb=31c4305a67ca434ea5614f5bdb083fbe9acc2f7e;hpb=8b40c0bf17ca3e007721085a3bb627a2abd52777 diff --git a/aclocal/libtirpc.m4 b/aclocal/libtirpc.m4 new file mode 100644 index 0000000..67c4012 --- /dev/null +++ b/aclocal/libtirpc.m4 @@ -0,0 +1,25 @@ +dnl Checks for TI-RPC library and headers +dnl +AC_DEFUN([AC_LIBTIRPC], [ + + dnl if --enable-tirpc was specifed, the following components + dnl must be present, and we set up HAVE_ macros for them. + + if test "$enable_tirpc" = yes; then + + dnl look for the library; add to LIBS if found + AC_CHECK_LIB([tirpc], [clnt_tli_create], , + [AC_MSG_ERROR([libtirpc not found.])]) + + dnl also must have the headers installed where we expect + AC_CHECK_HEADERS([tirpc/netconfig.h], , + [AC_MSG_ERROR([libtirpc headers not found.])]) + + dnl set up HAVE_FOO for various functions + AC_CHECK_FUNCS([getnetconfig \ + clnt_create clnt_create_timed \ + clnt_vc_create clnt_dg_create xdr_rpcb]) + + fi + +])dnl