]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - aclocal/libevent.m4
configure: pull common nfsidmap and event checks into aclocal/
[nfs-utils.git] / aclocal / libevent.m4
diff --git a/aclocal/libevent.m4 b/aclocal/libevent.m4
new file mode 100644 (file)
index 0000000..3c962b3
--- /dev/null
@@ -0,0 +1,11 @@
+dnl Checks for libevent
+AC_DEFUN([AC_LIBEVENT], [
+
+  dnl Check for libevent, but do not add -levent to LIBS
+  AC_CHECK_LIB([event], [event_dispatch], [libevent=1],
+               [AC_MSG_ERROR([libevent not found.])])
+
+  AC_CHECK_HEADERS([event.h], ,
+                   [AC_MSG_ERROR([libevent headers not found.])])
+
+])dnl