comparison m4/getaddrinfo.m4 @ 6340:7ce682b6b199

Don't use the HAVE_ macros that we used to define.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 05 Oct 2005 21:41:31 +0000
parents 1e3aad6841a0
children 29248383a0c7
comparison
equal deleted inserted replaced
6339:1e3aad6841a0 6340:7ce682b6b199
22 AC_CHECK_HEADERS_ONCE(netinet/in.h) 22 AC_CHECK_HEADERS_ONCE(netinet/in.h)
23 AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, gai_strerror],,,[ 23 AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, gai_strerror],,,[
24 /* sys/types.h is not needed according to POSIX, but the 24 /* sys/types.h is not needed according to POSIX, but the
25 sys/socket.h in i386-unknown-freebsd4.10 and 25 sys/socket.h in i386-unknown-freebsd4.10 and
26 powerpc-apple-darwin5.5 required it. */ 26 powerpc-apple-darwin5.5 required it. */
27 #ifdef HAVE_SYS_TYPES_H 27 #include <sys/types.h>
28 # include <sys/types.h> 28 #include <sys/socket.h>
29 #endif 29 #include <netdb.h>
30 #ifdef HAVE_SYS_SOCKET_H
31 # include <sys/socket.h>
32 #endif
33 #ifdef HAVE_NETDB_H
34 # include <netdb.h>
35 #endif
36 ]) 30 ])
37 AC_CHECK_TYPES([struct addrinfo],,,[ 31 AC_CHECK_TYPES([struct addrinfo],,,[
38 #ifdef HAVE_SYS_TYPES_H 32 #include <sys/types.h>
39 # include <sys/types.h> 33 #include <sys/socket.h>
40 #endif 34 #include <netdb.h>
41 #ifdef HAVE_SYS_SOCKET_H
42 # include <sys/socket.h>
43 #endif
44 #ifdef HAVE_NETDB_H
45 # include <netdb.h>
46 #endif
47 ]) 35 ])
48 ]) 36 ])