From 7cb69c4d9e0a02fa07735004563612566edb8d14 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Fri, 20 Sep 2013 22:40:36 +0200 Subject: [PATCH] Add --disable-ssl configure option --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index ed37b6bb..ed8df1bf 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,7 @@ ARIA2_ARG_WITHOUT([libz]) ARIA2_ARG_WITH([tcmalloc]) ARIA2_ARG_WITH([jemalloc]) +ARIA2_ARG_DISABLE([ssl]) ARIA2_ARG_DISABLE([bittorrent]) ARIA2_ARG_DISABLE([metalink]) ARIA2_ARG_DISABLE([epoll]) @@ -311,6 +312,15 @@ case "$host" in esac +if test "x$enable_ssl" != "xyes"; then + with_appletls=no + with_wintls=no + with_libnettle=no + with_libgcrypt=no + with_gnutls=no + with_openssl=no +fi + if test "x$with_appletls" = "xyes"; then AC_MSG_CHECKING([whether to enable Mac OS X native SSL/TLS]) if test "x$have_osx" = "xyes"; then @@ -468,6 +478,7 @@ if test "x$have_appletls" = "xyes" || test "x$have_libgnutls" = "xyes" || test " AC_DEFINE([ENABLE_SSL], [1], [Define to 1 if ssl support is enabled.]) AM_CONDITIONAL([ENABLE_SSL], true) else + have_ssl="no" AM_CONDITIONAL([ENABLE_SSL], false) fi