Static Xvnc build should now work with later versions of libgnutls that depend on libtasn1


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4184 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/configure.ac b/configure.ac
index 811342a..1909e33 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,8 @@
 GNUTLS_LIBS=
 if test "x$enable_gnutls" = xyes; then
 	if test "x$GNUTLS_LDFLAGS" = "x"; then
-		GNUTLS_LDFLAGS='-lgnutls -lgcrypt -lgpg-error'
+		GNUTLS_LDFLAGS='-lgnutls -lgcrypt -lgpg-error -lz'
+		AC_CHECK_LIB([tasn1], [asn1_create_element], [GNUTLS_LDFLAGS="${GNUTLS_LDFLAGS} -ltasn1"])
 	fi
 	SAVE_LIBS=${LIBS}
 	LIBS="${LIBS} ${GNUTLS_LDFLAGS}"