FIND_PATH(LIBEV_INCLUDE_DIR ev.h HINTS /usr/include/libev )
FIND_LIBRARY(LIBEV_LIBRARIES NAMES ev)

IF(LIBEV_INCLUDE_DIR AND LIBEV_LIBRARIES)
	SET(LIBEV_FOUND TRUE)
ENDIF(LIBEV_INCLUDE_DIR AND LIBEV_LIBRARIES)

IF(LIBEV_FOUND)
	IF (NOT Speex_FIND_QUIETLY)
		MESSAGE(STATUS "Found libev includes:	${LIBEV_INCLUDE_DIR}/libev/ev.h")
		MESSAGE(STATUS "Found libev library: ${LIBEV_LIBRARIES}")
	ENDIF (NOT Speex_FIND_QUIETLY)
ELSE(LIBEV_FOUND)
	IF (Speex_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find libev development files")
	ENDIF (Speex_FIND_REQUIRED)
ENDIF(LIBEV_FOUND)