summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-06-03 22:15:03 +0000
committerRoss Burton <rburton@src.gnome.org>2007-06-03 22:15:03 +0000
commitf61d33bb76676a30210f9671603517b703584c5f (patch)
tree30fe05b54441fa023b3133b1369c2459cf4325a6 /configure.in
parentad65d8f4c7bb9ac6470ac1cca063f2a8e1befaf9 (diff)
downloadevolution-data-server-f61d33bb76676a30210f9671603517b703584c5f.tar.gz
Add --disable-calendar to build without any calendar support (#438928).
2007-06-03 Ross Burton <ross@openedhand.com> * configure.in: * Makefile.am: * src/Makefile.am: * src/offline-listener.[ch]: * src/server.c: Add --disable-calendar to build without any calendar support (#438928). svn path=/trunk/; revision=7799
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in30
1 files changed, 24 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index afadeecce..a30fee613 100644
--- a/configure.in
+++ b/configure.in
@@ -869,6 +869,19 @@ fi
AM_CONDITIONAL(ENABLE_IPv6, test "x$enable_ipv6" = "xyes")
dnl **************************************************
+dnl Calendar support
+dnl **************************************************
+AC_MSG_CHECKING(if we should build the calendar)
+AC_ARG_ENABLE(calendar, AC_HELP_STRING([--disable-calendar],[Disable the calendar components]),
+ enable_calendar="$enableval", enable_calendar="yes")
+if test "x${enable_calendar}" != "xno"; then
+ AC_DEFINE(ENABLE_CALENDAR, 1, [Define if Calendar should be built])
+fi
+AM_CONDITIONAL(ENABLE_CALENDAR, test x$enable_calendar = xyes)
+AC_MSG_RESULT($enable_calendar)
+msg_calendar=$enable_calendar
+
+dnl **************************************************
dnl NNTP support.
dnl **************************************************
AC_ARG_ENABLE(nntp,
@@ -1275,12 +1288,13 @@ AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
dnl --- evolution-calendar flags
+if test "x${enable_calendar}" = "xyes"; then
+ EVOLUTION_CALENDAR_DEPS="libxml-2.0 gobject-2.0 gconf-2.0 libbonobo-2.0 >= $LIBBONOBO_REQUIRED libgnome-2.0 gnome-vfs-2.0"
-EVOLUTION_CALENDAR_DEPS="libxml-2.0 gobject-2.0 gconf-2.0 libbonobo-2.0 >= $LIBBONOBO_REQUIRED libgnome-2.0 gnome-vfs-2.0"
-
-EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, $EVOLUTION_CALENDAR_DEPS)
-AC_SUBST(EVOLUTION_CALENDAR_CFLAGS)
-AC_SUBST(EVOLUTION_CALENDAR_LIBS)
+ EVO_SET_COMPILE_FLAGS(EVOLUTION_CALENDAR, $EVOLUTION_CALENDAR_DEPS)
+ AC_SUBST(EVOLUTION_CALENDAR_CFLAGS)
+ AC_SUBST(EVOLUTION_CALENDAR_LIBS)
+fi
dnl --- factory flags
@@ -1413,7 +1427,10 @@ dnl ******************************
export privlibdir
export privincludedir
export privdatadir
-AC_CONFIG_SUBDIRS(calendar/libical)
+
+if test $enable_calendar = yes; then
+ AC_CONFIG_SUBDIRS(calendar/libical)
+fi
if test $dynamic_libdb = no; then
AC_CONFIG_SUBDIRS(libdb/dist)
fi
@@ -1511,6 +1528,7 @@ esac
echo "
evolution-data-server has been configured as follows:
+ Calendar: $msg_calendar
Mail Directory: $system_mail_dir, $system_mail_perm
LDAP support: $msg_ldap"
if test "$msg_nntp" = "yes"; then