[Bugfix] Compile VeNCrypt extension only when gnutls is enabled and available.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4049 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx
index 926edaa..860e440 100644
--- a/common/rfb/SSecurityVeNCrypt.cxx
+++ b/common/rfb/SSecurityVeNCrypt.cxx
@@ -26,6 +26,10 @@
 #include <config.h>

 #endif

 

+#ifndef HAVE_GNUTLS

+#error "This source should not be compiled without HAVE_GNUTLS defined"

+#endif

+

 #include <rfb/SSecurityVeNCrypt.h>

 #include <rfb/Exception.h>

 #include <rfb/LogWriter.h>