summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7b5e8d)
raw | patch | inline | side by side (parent: f7b5e8d)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 4 Aug 2006 23:46:16 +0000 (16:46 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 4 Aug 2006 23:46:16 +0000 (16:46 -0700) |
We would need both "struct addrinfo" and getaddrinfo()
available. Check them and set NO_IPV6 otherwise.
Signed-off-by: Junio C Hamano <junkio@cox.net>
available. Check them and set NO_IPV6 otherwise.
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 33ddee2120208abf348a8ef10c81554bbe15f8fa..74c271098c0b77f24a15f5902d40cd6944cdf044 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_CHECK_TYPE(struct sockaddr_storage,[],
[GIT_CONF_APPEND_LINE(NO_SOCKADDR_STORAGE=YesPlease)],
[#include <netinet/in.h>])
+# Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
+AC_CHECK_TYPE([struct addrinfo],[
+AC_CHECK_FUNC([getaddrinfo],[],
+[GIT_CONF_APPEND_LINE(NO_IPV6=YesPlease)])],[],[
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+])
#
# Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.)
# do not support the 'size specifiers' introduced by C99, namely ll, hh,
#
# Define NO_MMAP if you want to avoid mmap.
#
-# Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
-#
# Define NO_ICONV if your libc does not properly support iconv.