Fix VPATH and out-of-tree builds


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3984 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/Makefile.am b/unix/x0vncserver/Makefile.am
index 7959304..c947257 100644
--- a/unix/x0vncserver/Makefile.am
+++ b/unix/x0vncserver/Makefile.am
@@ -15,10 +15,10 @@
 	-I$(top_srcdir)/unix @XTEST_DEFINE@ @READDISPLAY_DEFINE@ \
 	@MITSHM_DEFINE@ @X_CFLAGS@
 
-x0vncserver_LDADD = $(top_srcdir)/common/rfb/librfb.la \
-	$(top_srcdir)/common/network/libnetwork.la \
-	$(top_srcdir)/common/rdr/librdr.la \
-	$(top_srcdir)/unix/tx/libtx.la @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \
+x0vncserver_LDADD = $(top_builddir)/common/rfb/librfb.la \
+	$(top_builddir)/common/network/libnetwork.la \
+	$(top_builddir)/common/rdr/librdr.la \
+	$(top_builddir)/unix/tx/libtx.la @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \
 	@XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@
 
 EXTRA_DIST = x0vncserver.man