From f60b04f24e0bf71e45ed1dc6d9dc7945681a0900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= Date: Mon, 29 Mar 2010 12:40:00 +0200 Subject: [win32] Some buildability tweaks for Windows SENS module 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. --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 33ced71478..0cb40c00eb 100644 --- a/configure.ac +++ b/configure.ac @@ -1149,11 +1149,15 @@ 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 - AC_CHECK_HEADERS([eventsys.h sensevts.h rpc.h],[ enable_sens="yes" ],[ enable_sens="no" ]) -fi if test "$enable_sens" = yes; then SENS_LIBS="-lole32 -loleaut32 -luuid -lrpcrt4" AC_SUBST(HAVE_SENS) -- cgit v1.2.3