summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-04-28 15:45:53 +0000
committerAdam Tkac <atkac@redhat.com>2010-04-28 15:45:53 +0000
commitdf7997021e0f7ad99efa7f015b5c34f289538cfb (patch)
treede0a977c008c21cd734d86938501322a03c86e14 /configure.ac
parent64add650aa34a7e9f335a32994575036bb0e77a5 (diff)
downloadtigervnc-df7997021e0f7ad99efa7f015b5c34f289538cfb.tar.gz
tigervnc-df7997021e0f7ad99efa7f015b5c34f289538cfb.zip
[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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bcd0b2d6..31779633 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,12 +75,15 @@ AC_ARG_ENABLE([gnutls],
[enable_gnutls="$enableval"], [enable_gnutls=yes])
GNUTLS_CFLAGS=
GNUTLS_LIBS=
-if test "$enable_gnutls" = yes; then
+if test "x$enable_gnutls" = xyes; then
PKG_CHECK_MODULES([gnutls], [gnutls >= 1.0.0],
[AC_DEFINE(HAVE_GNUTLS, 1, [GNUTLS available])], [])
fi
AC_SUBST([GNUTLS_CFLAGS], ["$gnutls_CFLAGS"])
AC_SUBST([GNUTLS_LIBS], ["$gnutls_LIBS"])
+dnl If --enable-gnutls is passed and gnutls is not installed PKG_CHECK_MODULES
+dnl check above fails so it's safe to assume enable_gnutls == HAVE_GNUTLS
+AM_CONDITIONAL([HAVE_GNUTLS], [ test "x$enable_gnutls" = xyes ])
VNCCONFIG_DIR='vncconfig'
AC_ARG_ENABLE([vncconfig],