aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorFridrich Strba <fridrich.strba@bluewin.ch>2010-03-24 01:54:37 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-04-08 05:44:16 +0800
commitd358da9481a125e7eefa80cde88a6bed0c1b7fc3 (patch)
tree845e49c13ded6fcc88dbad9cbd387ff8b4ebd413 /configure.ac
parentcd7fadfcdbbf983dbee379d55bd8a6e44351e8fa (diff)
downloadgsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar.gz
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar.bz2
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar.lz
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar.xz
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.tar.zst
gsoc2013-evolution-d358da9481a125e7eefa80cde88a6bed0c1b7fc3.zip
[win32] Implement network status detection
The implementation is done using System Event Notification Service by implementing ConnectionMade ConnectionMadeNoQOCInfo and ConnectionLost methods of ISensNetwork interface. Make the subscription to the network status notification receive the event only if the ownerof the subscription is logged on to the same computer as the publisher. This makes this module work on Windows Vista and Windows 7 with normal user account. Don't try to build Windows SENS when not building for Windows. Extract the relevant COM structs and typedefs from mingw-w64 headers to allow to build the module with mingw.org toolchain and fix build breakages with Microsoft compilers.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac38
1 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3f3a2bbef7..882dd1d3a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1143,6 +1143,42 @@ fi
AM_CONDITIONAL([ENABLE_NETWORK_MANAGER], [test "$enable_nm" = yes])
dnl ******************************
+dnl Check for Windows SENS API
+dnl ******************************
+AC_ARG_ENABLE([sens],
+ [AS_HELP_STRING([--enable-sens],
+ [enable Windows SENS support (default=yes)])],
+ [enable_sens=$enableval],[enable_sens=yes])
+if test "x$os_win32" = xyes; then
+ if test "x$enable_sens" = xyes; then
+ AC_CHECK_HEADER([rpc.h],[ enable_sens="yes" ],[ enable_sens="no" ])
+ fi
+else
+ enable_sens="no"
+fi
+AC_MSG_CHECKING([if Windows SENS support is enabled])
+AC_MSG_RESULT([$enable_sens])
+if test "$enable_sens" = yes; then
+ SENS_LIBS="-lole32 -loleaut32 -luuid -lrpcrt4"
+ AC_CHECK_HEADER([eventsys.h],
+ [AC_DEFINE([HAVE_EVENTSYS_H], 1, [Have <eventsys.h>])],,
+ [[ #if HAVE_EVENTSYS_H
+ #include <eventsys.h>
+ #endif
+ ]])
+ AC_CHECK_HEADER([sensevts.h],
+ [AC_DEFINE([HAVE_SENSEVTS_H], 1, [Have <sensevts.h>])],,
+ [[ #if HAVE_SENSEVTS_H
+ #include <sensevts.h>
+ #endif
+ ]])
+ AC_SUBST(HAVE_SENS)
+ AC_SUBST(SENS_LIBS)
+fi
+
+AM_CONDITIONAL([ENABLE_WINDOWS_SENS], [test "$enable_sens" = yes])
+
+dnl ******************************
dnl Camel Flags
dnl ******************************
EVO_SET_COMPILE_FLAGS(CAMEL, camel-provider-1.2, $MANUAL_NSS_CFLAGS, $MOXILLA_NSS_CFLAGS)
@@ -1693,6 +1729,7 @@ modules/network-manager/Makefile
modules/plugin-lib/Makefile
modules/plugin-mono/Makefile
modules/plugin-python/Makefile
+modules/windows-sens/Makefile
plugins/Makefile
plugins/addressbook-file/Makefile
plugins/attachment-reminder/Makefile
@@ -1760,6 +1797,7 @@ fi
echo "
LDAP support: $msg_ldap
NetworkManager: $enable_nm
+ Windows SENS: $enable_sens
Pilot conduits: $msg_pilot
Libnotify: $HAVE_LIBNOTIFY
Kerberos 5: $msg_krb5