Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (23 sloc) 0.946 kB
6f35bbe @bos Switch to a configure-based build.
bos authored
1 AC_INIT([event], [0.0], [io-manager@serpentine.com], [event])
2
3 AC_CONFIG_SRCDIR([src/System/Event.hs])
4
5 AC_CONFIG_HEADERS([include/EventConfig.h])
6
7 AC_CANONICAL_HOST
8
9 AC_ARG_WITH([compiler],
10 [Haskell compiler],
11 [HSC=$withval])
12 AC_ARG_WITH([cc],
13 [C compiler],
14 [CC=$withval])
15 AC_PROG_CC()
16
532cc1a Reverted the previous select back-end commit
Johan Tibell authored
17 AC_CHECK_HEADERS([poll.h signal.h sys/epoll.h sys/event.h sys/eventfd.h])
6f35bbe @bos Switch to a configure-based build.
bos authored
18
532cc1a Reverted the previous select back-end commit
Johan Tibell authored
19 AC_CHECK_FUNCS([epoll_create1 epoll_ctl eventfd kevent kevent64 kqueue poll])
78b2647 @bos Allow kqueue back end to build on FreeBSD as well as OS X.
bos authored
20
21 if test "$ac_cv_header_sys_epoll_h" = yes -a "$ac_cv_func_epoll_ctl" = yes; then
22 AC_DEFINE([HAVE_EPOLL], [1], [Define if you have epoll support.])
23 fi
24
25 if test "$ac_cv_header_sys_event_h" = yes -a "$ac_cv_func_kqueue" = yes; then
26 AC_DEFINE([HAVE_KQUEUE], [1], [Define if you have kqueue support.])
27 fi
6f35bbe @bos Switch to a configure-based build.
bos authored
28
844eedd @bos Add a poll backend. This astonished me by working first time. Yikes!
bos authored
29 if test "$ac_cv_header_poll_h" = yes -a "$ac_cv_func_poll" = yes; then
30 AC_DEFINE([HAVE_POLL], [1], [Define if you have poll support.])
31 fi
32
6f35bbe @bos Switch to a configure-based build.
bos authored
33 AC_OUTPUT
Something went wrong with that request. Please try again.