Basic support for building Windows vncviewer using MinGW. This patch
includes non-intrusive changes, more tweaks will follow. Details:

* Defining WINVER and _WIN32_IE in both common and win modules. 

* Need to build CFTMsgWriter and CFTMsgReader. 

* Added configure script and Makefiles. 



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3326 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/configure.ac b/common/configure.ac
index 25aa5f0..d590e05 100644
--- a/common/configure.ac
+++ b/common/configure.ac
@@ -25,6 +25,12 @@
   ;;
 esac
 
+case "$host_os" in
+    mingw*)
+        CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
+        ;;
+esac
+
 dnl FIXME: Remove duplication between this script and ../unix/configure.in
 if test "$GCC" = yes; then
   CFLAGS="$CFLAGS -Wall"
diff --git a/common/rfb/Makefile.am b/common/rfb/Makefile.am
index 29ffc95..25df000 100644
--- a/common/rfb/Makefile.am
+++ b/common/rfb/Makefile.am
@@ -26,7 +26,7 @@
 	VNCServer.h VNCServerST.h zrleDecode.h ZRLEDecoder.h zrleEncode.h \
 	ZRLEEncoder.h
 
-librfb_la_SOURCES = $(HDRS) Blacklist.cxx CConnection.cxx CMsgHandler.cxx \
+librfb_la_SOURCES = $(HDRS) Blacklist.cxx CConnection.cxx CFTMsgReader.cxx CFTMsgWriter.cxx CMsgHandler.cxx \
 	CMsgReader.cxx CMsgReaderV3.cxx CMsgWriter.cxx CMsgWriterV3.cxx \
 	CSecurityVncAuth.cxx CapsContainer.cxx CapsList.cxx \
 	ComparingUpdateTracker.cxx Configuration.cxx ConnParams.cxx \
@@ -46,7 +46,7 @@
 	VNCServerST.cxx ZRLEEncoder.cxx ZRLEDecoder.cxx encodings.cxx \
 	secTypes.cxx util.cxx
 
-librfb_la_CPPFLAGS = -I$(top_srcdir)
+librfb_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/../win
 librfb_la_LIBADD =
 
 if IRIX_COMPRESS