diff options
-rw-r--r-- | configure.ac | 30 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 7 |
2 files changed, 36 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 982e52a7..53657d89 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -57,6 +57,7 @@ AS_IF([test `uname -s` = "OS/390"], | |||
57 | # Checks for programs. | 57 | # Checks for programs. |
58 | AC_PROG_AWK | 58 | AC_PROG_AWK |
59 | AC_PROG_GREP | 59 | AC_PROG_GREP |
60 | AC_PROG_FGREP | ||
60 | AC_PROG_INSTALL | 61 | AC_PROG_INSTALL |
61 | AC_PROG_LN_S | 62 | AC_PROG_LN_S |
62 | AC_PROG_MAKE_SET | 63 | AC_PROG_MAKE_SET |
@@ -2597,6 +2598,35 @@ AC_SUBST([GNUTLS_CFLAGS]) | |||
2597 | AC_SUBST([GNUTLS_LDFLAGS]) | 2598 | AC_SUBST([GNUTLS_LDFLAGS]) |
2598 | AC_SUBST([GNUTLS_LIBS]) | 2599 | AC_SUBST([GNUTLS_LIBS]) |
2599 | 2600 | ||
2601 | AS_VAR_IF([have_gnutls], ["yes"], | ||
2602 | [ | ||
2603 | AC_CACHE_CHECK([for GnuTLS quirks], [mhd_cv_gnutls_mthread_broken], | ||
2604 | [ | ||
2605 | mhd_cv_gnutls_mthread_broken="no" | ||
2606 | AS_IF([test -r /etc/redhat-release], | ||
2607 | [ | ||
2608 | AS_IF([$FGREP ' release 6.' /etc/redhat-release >/dev/null || $FGREP '(Santiago)' /etc/redhat-release >/dev/null], | ||
2609 | [mhd_cv_gnutls_mthread_broken="found"], | ||
2610 | ) | ||
2611 | ] | ||
2612 | ) | ||
2613 | AS_VAR_IF([mhd_cv_gnutls_mthread_broken], ["no"], | ||
2614 | [ | ||
2615 | AS_IF([command -v rpm >/dev/null], | ||
2616 | [ | ||
2617 | AS_IF([test r`rpm -E '%{rhel} 2>/dev/null'` = "r6"], | ||
2618 | [mhd_cv_gnutls_mthread_broken="found"], | ||
2619 | ) | ||
2620 | ] | ||
2621 | ) | ||
2622 | ] | ||
2623 | ) | ||
2624 | ] | ||
2625 | ) | ||
2626 | ] | ||
2627 | ) | ||
2628 | AM_CONDITIONAL([HAVE_GNUTLS_MTHREAD_BROKEN], [[test "x${mhd_cv_gnutls_mthread_broken}" = "xfound"]]) | ||
2629 | |||
2600 | # optional: HTTP Basic Auth support. Enabled by default | 2630 | # optional: HTTP Basic Auth support. Enabled by default |
2601 | AC_MSG_CHECKING([[whether to support HTTP basic authentication]]) | 2631 | AC_MSG_CHECKING([[whether to support HTTP basic authentication]]) |
2602 | AC_ARG_ENABLE([bauth], | 2632 | AC_ARG_ENABLE([bauth], |
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am index 47256c58..6c2134dc 100644 --- a/src/testcurl/https/Makefile.am +++ b/src/testcurl/https/Makefile.am | |||
@@ -36,13 +36,18 @@ THREAD_ONLY_TESTS = \ | |||
36 | $(HTTPS_PARALLEL_TESTS) \ | 36 | $(HTTPS_PARALLEL_TESTS) \ |
37 | $(TEST_HTTPS_SNI) \ | 37 | $(TEST_HTTPS_SNI) \ |
38 | test_https_session_info \ | 38 | test_https_session_info \ |
39 | test_https_time_out \ | ||
40 | test_https_multi_daemon \ | 39 | test_https_multi_daemon \ |
41 | test_https_get \ | 40 | test_https_get \ |
42 | test_empty_response \ | 41 | test_empty_response \ |
43 | test_https_get_iovec \ | 42 | test_https_get_iovec \ |
44 | $(EMPTY_ITEM) | 43 | $(EMPTY_ITEM) |
45 | 44 | ||
45 | if !HAVE_GNUTLS_MTHREAD_BROKEN | ||
46 | THREAD_ONLY_TESTS += \ | ||
47 | test_https_time_out \ | ||
48 | $(EMPTY_ITEM) | ||
49 | endif | ||
50 | |||
46 | check_PROGRAMS = \ | 51 | check_PROGRAMS = \ |
47 | test_https_get_select | 52 | test_https_get_select |
48 | 53 | ||