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