diff options
author | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:10:53 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-04-23 14:10:53 +0000 |
commit | 29da2d89339689ef95da1bb1a3e538efd4cf788a (patch) | |
tree | b7080ce212425ccabdb3de138dfcb1a12f40a025 /configure.ac | |
parent | f324dc451b343721a0721bdb6ab89608b8792d75 (diff) | |
download | tigervnc-29da2d89339689ef95da1bb1a3e538efd4cf788a.tar.gz tigervnc-29da2d89339689ef95da1bb1a3e538efd4cf788a.zip |
[Development] Add detection for gnutls to configure.ac.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4043 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4bfb979e..bcd0b2d6 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,20 @@ fi AC_PATH_XTRA +dnl Check gnutls availability +AC_ARG_ENABLE([gnutls], + AS_HELP_STRING([--enable-gnutls], + [build in GNUTLS based encryption support (default yes)]), + [enable_gnutls="$enableval"], [enable_gnutls=yes]) +GNUTLS_CFLAGS= +GNUTLS_LIBS= +if test "$enable_gnutls" = yes; 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"]) + VNCCONFIG_DIR='vncconfig' AC_ARG_ENABLE([vncconfig], AS_HELP_STRING([--enable-vncconfig], |