- [AC_CHECK_LIB(ev, ev_cleanup_start,
- [
- LIBS="-lev -lm $LIBS $SERVER_LIBS"
- ],
+ [AC_TRY_COMPILE([#include <math.h>
+#include <ev.h>],
+ [
+ ev_cleanup abort_by_shutdown;
+ struct ev_loop *event_base;
+ ev_cleanup_start(event_base, &abort_by_shutdown);
+ ],[],