From b40b7e7bf66b7cbca2ad20aa840092fa00a1724d Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Sat, 23 Jan 2021 21:57:41 -0500 Subject: [PATCH 1/2] GUACAMOLE-1133: Add build check for headers when libvncserver includes gcrypt support. --- configure.ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 18c641ce..09985bbd 100644 --- a/configure.ac +++ b/configure.ac @@ -519,6 +519,27 @@ then AC_CHECK_LIB([vncclient], [rfbInitClient], [VNC_LIBS="$VNC_LIBS -lvncclient"], [have_libvncserver=no]) fi +# +# Underlying libvncserver usage of gcrypt +# + +if test "x${have_libvncserver}" = "xyes" +then + + # Whether libvncserver was built against libgcrypt + AC_CHECK_DECL([LIBVNCSERVER_WITH_CLIENT_GCRYPT], + [AC_CHECK_HEADER(gcrypt.h,, + [AC_MSG_WARN([ + -------------------------------------------- + libvncserver appears to be built against + libgcrypt, but the libgcrypt headers + could not be found. VNC will be disabled. + --------------------------------------------]) + have_libvncserver=no])],, + [[#include ]]) + +fi + AM_CONDITIONAL([ENABLE_VNC], [test "x${have_libvncserver}" = "xyes"]) AC_SUBST(VNC_LIBS) From 5cee64514fb094d323c6734c47b245f523c0ff23 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Sat, 23 Jan 2021 22:16:58 -0500 Subject: [PATCH 2/2] GUACAMOLE-1133: Add gcrypt build dependency for Docker image. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 14f67695..69b4511d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,7 @@ ARG BUILD_DEPENDENCIES=" \ freerdp2-dev \ gcc \ libcairo2-dev \ + libgcrypt-dev \ libjpeg62-turbo-dev \ libossp-uuid-dev \ libpango1.0-dev \