1 | dnl this file is part of libev, do not make local modifications |
1 | dnl this file is part of libev, do not make local modifications |
2 | dnl http://software.schmorp.de/pkg/libev |
2 | dnl http://software.schmorp.de/pkg/libev |
3 | |
3 | |
4 | dnl libev support |
4 | dnl libev support |
5 | AC_CHECK_HEADERS(sys/epoll.h sys/event.h sys/queue.h port.h) |
5 | AC_CHECK_HEADERS(sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h) |
6 | |
6 | |
7 | AC_CHECK_FUNCS(epoll_ctl kqueue port_create) |
7 | AC_CHECK_FUNCS(epoll_ctl kqueue port_create poll select) |
8 | |
8 | |
9 | AC_CHECK_FUNC(clock_gettime, [], [ |
9 | AC_CHECK_FUNC(clock_gettime, [], [ |
|
|
10 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
10 | AC_CHECK_LIB(rt, clock_gettime) |
11 | AC_CHECK_LIB(rt, clock_gettime) |
11 | AC_CHECK_FUNCS(clock_gettime) |
12 | AC_CHECK_FUNCS(clock_gettime) |
|
|
13 | fi |
12 | ]) |
14 | ]) |
13 | |
15 | |
14 | AC_CHECK_LIB(m, ceil) |
16 | AC_CHECK_LIB(m, ceil) |
15 | |
17 | |
16 | |
18 | |