1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
AC_LIB_HAVE_LINKFLAGS(event,, [ #include <sys/types.h> #include <sys/time.h> #include <stdlib.h> #include <event.h> ],[ struct bufferevent bev; bufferevent_settimeout(&bev, 1, 1); event_init(); event_loop(EVLOOP_ONCE); ]) AS_IF([test x$ac_cv_libevent = xno], AC_MSG_WARN([Couldnt find a recent libevent pool-of-threads scheduler will not be built. On Debian this can be found in libevent-dev. On RedHat its in libevent-devel.])) |