Connection: Support IPv6 addresses

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-08-17 05:13:27 -04:00
parent 110cce3773
commit 553918d3f2
6 changed files with 177 additions and 82 deletions
+46 -2
View File
@@ -170,7 +170,28 @@ AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([inet_addr], [nsl])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h limits.h locale.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/stat.h sys/time.h termios.h unistd.h wchar.h wctype.h], [], [AC_MSG_ERROR([Missing required header file.])])
AC_CHECK_HEADERS([m4_normalize([
fcntl.h
langinfo.h
limits.h
locale.h
netdb.h
netinet/in.h
stddef.h
stdint.h
inttypes.h
stdlib.h
string.h
sys/ioctl.h
sys/resource.h
sys/socket.h
sys/stat.h
sys/time.h
termios.h
unistd.h
wchar.h
wctype.h
])], [], [AC_MSG_ERROR([Missing required header file.])])
AC_CHECK_HEADERS([pty.h util.h libutil.h paths.h])
AC_CHECK_HEADERS([endian.h sys/endian.h])
@@ -195,7 +216,30 @@ AC_TYPE_UINTPTR_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MBRTOWC
AC_CHECK_FUNCS([gettimeofday setrlimit inet_ntoa iswprint memchr memset nl_langinfo posix_memalign setenv setlocale sigaction socket strchr strdup strncasecmp strtok strerror strtol wcwidth cfmakeraw pselect])
AC_CHECK_FUNCS([m4_normalize([
gettimeofday
setrlimit
iswprint
memchr
memset
nl_langinfo
posix_memalign
setenv
setlocale
sigaction
socket
strchr
strdup
strncasecmp
strtok
strerror
strtol
wcwidth
cfmakeraw
pselect
getaddrinfo
getnameinfo
])])
AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if clock_gettime is available.])])