- add libz to librdr.la to avoid tight/system zlib checking in xserver configure
- add libjpeg to librfb.la to avoid tight/system libjpeg checking in xserver configure


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1.5-xserver@2481 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rdr/Makefile.am b/common/rdr/Makefile.am
index 0e88896..b9e7eb7 100644
--- a/common/rdr/Makefile.am
+++ b/common/rdr/Makefile.am
@@ -5,3 +5,5 @@
 	HexOutStream.cxx
 
 librdr_la_CPPFLAGS = -I$(top_srcdir) @ZLIB_INCLUDE@
+
+librdr_la_LIBADD = @ZLIB_LIB@
diff --git a/common/rfb/Makefile.am b/common/rfb/Makefile.am
index 8226fa6..2f9e72e 100644
--- a/common/rfb/Makefile.am
+++ b/common/rfb/Makefile.am
@@ -29,3 +29,5 @@
 
 librfb_la_CPPFLAGS = -I$(top_srcdir) @JPEG_INCLUDE@ @VSNPRINTF_DEFINE@ \
 	@STRCASECMP_DEFINE@ @STRNCASECMP_DEFINE@
+
+librfb_la_LIBADD = @JPEG_LIB@