[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 16/21: configure: fixed more compiler warnings in log
From: |
gnunet |
Subject: |
[libmicrohttpd] 16/21: configure: fixed more compiler warnings in log |
Date: |
Tue, 14 Mar 2023 19:37:01 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 059054995cbd2dbae9a7c54d128f04b583f5c228
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Mar 9 20:28:36 2023 +0300
configure: fixed more compiler warnings in log
---
configure.ac | 25 +++++++++++++++----------
1 file 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([[
int af=AF_INET6;
int pf=PF_INET6;
struct sockaddr_in6 sa;
-printf("%d %d %p\n", af, pf, &sa);
+printf("%d %d %p\n", af, pf, (void*) &sa);
]])],[
have_inet6=yes;
AC_DEFINE([HAVE_INET6], [1], [Provides IPv6 headers])
@@ -3121,15 +3121,20 @@ AC_ARG_WITH([[gnutls]],
LDFLAGS="${LDFLAGS_ac} -L$with_gnutls/lib ${user_LDFLAGS}"
CPPFLAGS="${CPPFLAGS_ac} -I$with_gnutls/include ${user_CPPFLAGS}"
have_gnutls_pkgcfg=no
- AC_CHECK_HEADERS([gnutls/gnutls.h],
- [AC_CHECK_LIB([gnutls], [gnutls_priority_set],
- [
- GNUTLS_CPPFLAGS="-I$with_gnutls/include"
- GNUTLS_LDFLAGS="-L$with_gnutls/lib"
- GNUTLS_LIBS="-lgnutls"
- have_gnutls=yes
- ])], [], [AC_INCLUDES_DEFAULT])
- AS_IF([test "x$have_gnutls" != "xyes"], [AC_MSG_ERROR([can't find
usable libgnutls at specified prefix $with_gnutls])])
+ MHD_CHECK_FUNC([gnutls_check_version],[[#include <gnutls/gnutls.h>]],
+ [
+ if(!gnutls_check_version("2.0.0"))
+ return 3;
+ ],
+ [
+ GNUTLS_CPPFLAGS="-I$with_gnutls/include"
+ GNUTLS_LDFLAGS="-L$with_gnutls/lib"
+ GNUTLS_LIBS="-lgnutls"
+ have_gnutls=yes
+ ],
+ [AC_MSG_ERROR([can't find usable libgnutls at specified prefix
$with_gnutls])],
+ [-lgnutls]
+ )
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}"
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}"
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 09/21: configure: fixed some compiler warnings for checks, (continued)
- [libmicrohttpd] 09/21: configure: fixed some compiler warnings for checks, gnunet, 2023/03/14
- [libmicrohttpd] 10/21: mhd_check_func.m4: added check for function declaration, gnunet, 2023/03/14
- [libmicrohttpd] 11/21: libcurl.m4: updated to the latest version, gnunet, 2023/03/14
- [libmicrohttpd] 13/21: mhd_find_lib.m4: added new autoconf macro, gnunet, 2023/03/14
- [libmicrohttpd] 12/21: libcurl.m4: patched to fix compiler warning, gnunet, 2023/03/14
- [libmicrohttpd] 18/21: configure: cosmetics, gnunet, 2023/03/14
- [libmicrohttpd] 14/21: configure: fixed checking for system libs, fixed .pc file, gnunet, 2023/03/14
- [libmicrohttpd] 15/21: configure: removed check for unused lib and function, gnunet, 2023/03/14
- [libmicrohttpd] 02/21: tsearch.{h,c}: updated to the latest fixed version, gnunet, 2023/03/14
- [libmicrohttpd] 04/21: mhd_check_link_run.m4: fixed typo in comment, gnunet, 2023/03/14
- [libmicrohttpd] 16/21: configure: fixed more compiler warnings in log,
gnunet <=
- [libmicrohttpd] 17/21: configure: fixed potential compiler warnings, added usage of cache vars, gnunet, 2023/03/14
- [libmicrohttpd] 19/21: configure: improved compatibility with POSIX, gnunet, 2023/03/14
- [libmicrohttpd] 20/21: configure: cosmetics: deleted extra spaces, gnunet, 2023/03/14
- [libmicrohttpd] 21/21: mhd_check_func_gettimeofday.m4: added new autoconf macro, gnunet, 2023/03/14