configure: pull common nfsidmap and event checks into aclocal/
[nfs-utils.git] / aclocal / libevent.m4
1 dnl Checks for libevent
2 AC_DEFUN([AC_LIBEVENT], [
3
4   dnl Check for libevent, but do not add -levent to LIBS
5   AC_CHECK_LIB([event], [event_dispatch], [libevent=1],
6                [AC_MSG_ERROR([libevent not found.])])
7
8   AC_CHECK_HEADERS([event.h], ,
9                    [AC_MSG_ERROR([libevent headers not found.])])
10
11 ])dnl