00001 /* ldns/config.h. Generated from config.h.in by configure. */ 00002 /* ldns/config.h.in. Generated from configure.ac by autoheader. */ 00003 00004 /* Define if building universal (internal helper macro) */ 00005 /* #undef AC_APPLE_UNIVERSAL_BUILD */ 00006 00007 /* Define to 1 if you have the <arpa/inet.h> header file. */ 00008 #define HAVE_ARPA_INET_H 1 00009 00010 /* Whether the C compiler accepts the "format" attribute */ 00011 #define HAVE_ATTR_FORMAT 1 00012 00013 /* Whether the C compiler accepts the "unused" attribute */ 00014 #define HAVE_ATTR_UNUSED 1 00015 00016 /* Define to 1 if you have the `b32_ntop' function. */ 00017 /* #undef HAVE_B32_NTOP */ 00018 00019 /* Define to 1 if you have the `b32_pton' function. */ 00020 /* #undef HAVE_B32_PTON */ 00021 00022 /* Define to 1 if you have the `b64_ntop' function. */ 00023 /* #undef HAVE_B64_NTOP */ 00024 00025 /* Define to 1 if you have the `b64_pton' function. */ 00026 /* #undef HAVE_B64_PTON */ 00027 00028 /* Define to 1 if you have the `bzero' function. */ 00029 #define HAVE_BZERO 1 00030 00031 /* Define to 1 if you have the `calloc' function. */ 00032 #define HAVE_CALLOC 1 00033 00034 /* Define to 1 if you have the `ctime_r' function. */ 00035 #define HAVE_CTIME_R 1 00036 00037 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you 00038 don't. */ 00039 /* #undef HAVE_DECL_NID_SECP384R1 */ 00040 00041 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 00042 if you don't. */ 00043 /* #undef HAVE_DECL_NID_X9_62_PRIME256V1 */ 00044 00045 /* Define to 1 if you have the <dlfcn.h> header file. */ 00046 #define HAVE_DLFCN_H 1 00047 00048 /* Define to 1 if you have the `endprotoent' function. */ 00049 #define HAVE_ENDPROTOENT 1 00050 00051 /* Define to 1 if you have the `endservent' function. */ 00052 #define HAVE_ENDSERVENT 1 00053 00054 /* Define to 1 if you have the `EVP_sha256' function. */ 00055 #define HAVE_EVP_SHA256 1 00056 00057 /* Define to 1 if you have the `fcntl' function. */ 00058 #define HAVE_FCNTL 1 00059 00060 /* Define to 1 if you have the `fork' function. */ 00061 #define HAVE_FORK 1 00062 00063 /* Whether getaddrinfo is available */ 00064 #define HAVE_GETADDRINFO 1 00065 00066 /* Define to 1 if you have the <getopt.h> header file. */ 00067 #define HAVE_GETOPT_H 1 00068 00069 /* Define to 1 if you have the `gmtime_r' function. */ 00070 #define HAVE_GMTIME_R 1 00071 00072 /* If you have HMAC_CTX_init */ 00073 #define HAVE_HMAC_CTX_INIT 1 00074 00075 /* Define to 1 if you have the `inet_aton' function. */ 00076 #define HAVE_INET_ATON 1 00077 00078 /* Define to 1 if you have the `inet_ntop' function. */ 00079 #define HAVE_INET_NTOP 1 00080 00081 /* Define to 1 if you have the `inet_pton' function. */ 00082 #define HAVE_INET_PTON 1 00083 00084 /* Define to 1 if the system has the type `intptr_t'. */ 00085 #define HAVE_INTPTR_T 1 00086 00087 /* define if you have inttypes.h */ 00088 #define HAVE_INTTYPES_H 1 00089 00090 /* if the function 'ioctlsocket' is available */ 00091 /* #undef HAVE_IOCTLSOCKET */ 00092 00093 /* Define to 1 if you have the `isascii' function. */ 00094 #define HAVE_ISASCII 1 00095 00096 /* Define to 1 if you have the `isblank' function. */ 00097 #define HAVE_ISBLANK 1 00098 00099 /* Define to 1 if you have the `pcap' library (-lpcap). */ 00100 #define HAVE_LIBPCAP 1 00101 00102 /* Define to 1 if you have the `localtime_r' function. */ 00103 #define HAVE_LOCALTIME_R 1 00104 00105 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 00106 to 0 otherwise. */ 00107 #define HAVE_MALLOC 1 00108 00109 /* Define to 1 if you have the `memmove' function. */ 00110 #define HAVE_MEMMOVE 1 00111 00112 /* Define to 1 if you have the <memory.h> header file. */ 00113 #define HAVE_MEMORY_H 1 00114 00115 /* Define to 1 if you have the `memset' function. */ 00116 #define HAVE_MEMSET 1 00117 00118 /* Define to 1 if you have the <netdb.h> header file. */ 00119 #define HAVE_NETDB_H 1 00120 00121 /* Define to 1 if you have the <netinet/if_ether.h> header file. */ 00122 #define HAVE_NETINET_IF_ETHER_H 1 00123 00124 /* Define to 1 if you have the <netinet/igmp.h> header file. */ 00125 #define HAVE_NETINET_IGMP_H 1 00126 00127 /* Define to 1 if you have the <netinet/in.h> header file. */ 00128 #define HAVE_NETINET_IN_H 1 00129 00130 /* Define to 1 if you have the <netinet/in_systm.h> header file. */ 00131 #define HAVE_NETINET_IN_SYSTM_H 1 00132 00133 /* Define to 1 if you have the <netinet/ip6.h> header file. */ 00134 #define HAVE_NETINET_IP6_H 1 00135 00136 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */ 00137 /* #undef HAVE_NETINET_IP_COMPAT_H */ 00138 00139 /* Define to 1 if you have the <netinet/ip.h> header file. */ 00140 #define HAVE_NETINET_IP_H 1 00141 00142 /* Define to 1 if you have the <netinet/udp.h> header file. */ 00143 #define HAVE_NETINET_UDP_H 1 00144 00145 /* Define to 1 if you have the <net/ethernet.h> header file. */ 00146 #define HAVE_NET_ETHERNET_H 1 00147 00148 /* Define to 1 if you have the <net/if.h> header file. */ 00149 #define HAVE_NET_IF_H 1 00150 00151 /* Define to 1 if you have the <openssl/err.h> header file. */ 00152 #define HAVE_OPENSSL_ERR_H 1 00153 00154 /* Define to 1 if you have the <openssl/rand.h> header file. */ 00155 #define HAVE_OPENSSL_RAND_H 1 00156 00157 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 00158 #define HAVE_OPENSSL_SSL_H 1 00159 00160 /* Define to 1 if you have the <pcap.h> header file. */ 00161 #define HAVE_PCAP_H 1 00162 00163 /* If available, contains the Python version number currently in use. */ 00164 #define HAVE_PYTHON "2.4" 00165 00166 /* Define to 1 if you have the `random' function. */ 00167 #define HAVE_RANDOM 1 00168 00169 /* Define to 1 if your system has a GNU libc compatible `realloc' function, 00170 and to 0 otherwise. */ 00171 #define HAVE_REALLOC 1 00172 00173 /* Define to 1 if you have the `sleep' function. */ 00174 #define HAVE_SLEEP 1 00175 00176 /* Define to 1 if you have the `snprintf' function. */ 00177 #define HAVE_SNPRINTF 1 00178 00179 /* Define if you have the SSL libraries installed. */ 00180 #define HAVE_SSL 00181 00182 /* Define to 1 if you have the <stdarg.h> header file. */ 00183 #define HAVE_STDARG_H 1 00184 00185 /* Define to 1 if stdbool.h conforms to C99. */ 00186 #define HAVE_STDBOOL_H 1 00187 00188 /* Define to 1 if you have the <stdint.h> header file. */ 00189 #define HAVE_STDINT_H 1 00190 00191 /* Define to 1 if you have the <stdlib.h> header file. */ 00192 #define HAVE_STDLIB_H 1 00193 00194 /* Define to 1 if you have the <strings.h> header file. */ 00195 #define HAVE_STRINGS_H 1 00196 00197 /* Define to 1 if you have the <string.h> header file. */ 00198 #define HAVE_STRING_H 1 00199 00200 /* Define to 1 if you have the `strlcpy' function. */ 00201 /* #undef HAVE_STRLCPY */ 00202 00203 /* Define to 1 if you have the `strtoul' function. */ 00204 #define HAVE_STRTOUL 1 00205 00206 /* Define if you have SWIG libraries and header files. */ 00207 #define HAVE_SWIG 1 00208 00209 /* Define to 1 if you have the <sys/mount.h> header file. */ 00210 #define HAVE_SYS_MOUNT_H 1 00211 00212 /* Define to 1 if you have the <sys/param.h> header file. */ 00213 #define HAVE_SYS_PARAM_H 1 00214 00215 /* define if you have sys/socket.h */ 00216 #define HAVE_SYS_SOCKET_H 1 00217 00218 /* Define to 1 if you have the <sys/stat.h> header file. */ 00219 #define HAVE_SYS_STAT_H 1 00220 00221 /* define if you have sys/types.h */ 00222 #define HAVE_SYS_TYPES_H 1 00223 00224 /* Define to 1 if you have the `timegm' function. */ 00225 #define HAVE_TIMEGM 1 00226 00227 /* Define to 1 if you have the <time.h> header file. */ 00228 #define HAVE_TIME_H 1 00229 00230 /* define if you have unistd.h */ 00231 #define HAVE_UNISTD_H 1 00232 00233 /* Define to 1 if you have the `vfork' function. */ 00234 #define HAVE_VFORK 1 00235 00236 /* Define to 1 if you have the <vfork.h> header file. */ 00237 /* #undef HAVE_VFORK_H */ 00238 00239 /* Define to 1 if you have the <winsock2.h> header file. */ 00240 /* #undef HAVE_WINSOCK2_H */ 00241 00242 /* Define to 1 if `fork' works. */ 00243 #define HAVE_WORKING_FORK 1 00244 00245 /* Define to 1 if `vfork' works. */ 00246 #define HAVE_WORKING_VFORK 1 00247 00248 /* Define to 1 if you have the <ws2tcpip.h> header file. */ 00249 /* #undef HAVE_WS2TCPIP_H */ 00250 00251 /* Define to 1 if the system has the type `_Bool'. */ 00252 #define HAVE__BOOL 1 00253 00254 /* Define to the sub-directory in which libtool stores uninstalled libraries. 00255 */ 00256 #define LT_OBJDIR ".libs/" 00257 00258 /* Define to the address where bug reports for this package should be sent. */ 00259 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" 00260 00261 /* Define to the full name of this package. */ 00262 #define PACKAGE_NAME "ldns" 00263 00264 /* Define to the full name and version of this package. */ 00265 #define PACKAGE_STRING "ldns 1.6.12" 00266 00267 /* Define to the one symbol short name of this package. */ 00268 #define PACKAGE_TARNAME "libdns" 00269 00270 /* Define to the home page for this package. */ 00271 #define PACKAGE_URL "" 00272 00273 /* Define to the version of this package. */ 00274 #define PACKAGE_VERSION "1.6.12" 00275 00276 /* The size of `time_t', as computed by sizeof. */ 00277 #define SIZEOF_TIME_T 4 00278 00279 /* Define to 1 if you have the ANSI C header files. */ 00280 #define STDC_HEADERS 1 00281 00282 /* System configuration dir */ 00283 #define SYSCONFDIR sysconfdir 00284 00285 /* Define this to enable ECDSA support. */ 00286 /* #undef USE_ECDSA */ 00287 00288 /* Define this to enable GOST support. */ 00289 /* #undef USE_GOST */ 00290 00291 /* Define this to enable SHA256 and SHA512 support. */ 00292 #define USE_SHA2 1 00293 00294 /* Enable extensions on AIX 3, Interix. */ 00295 #ifndef _ALL_SOURCE 00296 # define _ALL_SOURCE 1 00297 #endif 00298 /* Enable GNU extensions on systems that have them. */ 00299 #ifndef _GNU_SOURCE 00300 # define _GNU_SOURCE 1 00301 #endif 00302 /* Enable threading extensions on Solaris. */ 00303 #ifndef _POSIX_PTHREAD_SEMANTICS 00304 # define _POSIX_PTHREAD_SEMANTICS 1 00305 #endif 00306 /* Enable extensions on HP NonStop. */ 00307 #ifndef _TANDEM_SOURCE 00308 # define _TANDEM_SOURCE 1 00309 #endif 00310 /* Enable general extensions on Solaris. */ 00311 #ifndef __EXTENSIONS__ 00312 # define __EXTENSIONS__ 1 00313 #endif 00314 00315 00316 /* Whether the windows socket API is used */ 00317 /* #undef USE_WINSOCK */ 00318 00319 /* the version of the windows API enabled */ 00320 #define WINVER 0x0502 00321 00322 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 00323 significant byte first (like Motorola and SPARC, unlike Intel). */ 00324 #if defined AC_APPLE_UNIVERSAL_BUILD 00325 # if defined __BIG_ENDIAN__ 00326 # define WORDS_BIGENDIAN 1 00327 # endif 00328 #else 00329 # ifndef WORDS_BIGENDIAN 00330 /* # undef WORDS_BIGENDIAN */ 00331 # endif 00332 #endif 00333 00334 /* Define to 1 if on MINIX. */ 00335 /* #undef _MINIX */ 00336 00337 /* Define to 2 if the system does not provide POSIX.1 features except with 00338 this defined. */ 00339 /* #undef _POSIX_1_SOURCE */ 00340 00341 /* Define to 1 if you need to in order for `stat' and other things to work. */ 00342 /* #undef _POSIX_SOURCE */ 00343 00344 /* Define to empty if `const' does not conform to ANSI C. */ 00345 /* #undef const */ 00346 00347 /* in_addr_t */ 00348 /* #undef in_addr_t */ 00349 00350 /* in_port_t */ 00351 /* #undef in_port_t */ 00352 00353 /* Define to `__inline__' or `__inline' if that's what the C compiler 00354 calls it, or to nothing if 'inline' is not supported under any name. */ 00355 #ifndef __cplusplus 00356 /* #undef inline */ 00357 #endif 00358 00359 /* Define to `short' if <sys/types.h> does not define. */ 00360 /* #undef int16_t */ 00361 00362 /* Define to `int' if <sys/types.h> does not define. */ 00363 /* #undef int32_t */ 00364 00365 /* Define to `long long' if <sys/types.h> does not define. */ 00366 /* #undef int64_t */ 00367 00368 /* Define to `char' if <sys/types.h> does not define. */ 00369 /* #undef int8_t */ 00370 00371 /* Define to the type of a signed integer type wide enough to hold a pointer, 00372 if such a type exists, and if the system does not define it. */ 00373 /* #undef intptr_t */ 00374 00375 /* Define to rpl_malloc if the replacement function should be used. */ 00376 /* #undef malloc */ 00377 00378 /* Define to `int' if <sys/types.h> does not define. */ 00379 /* #undef pid_t */ 00380 00381 /* Define to rpl_realloc if the replacement function should be used. */ 00382 /* #undef realloc */ 00383 00384 /* Define to `unsigned int' if <sys/types.h> does not define. */ 00385 /* #undef size_t */ 00386 00387 /* Define to 'int' if not defined */ 00388 /* #undef socklen_t */ 00389 00390 /* Fallback member name for socket family in struct sockaddr_storage */ 00391 /* #undef ss_family */ 00392 00393 /* Define to `int' if <sys/types.h> does not define. */ 00394 /* #undef ssize_t */ 00395 00396 /* Define to `unsigned short' if <sys/types.h> does not define. */ 00397 /* #undef uint16_t */ 00398 00399 /* Define to `unsigned int' if <sys/types.h> does not define. */ 00400 /* #undef uint32_t */ 00401 00402 /* Define to `unsigned long long' if <sys/types.h> does not define. */ 00403 /* #undef uint64_t */ 00404 00405 /* Define to `unsigned char' if <sys/types.h> does not define. */ 00406 /* #undef uint8_t */ 00407 00408 /* Define as `fork' if `vfork' does not work. */ 00409 /* #undef vfork */ 00410 00411 00412 #include <stdio.h> 00413 #include <string.h> 00414 #include <unistd.h> 00415 #include <assert.h> 00416 00417 #ifndef LITTLE_ENDIAN 00418 #define LITTLE_ENDIAN 1234 00419 #endif 00420 00421 #ifndef BIG_ENDIAN 00422 #define BIG_ENDIAN 4321 00423 #endif 00424 00425 #ifndef BYTE_ORDER 00426 #ifdef WORDS_BIGENDIAN 00427 #define BYTE_ORDER BIG_ENDIAN 00428 #else 00429 #define BYTE_ORDER LITTLE_ENDIAN 00430 #endif /* WORDS_BIGENDIAN */ 00431 #endif /* BYTE_ORDER */ 00432 00433 #if STDC_HEADERS 00434 #include <stdlib.h> 00435 #include <stddef.h> 00436 #endif 00437 00438 #ifdef HAVE_STDINT_H 00439 #include <stdint.h> 00440 #endif 00441 00442 #ifdef HAVE_SYS_SOCKET_H 00443 #include <sys/socket.h> 00444 #endif 00445 00446 #ifdef HAVE_NETINET_IN_H 00447 #include <netinet/in.h> 00448 #endif 00449 00450 #ifdef HAVE_ARPA_INET_H 00451 #include <arpa/inet.h> 00452 #endif 00453 00454 #ifdef HAVE_WINSOCK2_H 00455 #include <winsock2.h> 00456 #endif 00457 00458 #ifdef HAVE_WS2TCPIP_H 00459 #include <ws2tcpip.h> 00460 #endif 00461 00462 00463 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */ 00464 #ifdef HAVE_WINSOCK2_H 00465 #define FD_SET_T (u_int) 00466 #else 00467 #define FD_SET_T 00468 #endif 00469 00470 00471 00472 00473 #ifdef __cplusplus 00474 extern "C" { 00475 #endif 00476 00477 #ifndef B64_PTON 00478 int ldns_b64_ntop(uint8_t const *src, size_t srclength, 00479 char *target, size_t targsize); 00483 /*@unused@*/ 00484 static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize) 00485 { 00486 return ((((srcsize + 2) / 3) * 4) + 1); 00487 } 00488 #endif /* !B64_PTON */ 00489 #ifndef B64_NTOP 00490 int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize); 00494 /*@unused@*/ 00495 static inline size_t ldns_b64_pton_calculate_size(size_t srcsize) 00496 { 00497 return (((((srcsize + 3) / 4) * 3)) + 1); 00498 } 00499 #endif /* !B64_NTOP */ 00500 00501 #ifndef HAVE_SLEEP 00502 /* use windows sleep, in millisecs, instead */ 00503 #define sleep(x) Sleep((x)*1000) 00504 #endif 00505 00506 #ifndef HAVE_RANDOM 00507 #define srandom(x) srand(x) 00508 #define random(x) rand(x) 00509 #endif 00510 00511 #ifndef HAVE_TIMEGM 00512 #include <time.h> 00513 time_t timegm (struct tm *tm); 00514 #endif /* !TIMEGM */ 00515 #ifndef HAVE_GMTIME_R 00516 struct tm *gmtime_r(const time_t *timep, struct tm *result); 00517 #endif 00518 #ifndef HAVE_LOCALTIME_R 00519 struct tm *localtime_r(const time_t *timep, struct tm *result); 00520 #endif 00521 #ifndef HAVE_ISBLANK 00522 int isblank(int c); 00523 #endif /* !HAVE_ISBLANK */ 00524 #ifndef HAVE_ISASCII 00525 int isascii(int c); 00526 #endif /* !HAVE_ISASCII */ 00527 #ifndef HAVE_SNPRINTF 00528 #include <stdarg.h> 00529 int snprintf (char *str, size_t count, const char *fmt, ...); 00530 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 00531 #endif /* HAVE_SNPRINTF */ 00532 #ifndef HAVE_INET_PTON 00533 int inet_pton(int af, const char* src, void* dst); 00534 #endif /* HAVE_INET_PTON */ 00535 #ifndef HAVE_INET_NTOP 00536 const char *inet_ntop(int af, const void *src, char *dst, size_t size); 00537 #endif 00538 #ifndef HAVE_INET_ATON 00539 int inet_aton(const char *cp, struct in_addr *addr); 00540 #endif 00541 #ifndef HAVE_MEMMOVE 00542 void *memmove(void *dest, const void *src, size_t n); 00543 #endif 00544 #ifndef HAVE_STRLCPY 00545 size_t strlcpy(char *dst, const char *src, size_t siz); 00546 #endif 00547 #ifdef __cplusplus 00548 } 00549 #endif 00550 #ifndef HAVE_GETADDRINFO 00551 #include "compat/fake-rfc2553.h" 00552 #endif 00553 #ifndef HAVE_STRTOUL 00554 #define strtoul (unsigned long)strtol 00555 #endif 00556