diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-16 11:29:45 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-16 11:29:45 +0300 |
commit | feb04e725cc6a87f0beb3abebb44789830a86a6b (patch) | |
tree | 11a2e993b4e8e053d8d16d3061512d2050470bcb | |
parent | 21f90d552f5781326f3cb898dc2c56d652b73e14 (diff) | |
download | libmicrohttpd-feb04e725cc6a87f0beb3abebb44789830a86a6b.tar.gz libmicrohttpd-feb04e725cc6a87f0beb3abebb44789830a86a6b.zip |
Additional fix for old gnutls versions
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | src/microhttpd/Makefile.am | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 68f8f0d3..e9a15565 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2645,9 +2645,18 @@ AS_VAR_IF([have_gnutls], ["yes"], | |||
2645 | ) | 2645 | ) |
2646 | ] | 2646 | ] |
2647 | ) | 2647 | ) |
2648 | AC_CACHE_CHECK([for gnutls-cli binary], [mhd_cv_gnutls_cli], | ||
2649 | [ | ||
2650 | mhd_cv_gnutls_cli="no" | ||
2651 | AS_IF([command -v gnutls-cli >/dev/null 2>&1], | ||
2652 | [AS_IF([AC_RUN_LOG([gnutls-cli --version >&2])], [mhd_cv_gnutls_cli="yes"])] | ||
2653 | ) | ||
2654 | ] | ||
2655 | ) | ||
2648 | ] | 2656 | ] |
2649 | ) | 2657 | ) |
2650 | AM_CONDITIONAL([HAVE_GNUTLS_MTHREAD_BROKEN], [[test "x${mhd_cv_gnutls_mthread_broken}" = "xfound"]]) | 2658 | AM_CONDITIONAL([HAVE_GNUTLS_MTHREAD_BROKEN], [[test "x${mhd_cv_gnutls_mthread_broken}" = "xfound"]]) |
2659 | AM_CONDITIONAL([USE_UPGRADE_TLS_TESTS], [[test "x${mhd_cv_gnutls_mthread_broken}" = "xno" || test "x${mhd_cv_gnutls_cli}" == "xyes"]]) | ||
2651 | 2660 | ||
2652 | # optional: HTTP Basic Auth support. Enabled by default | 2661 | # optional: HTTP Basic Auth support. Enabled by default |
2653 | AC_MSG_CHECKING([[whether to support HTTP basic authentication]]) | 2662 | AC_MSG_CHECKING([[whether to support HTTP basic authentication]]) |
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index 563a8c28..79abda1d 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -214,11 +214,10 @@ if USE_W32_THREADS | |||
214 | check_PROGRAMS += test_upgrade test_upgrade_large | 214 | check_PROGRAMS += test_upgrade test_upgrade_large |
215 | endif | 215 | endif |
216 | if ENABLE_HTTPS | 216 | if ENABLE_HTTPS |
217 | if USE_POSIX_THREADS | 217 | if USE_THREADS |
218 | if USE_UPGRADE_TLS_TESTS | ||
218 | check_PROGRAMS += test_upgrade_tls test_upgrade_large_tls | 219 | check_PROGRAMS += test_upgrade_tls test_upgrade_large_tls |
219 | endif | 220 | endif |
220 | if USE_W32_THREADS | ||
221 | check_PROGRAMS += test_upgrade_tls test_upgrade_large_tls | ||
222 | endif | 221 | endif |
223 | endif | 222 | endif |
224 | endif | 223 | endif |