projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b16bf68
)
Check for struct addrinfo
author
Ivo Timmermans
<ivo@lychnis.net>
Thu, 15 Nov 2001 23:49:46 +0000
(23:49 +0000)
committer
Ivo Timmermans
<ivo@lychnis.net>
Thu, 15 Nov 2001 23:49:46 +0000
(23:49 +0000)
configure.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
899c19a
..
5751131
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-1,6
+1,6
@@
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.13.2.3
7 2001/11/15 23:26:27
zarq Exp $
+dnl $Id: configure.in,v 1.13.2.3
8 2001/11/15 23:49:46
zarq Exp $
AC_INIT(src/tincd.c)
AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
AC_INIT(src/tincd.c)
AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
@@
-68,6
+68,21
@@
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_HEADER_TIME
AC_STRUCT_TM
+AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
+ AC_TRY_COMPILE(
+ [
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+ ],
+ [ struct addrinfo s; s.ai_flags = 0; ],
+ [ ac_cv_have_struct_addrinfo="yes" ],
+ [ ac_cv_have_struct_addrinfo="no" ]
+ )])
+if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
+ AC_DEFINE(HAVE_STRUCT_ADDRINFO)
+fi
+
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_ALLOCA
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_ALLOCA