config_query_option TURBOVNC_OPTS "Build TurboVNC server components?" y \
                                  "-DTVNC_BUILDSERVER=ON" \
                                  "-DTVNC_BUILDSERVER=OFF" &&

if list_find "${TURBOVNC_OPTS}" "-DTVNC_BUILDSERVER=ON"; then
  config_query_list TURBOVNC_TLS "Which TLS implementation to use?" \
                                 SSL \
                                 gnutls \
                                 none &&

  config_query_option TURBOVNC_OPTS "Build the TurboVNC Server against the system-supplied versions of zlib, bzip2, and FreeType rather than the in-tree versions?" n \
                                    "-DTVNC_SYSTEMLIBS=ON" \
                                    "-DTVNC_SYSTEMLIBS=OFF" &&

  config_query_option TURBOVNC_OPTS "Build the TurboVNC Server against the system-supplied X11 and OpenGL headers and libraries rather than the in-tree versions?" n \
                                    "-DTVNC_SYSTEMX11=ON" \
                                    "-DTVNC_SYSTEMX11=OFF"
fi
