[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/05: configure.ac: skip large GnuTLS and
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/05: configure.ac: skip large GnuTLS and gcrypt tests if HTTPS is disabled |
Date: |
Tue, 28 Feb 2017 17:52:21 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 5cdd75f23ff9191b20107e0c56d3b0678683ac5d
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Feb 28 17:15:44 2017 +0300
configure.ac: skip large GnuTLS and gcrypt tests if HTTPS is disabled
---
configure.ac | 37 ++++++++++++++++++++++---------------
1 file changed, 22 insertions(+), 15 deletions(-)
diff --git a/configure.ac b/configure.ac
index d1ce5d42..5fbfb83b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1088,6 +1088,22 @@ AC_CHECK_PROG([have_socat],[socat], [yes], [no])
AM_CONDITIONAL([HAVE_ZZUF], [test "x$have_zzuf" = "xyes"])
AM_CONDITIONAL([HAVE_SOCAT], [test "x$have_socat" = "xyes"])
+GNUTLS_CPPFLAGS=""
+GNUTLS_LDFLAGS=""
+have_gnutls=no
+have_gnutls_sni=no
+have_gcrypt=no
+
+# optional: HTTPS support. Enabled by default
+AC_ARG_ENABLE([https],
+ [AS_HELP_STRING([--enable-https],
+ [enable HTTPS support (yes, no, auto)[auto]])],
+ [enable_https=${enableval}])
+if test "x$enable_https" != "xno"
+then
+#
+# Next block is large unindented block
+#
# libgcrypt linkage: required for HTTPS support
AM_PATH_LIBGCRYPT([1.2.2], [have_gcrypt=yes], [have_gcrypt=no])
@@ -1104,10 +1120,6 @@ then
fi
# gnutls
-GNUTLS_CPPFLAGS=""
-GNUTLS_LDFLAGS=""
-have_gnutls=no
-have_gnutls_sni=no
have_gnutls_pkgcfg=no
AC_MSG_CHECKING([[how to find GnuTLS library]])
AC_ARG_WITH([[gnutls]],
@@ -1209,22 +1221,14 @@ AS_IF([test "x$with_gnutls" != "xno" && test
"x$have_gnutls" != "xyes"],
AS_IF([test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes"],
[AC_MSG_ERROR([[can't find usable libgnutls]])])
-AM_CONDITIONAL(HAVE_GNUTLS, test "x$have_gnutls" = "xyes")
-AM_CONDITIONAL([HAVE_GNUTLS_SNI], [test "x$have_gnutls_sni" = "xyes"])
-
AC_SUBST([GNUTLS_CPPFLAGS])
AC_SUBST([GNUTLS_CFLAGS])
AC_SUBST([GNUTLS_LDFLAGS])
AC_SUBST([GNUTLS_LIBS])
-# optional: HTTPS support. Enabled by default
-AC_MSG_CHECKING(whether to support HTTPS)
-AC_ARG_ENABLE([https],
- [AS_HELP_STRING([--enable-https],
- [enable HTTPS support (yes, no, auto)[auto]])],
- [enable_https=${enableval}])
-if test "x$enable_https" != "xno"
-then
+#
+# End of large unindented block
+#
AS_IF([test "x$have_gnutls" = "xyes" && test "x$have_gcrypt" = "xyes"], [
AC_DEFINE([[HTTPS_SUPPORT]],[[1]],[Define to 1 if libmicrohttpd is
compiled with HTTPS support.])
enable_https=yes
@@ -1253,8 +1257,11 @@ then
else
MSG_HTTPS="no (disabled)"
fi
+AC_MSG_CHECKING(whether to support HTTPS)
AC_MSG_RESULT([$MSG_HTTPS])
+AM_CONDITIONAL([HAVE_GNUTLS], [[test "x$have_gnutls" = "xyes"]])
+AM_CONDITIONAL([HAVE_GNUTLS_SNI], [[test "x$have_gnutls_sni" = "xyes"]])
AM_CONDITIONAL([ENABLE_HTTPS], [test "x$enable_https" = "xyes"])
# optional: HTTP Basic Auth support. Enabled by default
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (a44c8f33 -> 78295468), gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 03/05: MHD_get_timeout(): fixed return of latest timeout instead of earliest., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 04/05: MHD_get_timeout(): one more 'int' -> 'bool' replacement., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_timeout(): fixed incorrect timeout for TLS connections. If connection is in "MHD_EVENT_LOOP_INFO_WRITE" mode, any pending incoming data should not result in zero timeout. Already handled properly by 'data_already_pending'. Note: old check was incorrect even for "MHD_EVENT_LOOP_INFO_READ" connections as only first connection in "normal timeout" list was checked., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 05/05: Walk double-linked lists from 'tail' to 'head'. Walking connection as "First in - First Served" gives more uniform processing time., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 01/05: configure.ac: skip large GnuTLS and gcrypt tests if HTTPS is disabled,
gnunet <=