]> source.dussan.org Git - tigervnc.git/commitdiff
Make it possible to compile things with current upstream mingw. You'll lose
authorPierre Ossman <ossman@cendio.se>
Wed, 23 Dec 2009 09:51:37 +0000 (09:51 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 23 Dec 2009 09:51:37 +0000 (09:51 +0000)
WinVNC but it is now possible to compile vncviewer at least.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3934 3789f03b-4d11-0410-bbf8-ca57d06f2519

configure.ac
win/Makefile.am
win/rfb_win32/Makefile.am

index 3ba8a1cb6cc9346b98ebe3cb565289e10d7ee3e8..19a6d392aaa7cb548befc81e6cfa7fe86d062af6 100644 (file)
@@ -143,6 +143,13 @@ AC_CHECK_TYPES([socklen_t], [], [], [[#include <sys/socket.h>]])
 
 AC_CHECK_HEADERS([sys/select.h])
 
+# Needed for WinVNC, but not part of mingw yet
+AC_CHECK_DECLS([CLSID_ActiveDesktop], [BUILD_WINVNC=yes], [],
+              [[#include <windows.h>
+                #include <shlguid.h>
+                ]])
+AM_CONDITIONAL([BUILD_WINVNC], [ test "x$BUILD_WINVNC" = xyes ])
+
 AC_OUTPUT([
 Makefile
 common/Makefile
index 4aa1cdebb5131675bc5d042e071fd705cca00d94..7f2d96cc928c53a8e729630e9ae50354fbde93ab 100644 (file)
@@ -1,3 +1,7 @@
-SUBDIRS = rfb_win32 vncviewer vncconfig winvnc
+SUBDIRS = rfb_win32 vncviewer
+
+if BUILD_WINVNC
+SUBDIRS += vncconfig winvnc
+endif
 
 EXTRA_DIST = logmessages/messages.h
index 3d8545a93ab8383a308eaa874ef8edef4ace6c76..74f74e8e7b95a2ab94baf007dc2d545eab551433 100644 (file)
@@ -4,7 +4,6 @@ HDRS = \
   AboutDialog.h \
   BitmapInfo.h \
   CKeyboard.h \
-  CleanDesktop.h \
   Clipboard.h \
   CompatibleBitmap.h \
   ComputerName.h \
@@ -58,7 +57,6 @@ HDRS = \
 librfb_win32_la_SOURCES = $(HDRS) \
   AboutDialog.cxx \
   CKeyboard.cxx \
-  CleanDesktop.cxx \
   Clipboard.cxx \
   CPointer.cxx \
   CurrentUser.cxx \
@@ -97,5 +95,12 @@ librfb_win32_la_SOURCES = $(HDRS) \
   WMShatter.cxx \
   WMWindowCopyRect.cxx
 
+# These files rely on features not yet in upstream mingw
+if BUILD_WINVNC
+librfb_win32_la_SOURCES += \
+  CleanDesktop.h \
+  CleanDesktop.cxx
+endif
+
 librfb_win32_la_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win
 librfb_win32_la_LIBADD =