[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 04/05: configure: check for 'rand' and 'ran
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 04/05: configure: check for 'rand' and 'random' by MHD_CHECK_FUNC |
Date: |
Sun, 02 Jun 2019 18:20:49 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a58870f63a661211d45b393779ef3ed1dab2e3b8
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Jun 1 23:45:57 2019 +0300
configure: check for 'rand' and 'random' by MHD_CHECK_FUNC
---
configure.ac | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index bcb4e45d..928a21b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -772,7 +772,23 @@ AC_CHECK_HEADERS([zlib.h],[have_zlib=yes],[have_zlib=no],
[AC_INCLUDES_DEFAULT])
AM_CONDITIONAL([HAVE_ZLIB], [[test "x$have_zlib" = xyes]])
# Check for generic functions
-AC_CHECK_FUNCS([rand random])
+MHD_CHECK_FUNC([random],
+ [
+AC_INCLUDES_DEFAULT
+[#include <stdlib.h>
+ ]],
+ [[long int r = random(); (void)r;]],
+ [],
+ [
+ MHD_CHECK_FUNC([rand],
+ [
+AC_INCLUDES_DEFAULT
+[#include <stdlib.h>
+ ]],
+ [[int r = rand(); (void)r;]],
+ )
+ ]
+)
AC_CHECK_MEMBERS([struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len,
struct sockaddr_storage.ss_len],
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (2a59d367 -> 1f796283), gnunet, 2019/06/02
- [GNUnet-SVN] [libmicrohttpd] 03/05: Properly handle port detection if AF_UNIX socket is used on *BSD, macOS, gnunet, 2019/06/02
- [GNUnet-SVN] [libmicrohttpd] 05/05: Added support for SOCK_NOSIGPIPE from Solaris 11.4 and NetBSD 7+, gnunet, 2019/06/02
- [GNUnet-SVN] [libmicrohttpd] 02/05: Added .gitattributes, fixed line endings in ac_define_dir.m4, updated ac_define_dir.m4 to new version., gnunet, 2019/06/02
- [GNUnet-SVN] [libmicrohttpd] 04/05: configure: check for 'rand' and 'random' by MHD_CHECK_FUNC,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 01/05: configure: fixed detection of 'getsockname' on some systems (W32 x32), do not use 'getsockname()' if it is not detected by configure., gnunet, 2019/06/02