X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=configure.ac;h=70bc999b4ad168570fa646efab5e62237dd78b62;hp=9e0500894125f669e57a25ab3dbe7db24b6b382a;hb=8d014e2a3b73644a51fa341a036a6df0221bc66d;hpb=ed9505140adea2ad3ef0a8d25057197864ead712 diff --git a/configure.ac b/configure.ac index 9e050089..70bc999b 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ m4_define(empathy_released, 0) m4_define([empathy_major_version], [3]) m4_define([empathy_minor_version], [1]) -m4_define([empathy_micro_version], [1]) +m4_define([empathy_micro_version], [4]) m4_define([empathy_nano_version], [0]) dnl Display the nano_version only if it's not '0' @@ -31,17 +31,18 @@ AC_COPYRIGHT([ # Minimal version required # Hardp deps -FOLKS_REQUIRED=0.4.0 +FOLKS_REQUIRED=0.5.1 GLIB_REQUIRED=2.28.0 GNUTLS_REQUIRED=2.8.5 GTK_REQUIRED=3.0.2 +GSTREAMER_REQUIRED=0.10.32 KEYRING_REQUIRED=2.26.0 GCR_REQUIRED=2.91.4 LIBCANBERRA_GTK_REQUIRED=0.25 LIBNOTIFY_REQUIRED=0.7.0 TELEPATHY_FARSIGHT_REQUIRED=0.0.14 -TELEPATHY_GLIB_REQUIRED=0.14.3 -TELEPATHY_LOGGER=0.2.0 +TELEPATHY_GLIB_REQUIRED=0.15.3 +TELEPATHY_LOGGER=0.2.10 # Optional deps CLUTTER_GTK_REQUIRED=0.90.3 @@ -52,7 +53,7 @@ LIBCHAMPLAIN_GTK_REQUIRED=0.7.1 LIBCHAMPLAIN_REQUIRED=0.9 NAUTILUS_SENDTO_REQUIRED=2.90.0 NETWORK_MANAGER_REQUIRED=0.7.0 -WEBKIT_REQUIRED=1.3.2 +WEBKIT_REQUIRED=1.3.13 GNOME_CONTROL_CENTER_REQUIRED=2.31.4 # Use --enable-maintainer-mode to disable deprecated symbols, @@ -62,6 +63,15 @@ GNOME_CONTROL_CENTER_REQUIRED=2.31.4 #ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"]) #GNOME_MAINTAINER_MODE_DEFINES +# telepathy-yell +prev_top_build_prefix=$ac_top_build_prefix +prev_ac_configure_args=$ac_configure_args +ac_configure_args="$ac_configure_args --disable-shared-library" +AX_CONFIG_DIR([telepathy-yell]) +ac_top_build_prefix=$prev_top_build_prefix +ac_configure_args=$prev_ac_configure_args +export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"telepathy-yell/telepathy-yell + AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([configure.ac]) @@ -154,7 +164,7 @@ PKG_CHECK_MODULES(EMPATHY, gmodule-export-2.0 gobject-2.0 gsettings-desktop-schemas - gstreamer-0.10 + gstreamer-0.10 >= $GSTREAMER_REQUIRED gstreamer-interfaces-0.10 libxml-2.0 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED @@ -166,12 +176,75 @@ PKG_CHECK_MODULES(EMPATHY, gcr-3 >= $GCR_REQUIRED ]) +PKG_CHECK_MODULES(YELL, [telepathy-yell]) + PKG_CHECK_MODULES(EMPATHY_AV, [ farsight2-0.10 telepathy-farsight >= $TELEPATHY_FARSIGHT_REQUIRED ]) +# ----------------------------------------------------------- +# Call interface +# ----------------------------------------------------------- +AC_ARG_WITH(call, + AC_HELP_STRING([--enable-call=@<:@no/yes/auto@:>@], + [build with Call interface support]),, + [with_call=auto]) +if test "x$with_call" != "xno" ; then + PKG_CHECK_MODULES(EMPATHY_CALL, + [ + farsight2-0.10 + telepathy-farstream + clutter-1.0 + clutter-gtk-1.0 + clutter-gst-1.0 + ], have_call="yes", have_call="no" ) + + if test "x$have_call" = "xyes"; then + AC_DEFINE(HAVE_CALL, 1, [Define if you have Call channel support]) + fi +else + have_call=no +fi + +if test "x$with_call" = "xyes" -a "x$have_call" != "xyes"; then + AC_MSG_ERROR([Could not find Call handler dependencies.]) +fi +AM_CONDITIONAL(HAVE_CALL, test "x$have_call" = "xyes") + + +# ----------------------------------------------------------- +# Call support in tp-logger +# ----------------------------------------------------------- +AC_ARG_WITH(call-logs, + AC_HELP_STRING([--enable-call-logs=@<:@no/yes/auto@:>@], + [build with call logs support]),, + [with_call_logs=auto]) +if test "x$with_call_logs" != "xno" ; then + SAVE_CFLAGS=$CFLAGS + SAVE_CPPFLAGS=$CPPFLAGS + CFLAGS="$CFLAGS $EMPATHY_CFLAGS" + CPPFLAGS="$CPPFLAGS $EMPATHY_CFLAGS" + + AC_CHECK_HEADER(telepathy-logger/call-event.h, + have_call_logs="yes", have_call_logs="no") + + CFLAGS=$SAVE_CFLAGS + CPPFLAGS=$SAVE_CPPFLAGS + + if test "x$have_call_logs" = "xyes"; then + AC_DEFINE(HAVE_CALL_LOGS, 1, [Define if you have call log support]) + fi +else + have_call_logs=no +fi + +if test "x$with_call_logs" = "xyes" -a "x$have_call_logs" != "xyes"; then + AC_MSG_ERROR([Call logs support requested but telepathy-logger wasn't + built with --enable-call]) +fi + # ----------------------------------------------------------- # evolution-data-server (about-me) # ----------------------------------------------------------- @@ -277,6 +350,31 @@ if test "x$enable_webkit" = "xyes" -a "x$have_webkit" != "xyes"; then fi AM_CONDITIONAL(HAVE_WEBKIT, test "x$have_webkit" = "xyes") +# ----------------------------------------------------------- +# gudev +# ----------------------------------------------------------- +AC_ARG_ENABLE(gudev, + AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@], + [build with gudev support]), , + enable_gudev=auto) + +if test "x$enable_gudev" != "xno"; then + + PKG_CHECK_MODULES(UDEV, [gudev-1.0], + have_gudev="yes", have_gudev="no") + + if test "x$have_gudev" = "xyes"; then + AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev]) + fi +else + have_gudev=no +fi + +if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then + AC_MSG_ERROR([Could not find gudev dependencies.]) +fi +AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes") + # ----------------------------------------------------------- # spellchecking checks: enchant and iso-codes # ----------------------------------------------------------- @@ -374,6 +472,35 @@ AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes") AC_SUBST(GEOCLUE_CFLAGS) AC_SUBST(GEOCLUE_LIBS) +# ----------------------------------------------------------- +# location checks: geocode-glib +# ----------------------------------------------------------- +AC_ARG_ENABLE(geocode, + AS_HELP_STRING([--enable-geocode=@<:@no/yes/auto@:>@], + [Enable geocode support]), , + enable_geocode=auto) + +if test "x$enable_geocode" != "xno"; then + PKG_CHECK_MODULES(GEOCODE, + [ + geocode-glib + ], have_geocode="yes", have_geocode="no") + + if test "x$have_geocode" = "xyes"; then + AC_DEFINE(HAVE_GEOCODE, 1, [Define if you have geocode]) + fi +else + have_geocode="no" +fi + +if test "x$enable_geocode" = "xyes" -a "x$have_geocode" != "xyes"; then + AC_MSG_ERROR([Could not find geocode dependencies.]) +fi + +AM_CONDITIONAL(HAVE_GEOCODE, test "x$have_geocode" = "xyes") +AC_SUBST(GEOCODE_CFLAGS) +AC_SUBST(GEOCODE_LIBS) + # ----------------------------------------------------------- # meego widgets support # ----------------------------------------------------------- @@ -464,6 +591,25 @@ AM_CONDITIONAL(HAVE_CONTROL_CENTER_EMBEDDING, test "x$have_control_center_embedd AC_SUBST(CONTROL_CENTER_EMBEDDING_CFLAGS) AC_SUBST(CONTROL_CENTER_EMBEDDING_LIBS) +# Optional dependency for avatar selection +AC_ARG_WITH([cheese], + AS_HELP_STRING([--with-cheese], [enable cheese webcam support]),, + with_cheese=auto) + +if test x"$with_cheese" != x"no" ; then + PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.91.91.1, [have_cheese=yes], [have_cheese=no]) + if test x${have_cheese} = xyes; then + AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support]) + fi + if test x${with_cheese} = xyes && test x${have_cheese} = xno; then + AC_MSG_ERROR([Cheese configured but not found]) + fi +else + have_cheese=no +fi +AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes) + + # ----------------------------------------------------------- # Coding style checks # ----------------------------------------------------------- @@ -506,9 +652,12 @@ Configure summary: Spell checking (enchant)....: ${have_enchant} Display maps (libchamplain).: ${have_libchamplain} Location awareness (Geoclue): ${have_geoclue} + Geocode support (Geoclue)...: ${have_geocode} Adium themes (Webkit).......: ${have_webkit} - Meego widgets ..............: ${have_meego} + Meego widgets...............: ${have_meego} Control center embedding....: ${have_control_center_embedding} + Cheese webcam support ......: ${have_cheese} + Camera monitoring...........: ${have_gudev} Connectivity: NetworkManager integration..: ${have_nm} @@ -517,4 +666,6 @@ Configure summary: Extras: Nautilus-sendto plugin......: ${have_nst} Salut E-D-S support.........: ${with_eds} + Exp. Call channel handler...: ${have_call} + Exp. Call log support.......: ${have_call_logs} "