summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2015-01-20 16:49:49 +0100
committerChristian Persch <chpe@gnome.org>2015-01-20 16:49:49 +0100
commit222394fecb368e4f56116c31d870d5888700d6d8 (patch)
tree516d0d0d4a1daeb67918169b2d99e073d3abd730
parentd07ea7c64cf7c13b639684e7277d97523e29f2a0 (diff)
downloadvte-222394fecb368e4f56116c31d870d5888700d6d8.tar.gz
build: Add --without-gnutls configure switch
Not yet wired up in the code. https://bugzilla.gnome.org/show_bug.cgi?id=743231
-rw-r--r--configure.ac20
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 12d1de5d..dda8cdaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,23 @@ AC_SUBST([VTE_LDFLAGS])
GLIB_REQUIRED=2.40.0
GIO_REQUIRED=2.40.0
PANGO_REQUIRED=1.22.0
+GNUTLS_REQUIRED=3.2.0
+
+AC_MSG_CHECKING([whether gnutls support is requested])
+AC_ARG_WITH([gnutls],
+ [AS_HELP_STRING([--without-gnutls],[Disable gnutls support])],
+ [],[with_gnutls=yes])
+AC_MSG_RESULT([$with_gnutls])
+
+GNUTLS_PKGS=
+if test "$with_gnutls" = "yes"; then
+ GNUTLS_PKGS="gnutls >= $GNUTLS_REQUIRED"
+
+ AC_DEFINE([WITH_GNUTLS],[1],[Define to 1 to enable gnutls support])
+fi
+
+AM_CONDITIONAL([WITH_GNUTLS],[test "$with_gnutls" = "yes"])
+
AC_DEFINE(GDK_MULTIHEAD_SAFE,1,[Force use of GDK multihead-safe APIs.])
AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
@@ -208,7 +225,7 @@ AC_CHECK_FUNCS([ceil floor round])
# Search for the required modules.
-VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0 zlib gnutls >= 3.2.0"
+VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0 zlib $GNUTLS_PKGS"
PKG_CHECK_MODULES([VTE],[$VTE_PKGS])
AC_SUBST([VTE_PKGS])
@@ -375,6 +392,7 @@ cat <<EOF | tee -a config.log
## -------------- ##
Configuration for libvte $VERSION for gtk+-$GTK_API_VERSION
+ GNUTLS: $with_gnutls
Installing Glade catalogue: $enable_glade_catalogue
Debugging: $enable_debug
Introspection: $enable_introspection