1 dnl Checks for TI-RPC library and headers
3 AC_DEFUN([AC_LIBTIRPC], [
5 dnl if --enable-tirpc was specifed, the following components
6 dnl must be present, and we set up HAVE_ macros for them.
8 if test "$enable_tirpc" = yes; then
10 dnl look for the library; add to LIBS if found
11 AC_CHECK_LIB([tirpc], [clnt_tli_create], ,
12 [AC_MSG_ERROR([libtirpc not found.])])
14 dnl also must have the headers installed where we expect
15 AC_CHECK_HEADERS([tirpc/netconfig.h], ,
16 [AC_MSG_ERROR([libtirpc headers not found.])])