aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index a70e820e22..a3dde3d258 100644
--- a/configure.in
+++ b/configure.in
@@ -1198,7 +1198,16 @@ AC_SUBST(EVOLUTION_ADDRESSBOOK_CONDUIT_LIBS)
fi
dnl --- evolution-calendar flags
-EVO_SET_COMPILE_FLAGS(LIBSOUP, libsoup-2.2 >= 2.2.2)
+PKG_CHECK_MODULES(SOUPTEMP, libsoup-2.4, have_libsoup_24="yes", have_libsoup_24="no")
+if test $have_libsoup_24 = yes; then
+ LIBSOUP_REQUIRED=2.3.0
+ LIBSOUP=libsoup-2.4
+else
+ LIBSOUP_REQUIRED=2.2.2
+ LIBSOUP=libsoup-2.2
+fi
+
+EVO_SET_COMPILE_FLAGS(LIBSOUP, $LIBSOUP >= $LIBSOUP_REQUIRED)
AC_SUBST(LIBSOUP_CFLAGS)
AC_SUBST(LIBSOUP_LIBS)