Check for ev_time instead of ev_loop (ev_loop has been renamed in libev4)

This commit is contained in:
Stefan Bühler 2010-10-28 21:30:28 +02:00
parent adaf8af1ff
commit 9c2b3d4915
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
# libev
CHECK_INCLUDE_FILES(ev.h HAVE_EV_H)
IF(HAVE_EV_H)
CHECK_LIBRARY_EXISTS(ev ev_loop "" HAVE_LIBEV)
CHECK_LIBRARY_EXISTS(ev ev_time "" HAVE_LIBEV)
IF(HAVE_LIBEV)
SET(EV_LIBRARIES ev)
SET(EV_STATIC_LIBRARIES ev;m)

View File

@ -21,9 +21,9 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
# lib ev
AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR("ev.h not found")])
AC_CHECK_LIB([ev], [ev_loop], [
AC_CHECK_LIB([ev], [ev_time], [
LIBS="-lev ${LIBS}"
AC_DEFINE([HAVE_LIBEV], [1], [ev_loop in -lev])
AC_DEFINE([HAVE_LIBEV], [1], [ev_time in -lev])
], [AC_MSG_ERROR("libev not found")])
# Checks for header files.