ldns: Update local files for update to 1.6.11
[dragonfly.git] / lib / libldns / ldns / config.h
1 /* ldns/config.h.  Generated from config.h.in by configure.  */
2 /* ldns/config.h.in.  Generated from configure.ac by autoheader.  */
3
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
7 /* Define to 1 if you have the <arpa/inet.h> header file. */
8 #define HAVE_ARPA_INET_H 1
9
10 /* Whether the C compiler accepts the "format" attribute */
11 #define HAVE_ATTR_FORMAT 1
12
13 /* Whether the C compiler accepts the "unused" attribute */
14 #define HAVE_ATTR_UNUSED 1
15
16 /* Define to 1 if you have the `b32_ntop' function. */
17 /* #undef HAVE_B32_NTOP */
18
19 /* Define to 1 if you have the `b32_pton' function. */
20 /* #undef HAVE_B32_PTON */
21
22 /* Define to 1 if you have the `b64_ntop' function. */
23 /* #undef HAVE_B64_NTOP */
24
25 /* Define to 1 if you have the `b64_pton' function. */
26 /* #undef HAVE_B64_PTON */
27
28 /* Define to 1 if you have the `bzero' function. */
29 #define HAVE_BZERO 1
30
31 /* Define to 1 if you have the `calloc' function. */
32 #define HAVE_CALLOC 1
33
34 /* Define to 1 if you have the `ctime_r' function. */
35 #define HAVE_CTIME_R 1
36
37 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
38    don't. */
39 /* #undef HAVE_DECL_NID_SECP384R1 */
40
41 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
42    if you don't. */
43 /* #undef HAVE_DECL_NID_X9_62_PRIME256V1 */
44
45 /* Define to 1 if you have the <dlfcn.h> header file. */
46 #define HAVE_DLFCN_H 1
47
48 /* Define to 1 if you have the `endprotoent' function. */
49 #define HAVE_ENDPROTOENT 1
50
51 /* Define to 1 if you have the `endservent' function. */
52 #define HAVE_ENDSERVENT 1
53
54 /* Define to 1 if you have the `EVP_sha256' function. */
55 #define HAVE_EVP_SHA256 1
56
57 /* Define to 1 if you have the `fcntl' function. */
58 #define HAVE_FCNTL 1
59
60 /* Whether getaddrinfo is available */
61 #define HAVE_GETADDRINFO 1
62
63 /* Define to 1 if you have the <getopt.h> header file. */
64 #define HAVE_GETOPT_H 1
65
66 /* Define to 1 if you have the `gmtime_r' function. */
67 #define HAVE_GMTIME_R 1
68
69 /* If you have HMAC_CTX_init */
70 #define HAVE_HMAC_CTX_INIT 1
71
72 /* Define to 1 if you have the `inet_aton' function. */
73 #define HAVE_INET_ATON 1
74
75 /* Define to 1 if you have the `inet_ntop' function. */
76 #define HAVE_INET_NTOP 1
77
78 /* Define to 1 if you have the `inet_pton' function. */
79 #define HAVE_INET_PTON 1
80
81 /* define if you have inttypes.h */
82 #define HAVE_INTTYPES_H 1
83
84 /* if the function 'ioctlsocket' is available */
85 /* #undef HAVE_IOCTLSOCKET */
86
87 /* Define to 1 if you have the `isascii' function. */
88 #define HAVE_ISASCII 1
89
90 /* Define to 1 if you have the `isblank' function. */
91 #define HAVE_ISBLANK 1
92
93 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
94    to 0 otherwise. */
95 #define HAVE_MALLOC 1
96
97 /* Define to 1 if you have the `memmove' function. */
98 #define HAVE_MEMMOVE 1
99
100 /* Define to 1 if you have the <memory.h> header file. */
101 #define HAVE_MEMORY_H 1
102
103 /* Define to 1 if you have the `memset' function. */
104 #define HAVE_MEMSET 1
105
106 /* Define to 1 if you have the <netdb.h> header file. */
107 #define HAVE_NETDB_H 1
108
109 /* Define to 1 if you have the <netinet/in.h> header file. */
110 #define HAVE_NETINET_IN_H 1
111
112 /* Define to 1 if you have the <openssl/err.h> header file. */
113 #define HAVE_OPENSSL_ERR_H 1
114
115 /* Define to 1 if you have the <openssl/rand.h> header file. */
116 #define HAVE_OPENSSL_RAND_H 1
117
118 /* Define to 1 if you have the <openssl/ssl.h> header file. */
119 #define HAVE_OPENSSL_SSL_H 1
120
121 /* If available, contains the Python version number currently in use. */
122 /* #undef HAVE_PYTHON */
123
124 /* Define to 1 if you have the `random' function. */
125 #define HAVE_RANDOM 1
126
127 /* Define to 1 if your system has a GNU libc compatible `realloc' function,
128    and to 0 otherwise. */
129 #define HAVE_REALLOC 1
130
131 /* Define to 1 if you have the `sleep' function. */
132 #define HAVE_SLEEP 1
133
134 /* Define to 1 if you have the `snprintf' function. */
135 #define HAVE_SNPRINTF 1
136
137 /* Define if you have the SSL libraries installed. */
138 #define HAVE_SSL /**/
139
140 /* Define to 1 if you have the <stdarg.h> header file. */
141 #define HAVE_STDARG_H 1
142
143 /* Define to 1 if stdbool.h conforms to C99. */
144 #define HAVE_STDBOOL_H 1
145
146 /* Define to 1 if you have the <stdint.h> header file. */
147 #define HAVE_STDINT_H 1
148
149 /* Define to 1 if you have the <stdlib.h> header file. */
150 #define HAVE_STDLIB_H 1
151
152 /* Define to 1 if you have the <strings.h> header file. */
153 #define HAVE_STRINGS_H 1
154
155 /* Define to 1 if you have the <string.h> header file. */
156 #define HAVE_STRING_H 1
157
158 /* Define to 1 if you have the `strlcpy' function. */
159 #define HAVE_STRLCPY 1
160
161 /* Define to 1 if you have the `strtoul' function. */
162 #define HAVE_STRTOUL 1
163
164 /* Define if you have SWIG libraries and header files. */
165 /* #undef HAVE_SWIG */
166
167 /* Define to 1 if you have the <sys/mount.h> header file. */
168 #define HAVE_SYS_MOUNT_H 1
169
170 /* Define to 1 if you have the <sys/param.h> header file. */
171 #define HAVE_SYS_PARAM_H 1
172
173 /* define if you have sys/socket.h */
174 #define HAVE_SYS_SOCKET_H 1
175
176 /* Define to 1 if you have the <sys/stat.h> header file. */
177 #define HAVE_SYS_STAT_H 1
178
179 /* define if you have sys/types.h */
180 #define HAVE_SYS_TYPES_H 1
181
182 /* Define to 1 if you have the `timegm' function. */
183 #define HAVE_TIMEGM 1
184
185 /* Define to 1 if you have the <time.h> header file. */
186 #define HAVE_TIME_H 1
187
188 /* define if you have unistd.h */
189 #define HAVE_UNISTD_H 1
190
191 /* Define to 1 if you have the <winsock2.h> header file. */
192 /* #undef HAVE_WINSOCK2_H */
193
194 /* Define to 1 if you have the <ws2tcpip.h> header file. */
195 /* #undef HAVE_WS2TCPIP_H */
196
197 /* Define to 1 if the system has the type `_Bool'. */
198 #define HAVE__BOOL 1
199
200 /* Define to the sub-directory in which libtool stores uninstalled libraries.
201    */
202 #define LT_OBJDIR ".libs/"
203
204 /* Define to the address where bug reports for this package should be sent. */
205 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
206
207 /* Define to the full name of this package. */
208 #define PACKAGE_NAME "ldns"
209
210 /* Define to the full name and version of this package. */
211 #define PACKAGE_STRING "ldns 1.6.11"
212
213 /* Define to the one symbol short name of this package. */
214 #define PACKAGE_TARNAME "libdns"
215
216 /* Define to the home page for this package. */
217 #define PACKAGE_URL ""
218
219 /* Define to the version of this package. */
220 #define PACKAGE_VERSION "1.6.11"
221
222 /* The size of `time_t', as computed by sizeof. */
223 #define SIZEOF_TIME_T 4
224
225 /* Define to 1 if you have the ANSI C header files. */
226 #define STDC_HEADERS 1
227
228 /* System configuration dir */
229 #define SYSCONFDIR sysconfdir
230
231 /* Define this to enable ECDSA support. */
232 /* #undef USE_ECDSA */
233
234 /* Define this to enable GOST support. */
235 #define USE_GOST 1
236
237 /* Define this to enable SHA256 and SHA512 support. */
238 #define USE_SHA2 1
239
240 /* Enable extensions on AIX 3, Interix.  */
241 #ifndef _ALL_SOURCE
242 # define _ALL_SOURCE 1
243 #endif
244 /* Enable GNU extensions on systems that have them.  */
245 #ifndef _GNU_SOURCE
246 # define _GNU_SOURCE 1
247 #endif
248 /* Enable threading extensions on Solaris.  */
249 #ifndef _POSIX_PTHREAD_SEMANTICS
250 # define _POSIX_PTHREAD_SEMANTICS 1
251 #endif
252 /* Enable extensions on HP NonStop.  */
253 #ifndef _TANDEM_SOURCE
254 # define _TANDEM_SOURCE 1
255 #endif
256 /* Enable general extensions on Solaris.  */
257 #ifndef __EXTENSIONS__
258 # define __EXTENSIONS__ 1
259 #endif
260
261
262 /* Whether the windows socket API is used */
263 /* #undef USE_WINSOCK */
264
265 /* the version of the windows API enabled */
266 #define WINVER 0x0502
267
268 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
269    significant byte first (like Motorola and SPARC, unlike Intel). */
270 #if defined AC_APPLE_UNIVERSAL_BUILD
271 # if defined __BIG_ENDIAN__
272 #  define WORDS_BIGENDIAN 1
273 # endif
274 #else
275 # ifndef WORDS_BIGENDIAN
276 /* #  undef WORDS_BIGENDIAN */
277 # endif
278 #endif
279
280 /* Define to 1 if on MINIX. */
281 /* #undef _MINIX */
282
283 /* Define to 2 if the system does not provide POSIX.1 features except with
284    this defined. */
285 /* #undef _POSIX_1_SOURCE */
286
287 /* Define to 1 if you need to in order for `stat' and other things to work. */
288 /* #undef _POSIX_SOURCE */
289
290 /* Define to empty if `const' does not conform to ANSI C. */
291 /* #undef const */
292
293 /* in_addr_t */
294 /* #undef in_addr_t */
295
296 /* in_port_t */
297 /* #undef in_port_t */
298
299 /* Define to `__inline__' or `__inline' if that's what the C compiler
300    calls it, or to nothing if 'inline' is not supported under any name.  */
301 #ifndef __cplusplus
302 /* #undef inline */
303 #endif
304
305 /* Define to `short' if <sys/types.h> does not define. */
306 /* #undef int16_t */
307
308 /* Define to `int' if <sys/types.h> does not define. */
309 /* #undef int32_t */
310
311 /* Define to `long long' if <sys/types.h> does not define. */
312 /* #undef int64_t */
313
314 /* Define to `char' if <sys/types.h> does not define. */
315 /* #undef int8_t */
316
317 /* Define to rpl_malloc if the replacement function should be used. */
318 /* #undef malloc */
319
320 /* Define to rpl_realloc if the replacement function should be used. */
321 /* #undef realloc */
322
323 /* Define to 'int' if not defined */
324 /* #undef socklen_t */
325
326 /* Fallback member name for socket family in struct sockaddr_storage */
327 /* #undef ss_family */
328
329 /* Define to `int' if <sys/types.h> does not define. */
330 /* #undef ssize_t */
331
332 /* Define to `unsigned short' if <sys/types.h> does not define. */
333 /* #undef uint16_t */
334
335 /* Define to `unsigned int' if <sys/types.h> does not define. */
336 /* #undef uint32_t */
337
338 /* Define to `unsigned long long' if <sys/types.h> does not define. */
339 /* #undef uint64_t */
340
341 /* Define to `unsigned char' if <sys/types.h> does not define. */
342 /* #undef uint8_t */
343
344
345 #include <stdio.h>
346 #include <string.h>
347 #include <unistd.h>
348 #include <assert.h>
349
350 #ifndef LITTLE_ENDIAN
351 #define LITTLE_ENDIAN 1234
352 #endif
353
354 #ifndef BIG_ENDIAN
355 #define BIG_ENDIAN 4321
356 #endif
357
358 #ifndef BYTE_ORDER
359 #ifdef WORDS_BIGENDIAN
360 #define BYTE_ORDER BIG_ENDIAN
361 #else
362 #define BYTE_ORDER LITTLE_ENDIAN
363 #endif /* WORDS_BIGENDIAN */
364 #endif /* BYTE_ORDER */
365
366 #if STDC_HEADERS
367 #include <stdlib.h>
368 #include <stddef.h>
369 #endif
370
371 #ifdef HAVE_STDINT_H
372 #include <stdint.h>
373 #endif
374
375 #ifdef HAVE_SYS_SOCKET_H
376 #include <sys/socket.h>
377 #endif
378
379 #ifdef HAVE_NETINET_IN_H
380 #include <netinet/in.h>
381 #endif
382
383 #ifdef HAVE_ARPA_INET_H
384 #include <arpa/inet.h>
385 #endif
386
387 #ifdef HAVE_WINSOCK2_H
388 #include <winsock2.h>
389 #endif
390
391 #ifdef HAVE_WS2TCPIP_H
392 #include <ws2tcpip.h>
393 #endif
394
395
396 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
397 #ifdef HAVE_WINSOCK2_H
398 #define FD_SET_T (u_int)
399 #else
400 #define FD_SET_T 
401 #endif
402
403
404
405
406 #ifdef __cplusplus
407 extern "C" {
408 #endif
409
410 #ifndef B64_PTON
411 int ldns_b64_ntop(uint8_t const *src, size_t srclength,
412                   char *target, size_t targsize);
413 /**
414  * calculates the size needed to store the result of b64_ntop
415  */
416 /*@unused@*/
417 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
418 {
419         return ((((srcsize + 2) / 3) * 4) + 1);
420 }
421 #endif /* !B64_PTON */
422 #ifndef B64_NTOP
423 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
424 /**
425  * calculates the size needed to store the result of ldns_b64_pton
426  */
427 /*@unused@*/
428 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
429 {
430         return (((((srcsize + 3) / 4) * 3)) + 1);
431 }
432 #endif /* !B64_NTOP */
433
434 #ifndef HAVE_SLEEP
435 /* use windows sleep, in millisecs, instead */
436 #define sleep(x) Sleep((x)*1000)
437 #endif
438
439 #ifndef HAVE_RANDOM
440 #define srandom(x) srand(x)
441 #define random(x) rand(x)
442 #endif
443
444 #ifndef HAVE_TIMEGM
445 #include <time.h>
446 time_t timegm (struct tm *tm);
447 #endif /* !TIMEGM */
448 #ifndef HAVE_GMTIME_R
449 struct tm *gmtime_r(const time_t *timep, struct tm *result);
450 #endif
451 #ifndef HAVE_ISBLANK
452 int isblank(int c);
453 #endif /* !HAVE_ISBLANK */
454 #ifndef HAVE_ISASCII
455 int isascii(int c);
456 #endif /* !HAVE_ISASCII */
457 #ifndef HAVE_SNPRINTF
458 #include <stdarg.h>
459 int snprintf (char *str, size_t count, const char *fmt, ...);
460 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
461 #endif /* HAVE_SNPRINTF */
462 #ifndef HAVE_INET_PTON
463 int inet_pton(int af, const char* src, void* dst);
464 #endif /* HAVE_INET_PTON */
465 #ifndef HAVE_INET_NTOP
466 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
467 #endif
468 #ifndef HAVE_INET_ATON
469 int inet_aton(const char *cp, struct in_addr *addr);
470 #endif
471 #ifndef HAVE_MEMMOVE
472 void *memmove(void *dest, const void *src, size_t n);
473 #endif
474 #ifndef HAVE_STRLCPY
475 size_t strlcpy(char *dst, const char *src, size_t siz);
476 #endif
477 #ifdef __cplusplus
478 }
479 #endif
480 #ifndef HAVE_GETADDRINFO
481 #include "compat/fake-rfc2553.h"
482 #endif
483 #ifndef HAVE_STRTOUL
484 #define strtoul (unsigned long)strtol
485 #endif
486