dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
-AC_INIT([Citadel], [8.03], [http://www.citadel.org/])
+AC_INIT([Citadel], [8.10], [http://www.citadel.org/])
AC_REVISION([$Revision: 5108 $])
AC_CONFIG_SRCDIR([citserver.c])
AC_CONFIG_HEADER(sysdep.h)
CFLAGS="$CFLAGS $SERVER_LIBS"
dnl Check for libev
AC_CHECK_HEADER(ev.h,
- [AC_CHECK_LIB(ev, ev_cleanup_start,
- [
+ [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);
+ ],
+ [
LIBS="-lev -lm $LIBS $SERVER_LIBS"
- ],
+ ],
[
AC_MSG_ERROR(libev was not found or is not usable. Please install libev.)
- ]
- ,
- )],
+ ])
+ ],
[
AC_MSG_ERROR(ev.h was not found or is not usable. Please install libev.)
]