1 /* config.h.in. Generated from configure.ac by autoheader. */
3 /* apply the noreturn attribute to a function that exits the program */
6 /* apply the weak attribute to a symbol */
9 /* Directory to chroot to */
12 /* Define this to enable client subnet option. */
15 /* Do sha512 definitions in config.h */
18 /* Command line arguments used with configure */
21 /* Pathname to the Unbound configuration file */
24 /* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work
26 #undef DARWIN_BROKEN_SETREUID
28 /* Whether daemon is deprecated */
29 #undef DEPRECATED_DAEMON
31 /* Deprecate RSA 1024 bit length, makes that an unsupported key */
32 #undef DEPRECATE_RSA_1024
34 /* Define this to enable kernel based UDP source port randomization. */
35 #undef DISABLE_EXPLICIT_PORT_RANDOMISATION
37 /* default dnstap socket path */
38 #undef DNSTAP_SOCKET_PATH
40 /* Define if you want to use debug lock checking (slow). */
41 #undef ENABLE_LOCK_CHECKS
43 /* Define this if you enabled-allsymbols from libunbound to link binaries to
44 it for smaller install size, but the libunbound export table is polluted by
46 #undef EXPORT_ALL_SYMBOLS
48 /* Define to 1 if you have the `accept4' function. */
51 /* Define to 1 if you have the `arc4random' function. */
52 #undef HAVE_ARC4RANDOM
54 /* Define to 1 if you have the `arc4random_uniform' function. */
55 #undef HAVE_ARC4RANDOM_UNIFORM
57 /* Define to 1 if you have the <arpa/inet.h> header file. */
58 #undef HAVE_ARPA_INET_H
60 /* Whether the C compiler accepts the "format" attribute */
61 #undef HAVE_ATTR_FORMAT
63 /* Whether the C compiler accepts the "noreturn" attribute */
64 #undef HAVE_ATTR_NORETURN
66 /* Whether the C compiler accepts the "unused" attribute */
67 #undef HAVE_ATTR_UNUSED
69 /* Whether the C compiler accepts the "weak" attribute */
72 /* If we have be64toh */
75 /* Define to 1 if you have the `BIO_set_callback_ex' function. */
76 #undef HAVE_BIO_SET_CALLBACK_EX
78 /* Define to 1 if you have the <bsd/stdlib.h> header file. */
79 #undef HAVE_BSD_STDLIB_H
81 /* Define to 1 if you have the <bsd/string.h> header file. */
82 #undef HAVE_BSD_STRING_H
84 /* Define to 1 if you have the `chown' function. */
87 /* Define to 1 if you have the `chroot' function. */
90 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
91 #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
93 /* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
94 #undef HAVE_CRYPTO_THREADID_SET_CALLBACK
96 /* Define to 1 if you have the `ctime_r' function. */
99 /* Define to 1 if you have the `daemon' function. */
102 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
104 #undef HAVE_DECL_ARC4RANDOM
106 /* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
108 #undef HAVE_DECL_ARC4RANDOM_UNIFORM
110 /* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if
112 #undef HAVE_DECL_EVSIGNAL_ASSIGN
114 /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
116 #undef HAVE_DECL_INET_NTOP
118 /* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
120 #undef HAVE_DECL_INET_PTON
122 /* Define to 1 if you have the declaration of `nghttp2_session_server_new',
123 and to 0 if you don't. */
124 #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW
126 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
128 #undef HAVE_DECL_NID_ED25519
130 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
132 #undef HAVE_DECL_NID_ED448
134 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
136 #undef HAVE_DECL_NID_SECP384R1
138 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
140 #undef HAVE_DECL_NID_X9_62_PRIME256V1
142 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
144 #undef HAVE_DECL_REALLOCARRAY
146 /* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
148 #undef HAVE_DECL_REDISCONNECT
150 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
152 #undef HAVE_DECL_SK_SSL_COMP_POP_FREE
154 /* Define to 1 if you have the declaration of
155 `SSL_COMP_get_compression_methods', and to 0 if you don't. */
156 #undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
158 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
160 #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
162 /* Define to 1 if you have the declaration of `strlcat', and to 0 if you
164 #undef HAVE_DECL_STRLCAT
166 /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
168 #undef HAVE_DECL_STRLCPY
170 /* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
172 #undef HAVE_DECL_XML_STOPPARSER
174 /* Define to 1 if you have the <dlfcn.h> header file. */
177 /* Define to 1 if you have the `DSA_SIG_set0' function. */
178 #undef HAVE_DSA_SIG_SET0
180 /* Define to 1 if you have the <endian.h> header file. */
183 /* Define to 1 if you have the `endprotoent' function. */
184 #undef HAVE_ENDPROTOENT
186 /* Define to 1 if you have the `endpwent' function. */
189 /* Define to 1 if you have the `endservent' function. */
190 #undef HAVE_ENDSERVENT
192 /* Define to 1 if you have the `ENGINE_cleanup' function. */
193 #undef HAVE_ENGINE_CLEANUP
195 /* Define to 1 if you have the `ERR_free_strings' function. */
196 #undef HAVE_ERR_FREE_STRINGS
198 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
199 #undef HAVE_ERR_LOAD_CRYPTO_STRINGS
201 /* Define to 1 if you have the `event_assign' function. */
202 #undef HAVE_EVENT_ASSIGN
204 /* Define to 1 if you have the `event_base_free' function. */
205 #undef HAVE_EVENT_BASE_FREE
207 /* Define to 1 if you have the `event_base_get_method' function. */
208 #undef HAVE_EVENT_BASE_GET_METHOD
210 /* Define to 1 if you have the `event_base_new' function. */
211 #undef HAVE_EVENT_BASE_NEW
213 /* Define to 1 if you have the `event_base_once' function. */
214 #undef HAVE_EVENT_BASE_ONCE
216 /* Define to 1 if you have the <event.h> header file. */
219 /* Define to 1 if you have the `EVP_aes_256_cbc' function. */
220 #undef HAVE_EVP_AES_256_CBC
222 /* Define to 1 if you have the `EVP_cleanup' function. */
223 #undef HAVE_EVP_CLEANUP
225 /* Define to 1 if you have the `EVP_default_properties_is_fips_enabled'
227 #undef HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED
229 /* Define to 1 if you have the `EVP_DigestVerify' function. */
230 #undef HAVE_EVP_DIGESTVERIFY
232 /* Define to 1 if you have the `EVP_dss1' function. */
235 /* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
236 #undef HAVE_EVP_ENCRYPTINIT_EX
238 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
239 #undef HAVE_EVP_MAC_CTX_SET_PARAMS
241 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
242 #undef HAVE_EVP_MD_CTX_NEW
244 /* Define to 1 if you have the `EVP_sha1' function. */
247 /* Define to 1 if you have the `EVP_sha256' function. */
248 #undef HAVE_EVP_SHA256
250 /* Define to 1 if you have the `EVP_sha512' function. */
251 #undef HAVE_EVP_SHA512
253 /* Define to 1 if you have the `ev_default_loop' function. */
254 #undef HAVE_EV_DEFAULT_LOOP
256 /* Define to 1 if you have the `ev_loop' function. */
259 /* Define to 1 if you have the <expat.h> header file. */
262 /* Define to 1 if you have the `explicit_bzero' function. */
263 #undef HAVE_EXPLICIT_BZERO
265 /* Define to 1 if you have the `fcntl' function. */
268 /* Define to 1 if you have the `FIPS_mode' function. */
269 #undef HAVE_FIPS_MODE
271 /* Define to 1 if you have the `fork' function. */
274 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
277 /* Define to 1 if you have the `fsync' function. */
280 /* Whether getaddrinfo is available */
281 #undef HAVE_GETADDRINFO
283 /* Define to 1 if you have the `getauxval' function. */
284 #undef HAVE_GETAUXVAL
286 /* Define to 1 if you have the `getentropy' function. */
287 #undef HAVE_GETENTROPY
289 /* Define to 1 if you have the `getifaddrs' function. */
290 #undef HAVE_GETIFADDRS
292 /* Define to 1 if you have the <getopt.h> header file. */
295 /* Define to 1 if you have the `getpwnam' function. */
298 /* Define to 1 if you have the `getrlimit' function. */
299 #undef HAVE_GETRLIMIT
301 /* Define to 1 if you have the `gettid' function. */
304 /* Define to 1 if you have the `glob' function. */
307 /* Define to 1 if you have the <glob.h> header file. */
310 /* Define to 1 if you have the `gmtime_r' function. */
313 /* Define to 1 if you have the <grp.h> header file. */
316 /* Define to 1 if you have the <hiredis/hiredis.h> header file. */
317 #undef HAVE_HIREDIS_HIREDIS_H
319 /* Define to 1 if you have the `HMAC_Init_ex' function. */
320 #undef HAVE_HMAC_INIT_EX
322 /* If we have htobe64 */
325 /* Define to 1 if you have the <ifaddrs.h> header file. */
326 #undef HAVE_IFADDRS_H
328 /* Define to 1 if you have the `if_nametoindex' function. */
329 #undef HAVE_IF_NAMETOINDEX
331 /* Define to 1 if you have the `inet_aton' function. */
332 #undef HAVE_INET_ATON
334 /* Define to 1 if you have the `inet_ntop' function. */
335 #undef HAVE_INET_NTOP
337 /* Define to 1 if you have the `inet_pton' function. */
338 #undef HAVE_INET_PTON
340 /* Define to 1 if you have the `initgroups' function. */
341 #undef HAVE_INITGROUPS
343 /* Define to 1 if you have the <inttypes.h> header file. */
344 #undef HAVE_INTTYPES_H
346 /* if the function 'ioctlsocket' is available */
347 #undef HAVE_IOCTLSOCKET
349 /* Define to 1 if you have the <iphlpapi.h> header file. */
350 #undef HAVE_IPHLPAPI_H
352 /* Define to 1 if you have the `isblank' function. */
355 /* Define to 1 if you have the `kill' function. */
358 /* Use portable libbsd functions */
361 /* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
362 #undef HAVE_LIBKERN_OSBYTEORDER_H
364 /* Define if we have LibreSSL */
367 /* Define to 1 if you have the <linux/net_tstamp.h> header file. */
368 #undef HAVE_LINUX_NET_TSTAMP_H
370 /* Define to 1 if you have the `localtime_r' function. */
371 #undef HAVE_LOCALTIME_R
373 /* Define to 1 if you have the <login_cap.h> header file. */
374 #undef HAVE_LOGIN_CAP_H
376 /* If have GNU libc compatible malloc */
379 /* Define to 1 if you have the `memmove' function. */
382 /* Define to 1 if you have the <memory.h> header file. */
385 /* Define to 1 if you have the <netdb.h> header file. */
388 /* Define to 1 if you have the <netinet/in.h> header file. */
389 #undef HAVE_NETINET_IN_H
391 /* Define to 1 if you have the <netinet/tcp.h> header file. */
392 #undef HAVE_NETINET_TCP_H
394 /* Define to 1 if you have the <netioapi.h> header file. */
395 #undef HAVE_NETIOAPI_H
397 /* Use libnettle for crypto */
400 /* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
401 #undef HAVE_NETTLE_DSA_COMPAT_H
403 /* Define to 1 if you have the <nettle/eddsa.h> header file. */
404 #undef HAVE_NETTLE_EDDSA_H
406 /* Define to 1 if you have the <net/if.h> header file. */
409 /* Define this to use nghttp2 client. */
412 /* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */
413 #undef HAVE_NGHTTP2_NGHTTP2_H
415 /* Use libnss for crypto */
418 /* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
419 #undef HAVE_OPENSSL_ADD_ALL_DIGESTS
421 /* Define to 1 if you have the <openssl/bn.h> header file. */
422 #undef HAVE_OPENSSL_BN_H
424 /* Define to 1 if you have the `OPENSSL_config' function. */
425 #undef HAVE_OPENSSL_CONFIG
427 /* Define to 1 if you have the <openssl/conf.h> header file. */
428 #undef HAVE_OPENSSL_CONF_H
430 /* Define to 1 if you have the <openssl/core_names.h> header file. */
431 #undef HAVE_OPENSSL_CORE_NAMES_H
433 /* Define to 1 if you have the <openssl/dh.h> header file. */
434 #undef HAVE_OPENSSL_DH_H
436 /* Define to 1 if you have the <openssl/dsa.h> header file. */
437 #undef HAVE_OPENSSL_DSA_H
439 /* Define to 1 if you have the <openssl/engine.h> header file. */
440 #undef HAVE_OPENSSL_ENGINE_H
442 /* Define to 1 if you have the <openssl/err.h> header file. */
443 #undef HAVE_OPENSSL_ERR_H
445 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
446 #undef HAVE_OPENSSL_INIT_CRYPTO
448 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
449 #undef HAVE_OPENSSL_INIT_SSL
451 /* Define to 1 if you have the <openssl/param_build.h> header file. */
452 #undef HAVE_OPENSSL_PARAM_BUILD_H
454 /* Define to 1 if you have the <openssl/rand.h> header file. */
455 #undef HAVE_OPENSSL_RAND_H
457 /* Define to 1 if you have the <openssl/rsa.h> header file. */
458 #undef HAVE_OPENSSL_RSA_H
460 /* Define to 1 if you have the <openssl/ssl.h> header file. */
461 #undef HAVE_OPENSSL_SSL_H
463 /* Define to 1 if you have the `OSSL_PARAM_BLD_new' function. */
464 #undef HAVE_OSSL_PARAM_BLD_NEW
466 /* Define to 1 if you have the `poll' function. */
469 /* Define to 1 if you have the <poll.h> header file. */
472 /* Define if you have POSIX threads libraries and header files. */
475 /* Have PTHREAD_PRIO_INHERIT. */
476 #undef HAVE_PTHREAD_PRIO_INHERIT
478 /* Define to 1 if the system has the type `pthread_rwlock_t'. */
479 #undef HAVE_PTHREAD_RWLOCK_T
481 /* Define to 1 if the system has the type `pthread_spinlock_t'. */
482 #undef HAVE_PTHREAD_SPINLOCK_T
484 /* Define to 1 if you have the <pwd.h> header file. */
487 /* Define if you have Python libraries and header files. */
490 /* Define to 1 if you have the `random' function. */
493 /* Define to 1 if you have the `RAND_cleanup' function. */
494 #undef HAVE_RAND_CLEANUP
496 /* If we have reallocarray(3) */
497 #undef HAVE_REALLOCARRAY
499 /* Define to 1 if you have the `recvmsg' function. */
502 /* Define to 1 if you have the `sendmsg' function. */
505 /* Define to 1 if you have the `setregid' function. */
508 /* Define to 1 if you have the `setresgid' function. */
509 #undef HAVE_SETRESGID
511 /* Define to 1 if you have the `setresuid' function. */
512 #undef HAVE_SETRESUID
514 /* Define to 1 if you have the `setreuid' function. */
517 /* Define to 1 if you have the `setrlimit' function. */
518 #undef HAVE_SETRLIMIT
520 /* Define to 1 if you have the `setsid' function. */
523 /* Define to 1 if you have the `setusercontext' function. */
524 #undef HAVE_SETUSERCONTEXT
526 /* Define to 1 if you have the `SHA512_Update' function. */
527 #undef HAVE_SHA512_UPDATE
529 /* Define to 1 if you have the `shmget' function. */
532 /* Define to 1 if you have the `sigprocmask' function. */
533 #undef HAVE_SIGPROCMASK
535 /* Define to 1 if you have the `sleep' function. */
538 /* Define to 1 if you have the `snprintf' function. */
541 /* Define to 1 if you have the `socketpair' function. */
542 #undef HAVE_SOCKETPAIR
544 /* Using Solaris threads */
545 #undef HAVE_SOLARIS_THREADS
547 /* Define to 1 if you have the `srandom' function. */
550 /* Define if you have the SSL libraries installed. */
553 /* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */
554 #undef HAVE_SSL_CTX_SET_ALPN_PROTOS
556 /* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */
557 #undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB
559 /* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
560 #undef HAVE_SSL_CTX_SET_CIPHERSUITES
562 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
563 #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
565 /* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb'
567 #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
569 /* Define to 1 if you have the `SSL_get0_alpn_selected' function. */
570 #undef HAVE_SSL_GET0_ALPN_SELECTED
572 /* Define to 1 if you have the `SSL_get0_peername' function. */
573 #undef HAVE_SSL_GET0_PEERNAME
575 /* Define to 1 if you have the `SSL_get1_peer_certificate' function. */
576 #undef HAVE_SSL_GET1_PEER_CERTIFICATE
578 /* Define to 1 if you have the `SSL_set1_host' function. */
579 #undef HAVE_SSL_SET1_HOST
581 /* Define to 1 if you have the <stdarg.h> header file. */
584 /* Define to 1 if you have the <stdbool.h> header file. */
585 #undef HAVE_STDBOOL_H
587 /* Define to 1 if you have the <stdint.h> header file. */
590 /* Define to 1 if you have the <stdlib.h> header file. */
593 /* Define to 1 if you have the `strftime' function. */
596 /* Define to 1 if you have the <strings.h> header file. */
597 #undef HAVE_STRINGS_H
599 /* Define to 1 if you have the <string.h> header file. */
602 /* Define to 1 if you have the `strlcat' function. */
605 /* Define to 1 if you have the `strlcpy' function. */
608 /* Define to 1 if you have the `strptime' function. */
611 /* Define to 1 if you have the `strsep' function. */
614 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
615 #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
617 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
618 #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
620 /* Define if you have Swig libraries and header files. */
623 /* Define to 1 if you have the <syslog.h> header file. */
626 /* Define to 1 if systemd should be used */
629 /* Define to 1 if you have the <sys/endian.h> header file. */
630 #undef HAVE_SYS_ENDIAN_H
632 /* Define to 1 if you have the <sys/ipc.h> header file. */
633 #undef HAVE_SYS_IPC_H
635 /* Define to 1 if you have the <sys/param.h> header file. */
636 #undef HAVE_SYS_PARAM_H
638 /* Define to 1 if you have the <sys/resource.h> header file. */
639 #undef HAVE_SYS_RESOURCE_H
641 /* Define to 1 if you have the <sys/select.h> header file. */
642 #undef HAVE_SYS_SELECT_H
644 /* Define to 1 if you have the <sys/sha2.h> header file. */
645 #undef HAVE_SYS_SHA2_H
647 /* Define to 1 if you have the <sys/shm.h> header file. */
648 #undef HAVE_SYS_SHM_H
650 /* Define to 1 if you have the <sys/socket.h> header file. */
651 #undef HAVE_SYS_SOCKET_H
653 /* Define to 1 if you have the <sys/stat.h> header file. */
654 #undef HAVE_SYS_STAT_H
656 /* Define to 1 if you have the <sys/sysctl.h> header file. */
657 #undef HAVE_SYS_SYSCTL_H
659 /* Define to 1 if you have the <sys/types.h> header file. */
660 #undef HAVE_SYS_TYPES_H
662 /* Define to 1 if you have the <sys/uio.h> header file. */
663 #undef HAVE_SYS_UIO_H
665 /* Define to 1 if you have the <sys/un.h> header file. */
668 /* Define to 1 if you have the <sys/wait.h> header file. */
669 #undef HAVE_SYS_WAIT_H
671 /* Define to 1 if you have the <TargetConditionals.h> header file. */
672 #undef HAVE_TARGETCONDITIONALS_H
674 /* Define to 1 if you have the <time.h> header file. */
677 /* Define to 1 if you have the `tzset' function. */
680 /* Define to 1 if you have the <unistd.h> header file. */
683 /* Define to 1 if you have the `usleep' function. */
686 /* Define to 1 if you have the `vfork' function. */
689 /* Define to 1 if you have the <vfork.h> header file. */
692 /* Define to 1 if you have the <windows.h> header file. */
693 #undef HAVE_WINDOWS_H
695 /* Using Windows threads */
696 #undef HAVE_WINDOWS_THREADS
698 /* Define to 1 if you have the <winsock2.h> header file. */
699 #undef HAVE_WINSOCK2_H
701 /* Define to 1 if `fork' works. */
702 #undef HAVE_WORKING_FORK
704 /* Define to 1 if `vfork' works. */
705 #undef HAVE_WORKING_VFORK
707 /* Define to 1 if you have the `writev' function. */
710 /* Define to 1 if you have the <ws2tcpip.h> header file. */
711 #undef HAVE_WS2TCPIP_H
713 /* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
714 #undef HAVE_X509_VERIFY_PARAM_SET1_HOST
716 /* Define to 1 if you have the `_beginthreadex' function. */
717 #undef HAVE__BEGINTHREADEX
719 /* If HMAC_Init_ex() returns void */
720 #undef HMAC_INIT_EX_RETURNS_VOID
722 /* if lex has yylex_destroy */
723 #undef LEX_HAS_YYLEX_DESTROY
725 /* Define to the sub-directory where libtool stores uninstalled libraries. */
728 /* Define to the maximum message length to pass to syslog. */
729 #undef MAXSYSLOGMSGLEN
731 /* Define if memcmp() does not compare unsigned bytes */
732 #undef MEMCMP_IS_BROKEN
734 /* Define if mkdir has one argument. */
735 #undef MKDIR_HAS_ONE_ARG
737 /* Define if the network stack does not fully support nonblocking io (causes
738 lower performance). */
739 #undef NONBLOCKING_IS_BROKEN
741 /* Put -D_ALL_SOURCE define in config.h */
742 #undef OMITTED__D_ALL_SOURCE
744 /* Put -D_BSD_SOURCE define in config.h */
745 #undef OMITTED__D_BSD_SOURCE
747 /* Put -D_DEFAULT_SOURCE define in config.h */
748 #undef OMITTED__D_DEFAULT_SOURCE
750 /* Put -D_GNU_SOURCE define in config.h */
751 #undef OMITTED__D_GNU_SOURCE
753 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */
754 #undef OMITTED__D_LARGEFILE_SOURCE_1
756 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */
757 #undef OMITTED__D_POSIX_C_SOURCE_200112
759 /* Put -D_XOPEN_SOURCE=600 define in config.h */
760 #undef OMITTED__D_XOPEN_SOURCE_600
762 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
763 #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
765 /* Put -D__EXTENSIONS__ define in config.h */
766 #undef OMITTED__D__EXTENSIONS__
768 /* Define to the address where bug reports for this package should be sent. */
769 #undef PACKAGE_BUGREPORT
771 /* Define to the full name of this package. */
774 /* Define to the full name and version of this package. */
775 #undef PACKAGE_STRING
777 /* Define to the one symbol short name of this package. */
778 #undef PACKAGE_TARNAME
780 /* Define to the home page for this package. */
783 /* Define to the version of this package. */
784 #undef PACKAGE_VERSION
786 /* default pidfile location */
789 /* Define to necessary symbol if this constant uses a non-standard name on
791 #undef PTHREAD_CREATE_JOINABLE
793 /* Return type of signal handlers, but autoconf 2.70 says 'your code may
794 safely assume C89 semantics that RETSIGTYPE is void.' */
797 /* if REUSEPORT is enabled by default */
798 #undef REUSEPORT_DEFAULT
800 /* default rootkey location */
801 #undef ROOT_ANCHOR_FILE
803 /* default rootcert location */
804 #undef ROOT_CERT_FILE
806 /* version number for resource files */
807 #undef RSRC_PACKAGE_VERSION
809 /* Directory to chdir to */
815 /* The size of `pthread_t', as computed by sizeof. */
816 #undef SIZEOF_PTHREAD_T
818 /* The size of `size_t', as computed by sizeof. */
821 /* The size of `time_t', as computed by sizeof. */
824 /* The size of `unsigned long', as computed by sizeof. */
825 #undef SIZEOF_UNSIGNED_LONG
827 /* define if (v)snprintf does not return length needed, (but length used) */
828 #undef SNPRINTF_RET_BROKEN
830 /* Define to 1 if libsodium supports sodium_set_misuse_handler */
831 #undef SODIUM_MISUSE_HANDLER
833 /* Define to 1 if you have the ANSI C header files. */
836 /* use default strptime. */
837 #undef STRPTIME_WORKS
839 /* Use win32 resources and API */
842 /* the SYSLOG_FACILITY to use, default LOG_DAEMON */
843 #undef UB_SYSLOG_FACILITY
845 /* default username */
848 /* use to enable lightweight alloc assertions, for debug use */
849 #undef UNBOUND_ALLOC_LITE
851 /* use malloc not regions, for debug use */
852 #undef UNBOUND_ALLOC_NONREGIONAL
854 /* use statistics for allocs and frees, for debug use */
855 #undef UNBOUND_ALLOC_STATS
857 /* define this to enable debug checks. */
860 /* Define to 1 to use cachedb support */
863 /* Define to 1 to enable dnscrypt support */
866 /* Define to 1 to enable dnscrypt with xchacha20 support */
867 #undef USE_DNSCRYPT_XCHACHA20
869 /* Define to 1 to enable dnstap support */
872 /* Define this to enable DSA support. */
875 /* Define this to enable ECDSA support. */
878 /* Define this to enable an EVP workaround for older openssl */
879 #undef USE_ECDSA_EVP_WORKAROUND
881 /* Define this to enable ED25519 support. */
884 /* Define this to enable ED448 support. */
887 /* Define this to enable GOST support. */
890 /* Define to 1 to use ipsecmod support. */
893 /* Define to 1 to use ipset support */
896 /* Define if you enable libevent */
899 /* Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a
900 default outgoing port range. This is only for the libunbound on Linux and
901 does not affect unbound resolving daemon itself. This may severely limit
902 the number of available outgoing ports and thus decrease randomness. Define
903 this only when the target system restricts (e.g. some of SELinux enabled
904 distributions) the use of non-ephemeral ports. */
905 #undef USE_LINUX_IP_LOCAL_PORT_RANGE
907 /* Define if you want to use internal select based events */
908 #undef USE_MINI_EVENT
910 /* Define this to enable client TCP Fast Open. */
911 #undef USE_MSG_FASTOPEN
913 /* Define this to enable client TCP Fast Open. */
914 #undef USE_OSX_MSG_FASTOPEN
916 /* Define this to use hiredis client. */
919 /* Define this to enable SHA1 support. */
922 /* Define this to enable SHA256 and SHA512 support. */
925 /* Enable extensions on AIX 3, Interix. */
929 /* Enable GNU extensions on systems that have them. */
933 /* Enable threading extensions on Solaris. */
934 #ifndef _POSIX_PTHREAD_SEMANTICS
935 # undef _POSIX_PTHREAD_SEMANTICS
937 /* Enable extensions on HP NonStop. */
938 #ifndef _TANDEM_SOURCE
939 # undef _TANDEM_SOURCE
941 /* Enable general extensions on Solaris. */
942 #ifndef __EXTENSIONS__
943 # undef __EXTENSIONS__
947 /* Define this to enable server TCP Fast Open. */
948 #undef USE_TCP_FASTOPEN
950 /* Whether the windows socket API is used */
953 /* the version of the windows API enabled */
956 /* Define if you want dynlib module. */
957 #undef WITH_DYNLIBMODULE
959 /* Define if you want Python module. */
960 #undef WITH_PYTHONMODULE
962 /* Define if you want PyUnbound. */
963 #undef WITH_PYUNBOUND
965 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
967 #undef YYTEXT_POINTER
969 /* Enable large inode numbers on Mac OS X 10.5. */
970 #ifndef _DARWIN_USE_64_BIT_INODE
971 # define _DARWIN_USE_64_BIT_INODE 1
974 /* Number of bits in a file offset, on hosts where this is settable. */
975 #undef _FILE_OFFSET_BITS
977 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
978 #undef _LARGEFILE_SOURCE
980 /* Define for large files, on AIX-style hosts. */
983 /* Define to 1 if on MINIX. */
986 /* Enable for compile on Minix */
987 #undef _NETBSD_SOURCE
989 /* Define to 2 if the system does not provide POSIX.1 features except with
991 #undef _POSIX_1_SOURCE
993 /* Define to 1 if you need to in order for `stat' and other things to work. */
996 /* defined to use gcc ansi snprintf and sscanf that understands %lld when
997 compiled for windows. */
998 #undef __USE_MINGW_ANSI_STDIO
1000 /* Define to empty if `const' does not conform to ANSI C. */
1003 /* Define to `int' if <sys/types.h> doesn't define. */
1012 /* Define to `__inline__' or `__inline' if that's what the C compiler
1013 calls it, or to nothing if 'inline' is not supported under any name. */
1018 /* Define to `short' if <sys/types.h> does not define. */
1021 /* Define to `int' if <sys/types.h> does not define. */
1024 /* Define to `long long' if <sys/types.h> does not define. */
1027 /* Define to `signed char' if <sys/types.h> does not define. */
1030 /* Define if replacement function should be used. */
1033 /* Define to `long int' if <sys/types.h> does not define. */
1036 /* Define to `int' if <sys/types.h> does not define. */
1039 /* Define to 'int' if not defined */
1042 /* Define to `unsigned int' if <sys/types.h> does not define. */
1045 /* Define to 'int' if not defined */
1048 /* Define to `int' if <sys/types.h> does not define. */
1051 /* Define to 'unsigned char if not defined */
1054 /* Define to `int' if <sys/types.h> doesn't define. */
1057 /* Define to `unsigned short' if <sys/types.h> does not define. */
1060 /* Define to `unsigned int' if <sys/types.h> does not define. */
1063 /* Define to `unsigned long long' if <sys/types.h> does not define. */
1066 /* Define to `unsigned char' if <sys/types.h> does not define. */
1069 /* Define as `fork' if `vfork' does not work. */
1072 #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
1073 #define _GNU_SOURCE 1
1076 #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
1077 #define _BSD_SOURCE 1
1080 #if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
1081 #define _DEFAULT_SOURCE 1
1084 #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
1085 #define __EXTENSIONS__ 1
1088 #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
1089 #define _POSIX_C_SOURCE 200112
1092 #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
1093 #define _XOPEN_SOURCE 600
1096 #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
1097 #define _XOPEN_SOURCE_EXTENDED 1
1100 #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
1101 #define _ALL_SOURCE 1
1104 #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
1105 #define _LARGEFILE_SOURCE 1
1111 #ifndef _OPENBSD_SOURCE
1112 #define _OPENBSD_SOURCE 1
1115 #ifndef UNBOUND_DEBUG
1121 /** Use small-ldns codebase */
1124 # define LDNS_BUILD_CONFIG_HAVE_SSL 1
1137 #ifdef HAVE_STDARG_H
1141 #ifdef HAVE_STDINT_H
1147 #if HAVE_SYS_PARAM_H
1148 #include <sys/param.h>
1151 #ifdef HAVE_SYS_SOCKET_H
1152 #include <sys/socket.h>
1155 #ifdef HAVE_SYS_UIO_H
1156 #include <sys/uio.h>
1159 #ifdef HAVE_NETINET_IN_H
1160 #include <netinet/in.h>
1163 #ifdef HAVE_NETINET_TCP_H
1164 #include <netinet/tcp.h>
1167 #ifdef HAVE_ARPA_INET_H
1168 #include <arpa/inet.h>
1171 #ifdef HAVE_WINSOCK2_H
1172 #include <winsock2.h>
1175 #ifdef HAVE_WS2TCPIP_H
1176 #include <ws2tcpip.h>
1179 #if !defined(USE_WINSOCK) || !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN) || defined(__USE_MINGW_ANSI_STDIO)
1180 #define ARG_LL "%ll"
1182 #define ARG_LL "%I64"
1186 #define AF_LOCAL AF_UNIX
1191 #ifdef HAVE_ATTR_FORMAT
1192 # define ATTR_FORMAT(archetype, string_index, first_to_check) \
1193 __attribute__ ((format (archetype, string_index, first_to_check)))
1194 #else /* !HAVE_ATTR_FORMAT */
1195 # define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1196 #endif /* !HAVE_ATTR_FORMAT */
1199 #if defined(DOXYGEN)
1200 # define ATTR_UNUSED(x) x
1201 #elif defined(__cplusplus)
1202 # define ATTR_UNUSED(x)
1203 #elif defined(HAVE_ATTR_UNUSED)
1204 # define ATTR_UNUSED(x) x __attribute__((unused))
1205 #else /* !HAVE_ATTR_UNUSED */
1206 # define ATTR_UNUSED(x) x
1207 #endif /* !HAVE_ATTR_UNUSED */
1211 #define fseeko fseek
1212 #define ftello ftell
1213 #endif /* HAVE_FSEEKO */
1216 #ifndef MAXHOSTNAMELEN
1217 #define MAXHOSTNAMELEN 256
1220 #if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1221 #define snprintf snprintf_unbound
1222 #define vsnprintf vsnprintf_unbound
1224 int snprintf (char *str, size_t count, const char *fmt, ...);
1225 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
1226 #endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1228 #ifndef HAVE_INET_PTON
1229 #define inet_pton inet_pton_unbound
1230 int inet_pton(int af, const char* src, void* dst);
1231 #endif /* HAVE_INET_PTON */
1234 #ifndef HAVE_INET_NTOP
1235 #define inet_ntop inet_ntop_unbound
1236 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1240 #ifndef HAVE_INET_ATON
1241 #define inet_aton inet_aton_unbound
1242 int inet_aton(const char *cp, struct in_addr *addr);
1246 #ifndef HAVE_MEMMOVE
1247 #define memmove memmove_unbound
1248 void *memmove(void *dest, const void *src, size_t n);
1252 #ifndef HAVE_STRLCAT
1253 #define strlcat strlcat_unbound
1254 size_t strlcat(char *dst, const char *src, size_t siz);
1258 #ifndef HAVE_STRLCPY
1259 #define strlcpy strlcpy_unbound
1260 size_t strlcpy(char *dst, const char *src, size_t siz);
1264 #ifndef HAVE_GMTIME_R
1265 #define gmtime_r gmtime_r_unbound
1266 struct tm *gmtime_r(const time_t *timep, struct tm *result);
1270 #ifndef HAVE_REALLOCARRAY
1271 #define reallocarray reallocarrayunbound
1272 void* reallocarray(void *ptr, size_t nmemb, size_t size);
1276 #if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1277 #define sleep(x) Sleep((x)*1000) /* on win32 */
1278 #endif /* HAVE_SLEEP */
1282 #define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1283 #endif /* HAVE_USLEEP */
1287 #define random rand /* on win32, for tests only (bad random) */
1288 #endif /* HAVE_RANDOM */
1291 #ifndef HAVE_SRANDOM
1292 #define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1293 #endif /* HAVE_SRANDOM */
1296 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1297 #ifdef HAVE_WINSOCK2_H
1298 #define FD_SET_T (u_int)
1304 #ifndef IPV6_MIN_MTU
1305 #define IPV6_MIN_MTU 1280
1306 #endif /* IPV6_MIN_MTU */
1309 #ifdef MEMCMP_IS_BROKEN
1310 #include "compat/memcmp.h"
1311 #define memcmp memcmp_unbound
1312 int memcmp(const void *x, const void *y, size_t n);
1317 #ifndef HAVE_CTIME_R
1318 #define ctime_r unbound_ctime_r
1319 char *ctime_r(const time_t *timep, char *buf);
1323 #define strsep unbound_strsep
1324 char *strsep(char **stringp, const char *delim);
1327 #ifndef HAVE_ISBLANK
1328 #define isblank unbound_isblank
1332 #ifndef HAVE_EXPLICIT_BZERO
1333 #define explicit_bzero unbound_explicit_bzero
1334 void explicit_bzero(void* buf, size_t len);
1337 #if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
1338 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1341 #if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
1342 int inet_pton(int af, const char* src, void* dst);
1345 #if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1346 #define strptime unbound_strptime
1348 char *strptime(const char *s, const char *format, struct tm *tm);
1351 #if !HAVE_DECL_REALLOCARRAY
1352 void *reallocarray(void *ptr, size_t nmemb, size_t size);
1356 #include <bsd/string.h>
1357 #include <bsd/stdlib.h>
1360 #ifdef HAVE_LIBRESSL
1361 # if !HAVE_DECL_STRLCPY
1362 size_t strlcpy(char *dst, const char *src, size_t siz);
1364 # if !HAVE_DECL_STRLCAT
1365 size_t strlcat(char *dst, const char *src, size_t siz);
1367 # if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1368 uint32_t arc4random(void);
1370 # if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1371 uint32_t arc4random_uniform(uint32_t upper_bound);
1373 #endif /* HAVE_LIBRESSL */
1374 #ifndef HAVE_ARC4RANDOM
1375 int getentropy(void* buf, size_t len);
1376 uint32_t arc4random(void);
1377 void arc4random_buf(void* buf, size_t n);
1378 void _ARC4_LOCK(void);
1379 void _ARC4_UNLOCK(void);
1380 void _ARC4_LOCK_DESTROY(void);
1382 #ifndef HAVE_ARC4RANDOM_UNIFORM
1383 uint32_t arc4random_uniform(uint32_t upper_bound);
1385 #ifdef COMPAT_SHA512
1386 #ifndef SHA512_DIGEST_LENGTH
1387 #define SHA512_BLOCK_LENGTH 128
1388 #define SHA512_DIGEST_LENGTH 64
1389 #define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1)
1390 typedef struct _SHA512_CTX {
1392 uint64_t bitcount[2];
1393 uint8_t buffer[SHA512_BLOCK_LENGTH];
1395 #endif /* SHA512_DIGEST_LENGTH */
1396 void SHA512_Init(SHA512_CTX*);
1397 void SHA512_Update(SHA512_CTX*, void*, size_t);
1398 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1399 unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1400 #endif /* COMPAT_SHA512 */
1404 #if defined(HAVE_EVENT_H) && !defined(HAVE_EVENT_BASE_ONCE) && !(defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && (defined(HAVE_PTHREAD) || defined(HAVE_SOLARIS_THREADS))
1405 /* using version of libevent that is not threadsafe. */
1406 # define LIBEVENT_SIGNAL_PROBLEM 1
1409 #ifndef CHECKED_INET6
1410 # define CHECKED_INET6
1414 # define AF_INET6 28
1416 #endif /* CHECKED_INET6 */
1418 #ifndef HAVE_GETADDRINFO
1419 struct sockaddr_storage;
1420 #include "compat/fake-rfc2553.h"
1423 #ifdef UNBOUND_ALLOC_STATS
1424 # define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1425 # define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1426 # define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1427 # define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1428 void *unbound_stat_malloc(size_t size);
1429 void *unbound_stat_calloc(size_t nmemb, size_t size);
1430 void unbound_stat_free(void *ptr);
1431 void *unbound_stat_realloc(void *ptr, size_t size);
1432 void *unbound_stat_malloc_log(size_t size, const char* file, int line,
1434 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1435 int line, const char* func);
1436 void unbound_stat_free_log(void *ptr, const char* file, int line,
1438 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1439 int line, const char* func);
1440 #elif defined(UNBOUND_ALLOC_LITE)
1441 # include "util/alloc.h"
1442 #endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1444 /** default port for DNS traffic. */
1445 #define UNBOUND_DNS_PORT 53
1446 /** default port for DNS over TLS traffic. */
1447 #define UNBOUND_DNS_OVER_TLS_PORT 853
1448 /** default port for DNS over HTTPS traffic. */
1449 #define UNBOUND_DNS_OVER_HTTPS_PORT 443
1450 /** default port for unbound control traffic, registered port with IANA,
1451 ub-dns-control 8953/tcp unbound dns nameserver control */
1452 #define UNBOUND_CONTROL_PORT 8953
1453 /** the version of unbound-control that this software implements */
1454 #define UNBOUND_CONTROL_VERSION 1