1 /* config.h. Generated from config.h.in by configure. */
2 /* config.h.in. Generated from configure.ac by autoheader. */
4 /* Define to 1 if you have the <arpa/inet.h> header file. */
5 #define HAVE_ARPA_INET_H 1
7 /* Define to 1 if you have the <assert.h> header file. */
8 #define HAVE_ASSERT_H 1
10 /* Define to 1 if you have the <ctype.h> header file. */
11 #define HAVE_CTYPE_H 1
13 /* Whether getaddrinfo is available */
14 #define HAVE_GETADDRINFO 1
16 /* Define to 1 if you have the <getopt.h> header file. */
17 #define HAVE_GETOPT_H 1
19 /* If you have HMAC_CTX_init */
20 #define HAVE_HMAC_CTX_INIT 1
22 /* Define to 1 if you have the <inttypes.h> header file. */
23 #define HAVE_INTTYPES_H 1
25 /* Define to 1 if you have the `isblank' function. */
26 #define HAVE_ISBLANK 1
28 /* Define to 1 if you have the `ldns' library (-lldns). */
29 #define HAVE_LIBLDNS 1
31 /* Define to 1 if you have the <memory.h> header file. */
32 #define HAVE_MEMORY_H 1
34 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
35 #define HAVE_NETINET_IF_ETHER_H 1
37 /* Define to 1 if you have the <netinet/in.h> header file. */
38 #define HAVE_NETINET_IN_H 1
40 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
41 #define HAVE_NETINET_IN_SYSTM_H 1
43 /* Define to 1 if you have the <netinet/ip6.h> header file. */
44 #define HAVE_NETINET_IP6_H 1
46 /* Define to 1 if you have the <netinet/ip.h> header file. */
47 #define HAVE_NETINET_IP_H 1
49 /* Define to 1 if you have the <netinet/udp.h> header file. */
50 #define HAVE_NETINET_UDP_H 1
52 /* Define to 1 if you have the <net/if.h> header file. */
53 #define HAVE_NET_IF_H 1
55 /* Define to 1 if you have the <openssl/err.h> header file. */
56 #define HAVE_OPENSSL_ERR_H 1
58 /* Define to 1 if you have the <openssl/rand.h> header file. */
59 #define HAVE_OPENSSL_RAND_H 1
61 /* Define to 1 if you have the <openssl/ssl.h> header file. */
62 #define HAVE_OPENSSL_SSL_H 1
64 /* Define if you have the SSL libraries installed. */
67 /* Define to 1 if you have the <stdint.h> header file. */
68 #define HAVE_STDINT_H 1
70 /* Define to 1 if you have the <stdio.h> header file. */
71 #define HAVE_STDIO_H 1
73 /* Define to 1 if you have the <stdlib.h> header file. */
74 #define HAVE_STDLIB_H 1
76 /* Define to 1 if you have the <strings.h> header file. */
77 #define HAVE_STRINGS_H 1
79 /* Define to 1 if you have the <string.h> header file. */
80 #define HAVE_STRING_H 1
82 /* Define to 1 if you have the <sys/mount.h> header file. */
83 #define HAVE_SYS_MOUNT_H 1
85 /* Define to 1 if you have the <sys/param.h> header file. */
86 #define HAVE_SYS_PARAM_H 1
88 /* Define to 1 if you have the <sys/select.h> header file. */
89 #define HAVE_SYS_SELECT_H 1
91 /* Define to 1 if you have the <sys/socket.h> header file. */
92 #define HAVE_SYS_SOCKET_H 1
94 /* Define to 1 if you have the <sys/stat.h> header file. */
95 #define HAVE_SYS_STAT_H 1
97 /* Define to 1 if you have the <sys/time.h> header file. */
98 #define HAVE_SYS_TIME_H 1
100 /* Define to 1 if you have the <sys/types.h> header file. */
101 #define HAVE_SYS_TYPES_H 1
103 /* Define to 1 if you have the <time.h> header file. */
104 #define HAVE_TIME_H 1
106 /* Define to 1 if you have the <unistd.h> header file. */
107 #define HAVE_UNISTD_H 1
109 /* Define to 1 if you have the <winsock2.h> header file. */
110 /* #undef HAVE_WINSOCK2_H */
112 /* Define to 1 if you have the <ws2tcpip.h> header file. */
113 /* #undef HAVE_WS2TCPIP_H */
115 /* Default trust anchor file */
116 #define LDNS_TRUST_ANCHOR_FILE "/usr/local/etc/unbound/root.key"
118 /* Define to the address where bug reports for this package should be sent. */
119 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
121 /* Define to the full name of this package. */
122 #define PACKAGE_NAME "ldns"
124 /* Define to the full name and version of this package. */
125 #define PACKAGE_STRING "ldns 1.6.16"
127 /* Define to the one symbol short name of this package. */
128 #define PACKAGE_TARNAME "libdns"
130 /* Define to the home page for this package. */
131 #define PACKAGE_URL ""
133 /* Define to the version of this package. */
134 #define PACKAGE_VERSION "1.6.16"
136 /* Define to 1 if you have the ANSI C header files. */
137 #define STDC_HEADERS 1
139 /* Enable extensions on AIX 3, Interix. */
141 # define _ALL_SOURCE 1
143 /* Enable GNU extensions on systems that have them. */
145 # define _GNU_SOURCE 1
147 /* Enable threading extensions on Solaris. */
148 #ifndef _POSIX_PTHREAD_SEMANTICS
149 # define _POSIX_PTHREAD_SEMANTICS 1
151 /* Enable extensions on HP NonStop. */
152 #ifndef _TANDEM_SOURCE
153 # define _TANDEM_SOURCE 1
155 /* Enable general extensions on Solaris. */
156 #ifndef __EXTENSIONS__
157 # define __EXTENSIONS__ 1
161 /* Whether the windows socket API is used */
162 /* #undef USE_WINSOCK */
164 /* the version of the windows API enabled */
165 #define WINVER 0x0502
167 /* Define to 1 if on MINIX. */
170 /* Define to 2 if the system does not provide POSIX.1 features except with
172 /* #undef _POSIX_1_SOURCE */
174 /* Define to 1 if you need to in order for `stat' and other things to work. */
175 /* #undef _POSIX_SOURCE */
178 /* #undef in_addr_t */
181 /* #undef in_port_t */
183 /* Define to `__inline__' or `__inline' if that's what the C compiler
184 calls it, or to nothing if 'inline' is not supported under any name. */
189 /* Define to `short' if <sys/types.h> does not define. */
192 /* Define to `int' if <sys/types.h> does not define. */
195 /* Define to `long long' if <sys/types.h> does not define. */
198 /* Define to `char' if <sys/types.h> does not define. */
201 /* Define to `unsigned int' if <sys/types.h> does not define. */
204 /* Define to 'int' if not defined */
205 /* #undef socklen_t */
207 /* Define to `int' if <sys/types.h> does not define. */
210 /* Define to `unsigned short' if <sys/types.h> does not define. */
211 /* #undef uint16_t */
213 /* Define to `unsigned int' if <sys/types.h> does not define. */
214 /* #undef uint32_t */
216 /* Define to `unsigned long long' if <sys/types.h> does not define. */
217 /* #undef uint64_t */
219 /* Define to `unsigned char' if <sys/types.h> does not define. */
238 #ifdef HAVE_SYS_SOCKET_H
239 #include <sys/socket.h>
242 #ifdef HAVE_NETINET_IN_H
243 #include <netinet/in.h>
246 #ifdef HAVE_ARPA_INET_H
247 #include <arpa/inet.h>
250 #ifdef HAVE_NETINET_UDP_H
251 #include <netinet/udp.h>
258 #ifdef HAVE_NETINET_IN_SYSTM_H
259 #include <netinet/in_systm.h>
262 #ifdef HAVE_NETINET_IP_H
263 #include <netinet/ip.h>
270 #ifdef HAVE_NETINET_IF_ETHER_H
271 #include <netinet/if_ether.h>
274 #ifdef HAVE_WINSOCK2_H
275 #define USE_WINSOCK 1
276 #include <winsock2.h>
279 #ifdef HAVE_WS2TCPIP_H
280 #include <ws2tcpip.h>
284 extern int optind
, opterr
;
287 #define EXIT_FAILURE 1
290 #define EXIT_SUCCESS 0
294 #define FD_ZERO(a) /* a */
295 #define FD_SET(a,b) /* a, b */