Include complete fake-getname/addrinfo from OpenSSH.

This commit is contained in:
Guus Sliepen 2002-07-12 11:45:21 +00:00
parent afabbd6b90
commit c4cd199357
12 changed files with 242 additions and 711 deletions

View file

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Id: configure.in,v 1.13.2.52 2002/07/11 12:55:57 guus Exp $
dnl $Id: configure.in,v 1.13.2.53 2002/07/12 11:45:20 guus Exp $
AC_INIT(src/tincd.c)
AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
@ -105,12 +105,27 @@ if test $ac_cv_type_socklen_t = yes; then
AC_DEFINE(HAVE_SOCKLEN_T, 1, [socklen_t available])
fi
AC_CACHE_CHECK([for struct addrinfo], ac_cv_struct_addrinfo,
[
AC_TRY_COMPILE(
[#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>],
[struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;],
ac_cv_struct_addrinfo=yes,
ac_cv_struct_addrinfo=no)
])
if test $ac_cv_struct_addrinfo = yes; then
AC_DEFINE(HAVE_STRUCT_ADDRINFO, 1, [struct addrinfo available])
fi
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([asprintf daemon fcloseall flock ftime get_current_dir_name \
putenv select strdup strerror strsignal strtol unsetenv getnameinfo])
putenv select strdup strerror strsignal strtol unsetenv \
freeaddrinfo gai_strerror getaddrinfo getnameinfo])
jm_FUNC_MALLOC
jm_FUNC_REALLOC