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