diff options
author | Victor Kareh <[email protected]> | 2025-07-25 07:22:50 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2025-07-25 16:52:45 -0400 |
commit | dafe6ccfd17ede3af0c8a92cc06a545c4d1723ef (patch) | |
tree | 7777098fb6a2b225aa0878012f475a9ce13befd2 /configure.ac | |
parent | d62e45c2b0aaf4b15eecc2e8f1529f42fb4c8e6d (diff) | |
download | mate-panel-evolution-calendar-integration.tar.bz2 mate-panel-evolution-calendar-integration.tar.xz |
clock: Backport Evolution calendar integration from gnome-panelevolution-calendar-integration
Add Evolution Data Server (EDS) calendar integration to the MATE panel
clock applet, most of it ported from gnome-panel's clock applet. This
allows users to view calendar events and tasks directly from the clock
popup calendar.
The calendar integration is disabled by default and can be enabled
with --enable-eds during configuration. When disabled, the clock
applet functions normally without any EDS dependencies.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ca881ef8..23c132cd 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,27 @@ PKG_CHECK_MODULES(CLOCK, pango >= $PANGO_REQUIRED gtk+-3.0 >= $GTK_REQUIRED glib AC_SUBST(CLOCK_CFLAGS) AC_SUBST(CLOCK_LIBS) +# Check for Evolution Data Server support for calendar integration +AC_ARG_ENABLE([eds], + AS_HELP_STRING([--enable-eds], [Enable Evolution Data Server calendar integration @<:@default=auto@:>@]), + [enable_eds=$enableval], + [enable_eds=auto]) + +if test "x$enable_eds" != "xno"; then + PKG_CHECK_MODULES(EDS, [libecal-2.0 >= 3.33.2 libedataserver-1.2 >= 3.5.3], have_eds=yes, have_eds=no) + if test "x$have_eds" = "xyes"; then + AC_DEFINE(HAVE_EDS, 1, [Define if evolution-data-server is available]) + elif test "x$enable_eds" = "xyes"; then + AC_MSG_ERROR([EDS support requested but evolution-data-server development libraries not found]) + fi +else + have_eds=no +fi + +AM_CONDITIONAL(HAVE_EDS, test "x$have_eds" = "xyes") +AC_SUBST(EDS_CFLAGS) +AC_SUBST(EDS_LIBS) + # Make it possible to compile the applets in-process PANEL_INPROCESS_NONE= PANEL_INPROCESS_ALL= @@ -381,6 +402,7 @@ echo " Wayland support: ${have_wayland} X11 support: ${have_x11} XRandr support: ${have_randr} + Evolution Data Server support: ${have_eds} Build introspection support: ${found_introspection} Build gtk-doc documentation: ${enable_gtk_doc} |