libevent needs to link the mathlib, so we add -lm
[citadel.git] / citadel / configure.ac
index 8c45d53406d8a495155988c2bebd9de5499ac9a1..314e7bd855215ec65f00a9da4d2d09a4dec197fd 100644 (file)
@@ -619,7 +619,7 @@ dnl Check for libevent
 AC_CHECK_HEADER(ev.h,
        [AC_CHECK_LIB(ev, libcitadel_version_string,
                [
-                       LIBS="-lev $LIBS $SERVER_LIBS"
+                       LIBS="-lev -lm $LIBS $SERVER_LIBS"
                ],
                [
                        AC_MSG_ERROR(libev was not found or is not usable.  Please install libev.)