aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2014-09-03 15:10:11 +0800
committerMilan Crha <mcrha@redhat.com>2014-09-03 15:10:11 +0800
commit2d345f3d94a85360e92ef566257c1bc738b6cdc2 (patch)
tree686b5cdcb87a4651523b9784e97078a6db546de5 /configure.ac
parent707ba2751903f08369d2c8fa7779140b49f6051b (diff)
downloadgsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar.gz
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar.bz2
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar.lz
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar.xz
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.tar.zst
gsoc2013-evolution-2d345f3d94a85360e92ef566257c1bc738b6cdc2.zip
Bug 707647 - gnome-autoar integration in attachments
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 30 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2a7e4bbd44..c4243dc93a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,7 @@ m4_define([geoclue_minimum_version], [0.12.0])
m4_define([geocode_glib_minimum_version], [3.10])
m4_define([gladeui_minimum_version], [3.10.0])
m4_define([gweather_minimum_version], [3.8])
+m4_define([gnome_autoar_minimum_version], [0.1])
m4_define([libcanberra_gtk_minimum_version], [0.25])
m4_define([libnotify_minimum_version], [0.7])
@@ -340,6 +341,34 @@ fi
AC_SUBST(CANBERRA_CFLAGS)
AC_SUBST(CANBERRA_LIBS)
+dnl ***********************************
+dnl Archives Integration / gnome-autoar
+dnl ***********************************
+AC_ARG_ENABLE([autoar],
+ [AS_HELP_STRING([--enable-autoar],
+ [Enable archives support in attachments @<:@default=yes@:>@])],
+ [enable_autoar="$enableval"], [enable_autoar=yes])
+
+if test x"$enable_autoar" = xyes; then
+ PKG_CHECK_MODULES(
+ [AUTOAR],
+ [gnome-autoar >= gnome_autoar_minimum_version
+ gnome-autoar-gtk >= gnome_autoar_minimum_version],,
+ [AC_MSG_ERROR([
+
+ gnome-autoar or gnome-autoar-gtk not found
+ (or version < gnome_autoar_minimum_version)
+
+ If you want to disable support for automatic archives handling,
+ please append --disable-autoar to configure.
+
+ ])])
+
+ AC_DEFINE(HAVE_AUTOAR, 1, [Define if gnome-autoar is enabled])
+fi
+AC_SUBST(AUTOAR_CFLAGS)
+AC_SUBST(AUTOAR_LIBS)
+
dnl ******************
dnl User Documentation
dnl ******************
@@ -1612,6 +1641,7 @@ echo "
LDAP support: $msg_ldap
Contact Maps: $enable_contact_maps
Libcryptui: $enable_libcryptui
+ Archives support: $enable_autoar
Libnotify: $HAVE_LIBNOTIFY
SSL support: $msg_ssl
SMIME support: $msg_smime