diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 7a184cd4..fff77a23 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2643,7 +2643,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
2643 | int af=AF_INET6; | 2643 | int af=AF_INET6; |
2644 | int pf=PF_INET6; | 2644 | int pf=PF_INET6; |
2645 | struct sockaddr_in6 sa; | 2645 | struct sockaddr_in6 sa; |
2646 | printf("%d %d %p\n", af, pf, &sa); | 2646 | printf("%d %d %p\n", af, pf, (void*) &sa); |
2647 | ]])],[ | 2647 | ]])],[ |
2648 | have_inet6=yes; | 2648 | have_inet6=yes; |
2649 | AC_DEFINE([HAVE_INET6], [1], [Provides IPv6 headers]) | 2649 | AC_DEFINE([HAVE_INET6], [1], [Provides IPv6 headers]) |
@@ -3121,15 +3121,20 @@ AC_ARG_WITH([[gnutls]], | |||
3121 | LDFLAGS="${LDFLAGS_ac} -L$with_gnutls/lib ${user_LDFLAGS}" | 3121 | LDFLAGS="${LDFLAGS_ac} -L$with_gnutls/lib ${user_LDFLAGS}" |
3122 | CPPFLAGS="${CPPFLAGS_ac} -I$with_gnutls/include ${user_CPPFLAGS}" | 3122 | CPPFLAGS="${CPPFLAGS_ac} -I$with_gnutls/include ${user_CPPFLAGS}" |
3123 | have_gnutls_pkgcfg=no | 3123 | have_gnutls_pkgcfg=no |
3124 | AC_CHECK_HEADERS([gnutls/gnutls.h], | 3124 | MHD_CHECK_FUNC([gnutls_check_version],[[#include <gnutls/gnutls.h>]], |
3125 | [AC_CHECK_LIB([gnutls], [gnutls_priority_set], | 3125 | [ |
3126 | [ | 3126 | if(!gnutls_check_version("2.0.0")) |
3127 | GNUTLS_CPPFLAGS="-I$with_gnutls/include" | 3127 | return 3; |
3128 | GNUTLS_LDFLAGS="-L$with_gnutls/lib" | 3128 | ], |
3129 | GNUTLS_LIBS="-lgnutls" | 3129 | [ |
3130 | have_gnutls=yes | 3130 | GNUTLS_CPPFLAGS="-I$with_gnutls/include" |
3131 | ])], [], [AC_INCLUDES_DEFAULT]) | 3131 | GNUTLS_LDFLAGS="-L$with_gnutls/lib" |
3132 | AS_IF([test "x$have_gnutls" != "xyes"], [AC_MSG_ERROR([can't find usable libgnutls at specified prefix $with_gnutls])]) | 3132 | GNUTLS_LIBS="-lgnutls" |
3133 | have_gnutls=yes | ||
3134 | ], | ||
3135 | [AC_MSG_ERROR([can't find usable libgnutls at specified prefix $with_gnutls])], | ||
3136 | [-lgnutls] | ||
3137 | ) | ||
3133 | CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" | 3138 | CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
3134 | CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" | 3139 | CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
3135 | LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" | 3140 | LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |