From 8386aabb76377f93c63d819878a3c57d147e11e7 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 27 Dec 2011 13:58:16 -0500 Subject: [PATCH] autoconf check for ev_cleanup_start() instead of a test program --- citadel/configure.ac | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/citadel/configure.ac b/citadel/configure.ac index 6e8894d5b..4e0982cbe 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -602,7 +602,7 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $SERVER_LIBS" dnl Check for libev AC_CHECK_HEADER(ev.h, - [AC_CHECK_LIB(ev, libcitadel_version_string, + [AC_CHECK_LIB(ev, ev_cleanup_start, [ LIBS="-lev -lm $LIBS $SERVER_LIBS" ], @@ -617,25 +617,6 @@ AC_CHECK_HEADER(ev.h, ) CFLAGS="$saved_CFLAGS" -AC_MSG_CHECKING(Checking version of libev) -AC_TRY_RUN([ - #include - main() { - printf("libev is version %d.%d\n", ev_version_major(), ev_version_minor()); - if (ev_version_major() >= 4) { - exit(0); - } - exit(1); - } - ], - [ - AC_MSG_RESULT(This will do just fine, thank you) - ], - [ - AC_MSG_ERROR(Citadel requires a newer version of libev. More info: http://www.citadel.org/doku.php/installation:start) - ] -) - # The big search for OpenSSL if test "$with_ssl" != "no"; then -- 2.30.2