summaryrefslogtreecommitdiff
path: root/server/external/libevents.m4
diff options
context:
space:
mode:
Diffstat (limited to 'server/external/libevents.m4')
-rw-r--r--server/external/libevents.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/server/external/libevents.m4 b/server/external/libevents.m4
new file mode 100644
index 00000000..4fd2e71e
--- /dev/null
+++ b/server/external/libevents.m4
@@ -0,0 +1,7 @@
+AC_SUBST(EVENTS_OBJ)
+AC_SUBST(EVENTS_CFLAGS)
+AC_SUBST(EVENTS_LIBS)
+
+AC_CHECK_HEADER(events.h,
+ [AC_CHECK_LIB(events, event_context_init, [EVENTS_LIBS="-levents"]) ],
+ [PKG_CHECK_MODULES(EVENTS, events)])