Report an error if no XDR library can be found

This commit is contained in:
Matthias Bolte 2009-12-21 18:37:15 +01:00
parent 27c357bcfa
commit 188852c984

View File

@ -116,7 +116,8 @@ dnl If portablexdr is installed, prefer that.
dnl Otherwise try -lrpc (Cygwin) -lxdr (some MinGW), -lnsl (Solaris)
dnl or none (most Unix)
AC_CHECK_LIB([portablexdr],[xdrmem_create],[],[
AC_SEARCH_LIBS([xdrmem_create],[rpc xdr nsl])
AC_SEARCH_LIBS([xdrmem_create],[rpc xdr nsl],[],
[AC_MSG_ERROR([Cannot find a XDR library])])
])
AC_CHECK_LIB([intl],[gettext],[])