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 /* Define this to enable kernel based UDP source port randomization. */
32 #undef DISABLE_EXPLICIT_PORT_RANDOMISATION
34 /* default dnstap socket path */
35 #undef DNSTAP_SOCKET_PATH
37 /* Define if you want to use debug lock checking (slow). */
38 #undef ENABLE_LOCK_CHECKS
40 /* Define this if you enabled-allsymbols from libunbound to link binaries to
41 it for smaller install size, but the libunbound export table is polluted by
43 #undef EXPORT_ALL_SYMBOLS
45 /* Define to 1 if you have the `accept4' function. */
48 /* Define to 1 if you have the `arc4random' function. */
49 #undef HAVE_ARC4RANDOM
51 /* Define to 1 if you have the `arc4random_uniform' function. */
52 #undef HAVE_ARC4RANDOM_UNIFORM
54 /* Define to 1 if you have the <arpa/inet.h> header file. */
55 #undef HAVE_ARPA_INET_H
57 /* Whether the C compiler accepts the "format" attribute */
58 #undef HAVE_ATTR_FORMAT
60 /* Whether the C compiler accepts the "noreturn" attribute */
61 #undef HAVE_ATTR_NORETURN
63 /* Whether the C compiler accepts the "unused" attribute */
64 #undef HAVE_ATTR_UNUSED
66 /* Whether the C compiler accepts the "weak" attribute */
69 /* If we have be64toh */
72 /* Define to 1 if you have the <bsd/stdlib.h> header file. */
73 #undef HAVE_BSD_STDLIB_H
75 /* Define to 1 if you have the <bsd/string.h> header file. */
76 #undef HAVE_BSD_STRING_H
78 /* Define to 1 if you have the `chown' function. */
81 /* Define to 1 if you have the `chroot' function. */
84 /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */
85 #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
87 /* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
88 #undef HAVE_CRYPTO_THREADID_SET_CALLBACK
90 /* Define to 1 if you have the `ctime_r' function. */
93 /* Define to 1 if you have the `daemon' function. */
96 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
98 #undef HAVE_DECL_ARC4RANDOM
100 /* Define to 1 if you have the declaration of `arc4random_uniform', and to 0
102 #undef HAVE_DECL_ARC4RANDOM_UNIFORM
104 /* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if
106 #undef HAVE_DECL_EVSIGNAL_ASSIGN
108 /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
110 #undef HAVE_DECL_INET_NTOP
112 /* Define to 1 if you have the declaration of `inet_pton', and to 0 if you
114 #undef HAVE_DECL_INET_PTON
116 /* Define to 1 if you have the declaration of `nghttp2_session_server_new',
117 and to 0 if you don't. */
118 #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW
120 /* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
122 #undef HAVE_DECL_NID_ED25519
124 /* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you
126 #undef HAVE_DECL_NID_ED448
128 /* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
130 #undef HAVE_DECL_NID_SECP384R1
132 /* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
134 #undef HAVE_DECL_NID_X9_62_PRIME256V1
136 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
138 #undef HAVE_DECL_REALLOCARRAY
140 /* Define to 1 if you have the declaration of `redisConnect', and to 0 if you
142 #undef HAVE_DECL_REDISCONNECT
144 /* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0
146 #undef HAVE_DECL_SK_SSL_COMP_POP_FREE
148 /* Define to 1 if you have the declaration of
149 `SSL_COMP_get_compression_methods', and to 0 if you don't. */
150 #undef HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
152 /* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to
154 #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO
156 /* Define to 1 if you have the declaration of `strlcat', and to 0 if you
158 #undef HAVE_DECL_STRLCAT
160 /* Define to 1 if you have the declaration of `strlcpy', and to 0 if you
162 #undef HAVE_DECL_STRLCPY
164 /* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if
166 #undef HAVE_DECL_XML_STOPPARSER
168 /* Define to 1 if you have the <dlfcn.h> header file. */
171 /* Define to 1 if you have the `DSA_SIG_set0' function. */
172 #undef HAVE_DSA_SIG_SET0
174 /* Define to 1 if you have the <endian.h> header file. */
177 /* Define to 1 if you have the `endprotoent' function. */
178 #undef HAVE_ENDPROTOENT
180 /* Define to 1 if you have the `endpwent' function. */
183 /* Define to 1 if you have the `endservent' function. */
184 #undef HAVE_ENDSERVENT
186 /* Define to 1 if you have the `ENGINE_cleanup' function. */
187 #undef HAVE_ENGINE_CLEANUP
189 /* Define to 1 if you have the `ERR_free_strings' function. */
190 #undef HAVE_ERR_FREE_STRINGS
192 /* Define to 1 if you have the `ERR_load_crypto_strings' function. */
193 #undef HAVE_ERR_LOAD_CRYPTO_STRINGS
195 /* Define to 1 if you have the `event_assign' function. */
196 #undef HAVE_EVENT_ASSIGN
198 /* Define to 1 if you have the `event_base_free' function. */
199 #undef HAVE_EVENT_BASE_FREE
201 /* Define to 1 if you have the `event_base_get_method' function. */
202 #undef HAVE_EVENT_BASE_GET_METHOD
204 /* Define to 1 if you have the `event_base_new' function. */
205 #undef HAVE_EVENT_BASE_NEW
207 /* Define to 1 if you have the `event_base_once' function. */
208 #undef HAVE_EVENT_BASE_ONCE
210 /* Define to 1 if you have the <event.h> header file. */
213 /* Define to 1 if you have the `EVP_aes_256_cbc' function. */
214 #undef HAVE_EVP_AES_256_CBC
216 /* Define to 1 if you have the `EVP_cleanup' function. */
217 #undef HAVE_EVP_CLEANUP
219 /* Define to 1 if you have the `EVP_DigestVerify' function. */
220 #undef HAVE_EVP_DIGESTVERIFY
222 /* Define to 1 if you have the `EVP_dss1' function. */
225 /* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
226 #undef HAVE_EVP_ENCRYPTINIT_EX
228 /* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
229 #undef HAVE_EVP_MAC_CTX_SET_PARAMS
231 /* Define to 1 if you have the `EVP_MD_CTX_new' function. */
232 #undef HAVE_EVP_MD_CTX_NEW
234 /* Define to 1 if you have the `EVP_sha1' function. */
237 /* Define to 1 if you have the `EVP_sha256' function. */
238 #undef HAVE_EVP_SHA256
240 /* Define to 1 if you have the `EVP_sha512' function. */
241 #undef HAVE_EVP_SHA512
243 /* Define to 1 if you have the `ev_default_loop' function. */
244 #undef HAVE_EV_DEFAULT_LOOP
246 /* Define to 1 if you have the `ev_loop' function. */
249 /* Define to 1 if you have the <expat.h> header file. */
252 /* Define to 1 if you have the `explicit_bzero' function. */
253 #undef HAVE_EXPLICIT_BZERO
255 /* Define to 1 if you have the `fcntl' function. */
258 /* Define to 1 if you have the `FIPS_mode' function. */
259 #undef HAVE_FIPS_MODE
261 /* Define to 1 if you have the `fork' function. */
264 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
267 /* Define to 1 if you have the `fsync' function. */
270 /* Whether getaddrinfo is available */
271 #undef HAVE_GETADDRINFO
273 /* Define to 1 if you have the `getauxval' function. */
274 #undef HAVE_GETAUXVAL
276 /* Define to 1 if you have the `getentropy' function. */
277 #undef HAVE_GETENTROPY
279 /* Define to 1 if you have the `getifaddrs' function. */
280 #undef HAVE_GETIFADDRS
282 /* Define to 1 if you have the <getopt.h> header file. */
285 /* Define to 1 if you have the `getpwnam' function. */
288 /* Define to 1 if you have the `getrlimit' function. */
289 #undef HAVE_GETRLIMIT
291 /* Define to 1 if you have the `glob' function. */
294 /* Define to 1 if you have the <glob.h> header file. */
297 /* Define to 1 if you have the `gmtime_r' function. */
300 /* Define to 1 if you have the <grp.h> header file. */
303 /* Define to 1 if you have the <hiredis/hiredis.h> header file. */
304 #undef HAVE_HIREDIS_HIREDIS_H
306 /* Define to 1 if you have the `HMAC_Init_ex' function. */
307 #undef HAVE_HMAC_INIT_EX
309 /* If we have htobe64 */
312 /* Define to 1 if you have the <ifaddrs.h> header file. */
313 #undef HAVE_IFADDRS_H
315 /* Define to 1 if you have the `inet_aton' function. */
316 #undef HAVE_INET_ATON
318 /* Define to 1 if you have the `inet_ntop' function. */
319 #undef HAVE_INET_NTOP
321 /* Define to 1 if you have the `inet_pton' function. */
322 #undef HAVE_INET_PTON
324 /* Define to 1 if you have the `initgroups' function. */
325 #undef HAVE_INITGROUPS
327 /* Define to 1 if you have the <inttypes.h> header file. */
328 #undef HAVE_INTTYPES_H
330 /* if the function 'ioctlsocket' is available */
331 #undef HAVE_IOCTLSOCKET
333 /* Define to 1 if you have the <iphlpapi.h> header file. */
334 #undef HAVE_IPHLPAPI_H
336 /* Define to 1 if you have the `isblank' function. */
339 /* Define to 1 if you have the `kill' function. */
342 /* Use portable libbsd functions */
345 /* Define to 1 if you have the <libkern/OSByteOrder.h> header file. */
346 #undef HAVE_LIBKERN_OSBYTEORDER_H
348 /* Define if we have LibreSSL */
351 /* Define to 1 if you have the `localtime_r' function. */
352 #undef HAVE_LOCALTIME_R
354 /* Define to 1 if you have the <login_cap.h> header file. */
355 #undef HAVE_LOGIN_CAP_H
357 /* If have GNU libc compatible malloc */
360 /* Define to 1 if you have the `memmove' function. */
363 /* Define to 1 if you have the <memory.h> header file. */
366 /* Define to 1 if you have the <netdb.h> header file. */
369 /* Define to 1 if you have the <netinet/in.h> header file. */
370 #undef HAVE_NETINET_IN_H
372 /* Define to 1 if you have the <netinet/tcp.h> header file. */
373 #undef HAVE_NETINET_TCP_H
375 /* Use libnettle for crypto */
378 /* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
379 #undef HAVE_NETTLE_DSA_COMPAT_H
381 /* Define to 1 if you have the <nettle/eddsa.h> header file. */
382 #undef HAVE_NETTLE_EDDSA_H
384 /* Define to 1 if you have the <net/if.h> header file. */
387 /* Define this to use nghttp2 client. */
390 /* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */
391 #undef HAVE_NGHTTP2_NGHTTP2_H
393 /* Use libnss for crypto */
396 /* Define to 1 if you have the `OpenSSL_add_all_digests' function. */
397 #undef HAVE_OPENSSL_ADD_ALL_DIGESTS
399 /* Define to 1 if you have the <openssl/bn.h> header file. */
400 #undef HAVE_OPENSSL_BN_H
402 /* Define to 1 if you have the `OPENSSL_config' function. */
403 #undef HAVE_OPENSSL_CONFIG
405 /* Define to 1 if you have the <openssl/conf.h> header file. */
406 #undef HAVE_OPENSSL_CONF_H
408 /* Define to 1 if you have the <openssl/core_names.h> header file. */
409 #undef HAVE_OPENSSL_CORE_NAMES_H
411 /* Define to 1 if you have the <openssl/dh.h> header file. */
412 #undef HAVE_OPENSSL_DH_H
414 /* Define to 1 if you have the <openssl/dsa.h> header file. */
415 #undef HAVE_OPENSSL_DSA_H
417 /* Define to 1 if you have the <openssl/engine.h> header file. */
418 #undef HAVE_OPENSSL_ENGINE_H
420 /* Define to 1 if you have the <openssl/err.h> header file. */
421 #undef HAVE_OPENSSL_ERR_H
423 /* Define to 1 if you have the `OPENSSL_init_crypto' function. */
424 #undef HAVE_OPENSSL_INIT_CRYPTO
426 /* Define to 1 if you have the `OPENSSL_init_ssl' function. */
427 #undef HAVE_OPENSSL_INIT_SSL
429 /* Define to 1 if you have the <openssl/rand.h> header file. */
430 #undef HAVE_OPENSSL_RAND_H
432 /* Define to 1 if you have the <openssl/rsa.h> header file. */
433 #undef HAVE_OPENSSL_RSA_H
435 /* Define to 1 if you have the <openssl/ssl.h> header file. */
436 #undef HAVE_OPENSSL_SSL_H
438 /* Define if you have POSIX threads libraries and header files. */
441 /* Have PTHREAD_PRIO_INHERIT. */
442 #undef HAVE_PTHREAD_PRIO_INHERIT
444 /* Define to 1 if the system has the type `pthread_rwlock_t'. */
445 #undef HAVE_PTHREAD_RWLOCK_T
447 /* Define to 1 if the system has the type `pthread_spinlock_t'. */
448 #undef HAVE_PTHREAD_SPINLOCK_T
450 /* Define to 1 if you have the <pwd.h> header file. */
453 /* Define if you have Python libraries and header files. */
456 /* Define to 1 if you have the `random' function. */
459 /* Define to 1 if you have the `RAND_cleanup' function. */
460 #undef HAVE_RAND_CLEANUP
462 /* If we have reallocarray(3) */
463 #undef HAVE_REALLOCARRAY
465 /* Define to 1 if you have the `recvmsg' function. */
468 /* Define to 1 if you have the `sendmsg' function. */
471 /* Define to 1 if you have the `setregid' function. */
474 /* Define to 1 if you have the `setresgid' function. */
475 #undef HAVE_SETRESGID
477 /* Define to 1 if you have the `setresuid' function. */
478 #undef HAVE_SETRESUID
480 /* Define to 1 if you have the `setreuid' function. */
483 /* Define to 1 if you have the `setrlimit' function. */
484 #undef HAVE_SETRLIMIT
486 /* Define to 1 if you have the `setsid' function. */
489 /* Define to 1 if you have the `setusercontext' function. */
490 #undef HAVE_SETUSERCONTEXT
492 /* Define to 1 if you have the `SHA512_Update' function. */
493 #undef HAVE_SHA512_UPDATE
495 /* Define to 1 if you have the `shmget' function. */
498 /* Define to 1 if you have the `sigprocmask' function. */
499 #undef HAVE_SIGPROCMASK
501 /* Define to 1 if you have the `sleep' function. */
504 /* Define to 1 if you have the `snprintf' function. */
507 /* Define to 1 if you have the `socketpair' function. */
508 #undef HAVE_SOCKETPAIR
510 /* Using Solaris threads */
511 #undef HAVE_SOLARIS_THREADS
513 /* Define to 1 if you have the `srandom' function. */
516 /* Define if you have the SSL libraries installed. */
519 /* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */
520 #undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB
522 /* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
523 #undef HAVE_SSL_CTX_SET_CIPHERSUITES
525 /* Define to 1 if you have the `SSL_CTX_set_security_level' function. */
526 #undef HAVE_SSL_CTX_SET_SECURITY_LEVEL
528 /* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb'
530 #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
532 /* Define to 1 if you have the `SSL_get0_peername' function. */
533 #undef HAVE_SSL_GET0_PEERNAME
535 /* Define to 1 if you have the `SSL_set1_host' function. */
536 #undef HAVE_SSL_SET1_HOST
538 /* Define to 1 if you have the <stdarg.h> header file. */
541 /* Define to 1 if you have the <stdbool.h> header file. */
542 #undef HAVE_STDBOOL_H
544 /* Define to 1 if you have the <stdint.h> header file. */
547 /* Define to 1 if you have the <stdlib.h> header file. */
550 /* Define to 1 if you have the `strftime' function. */
553 /* Define to 1 if you have the <strings.h> header file. */
554 #undef HAVE_STRINGS_H
556 /* Define to 1 if you have the <string.h> header file. */
559 /* Define to 1 if you have the `strlcat' function. */
562 /* Define to 1 if you have the `strlcpy' function. */
565 /* Define to 1 if you have the `strptime' function. */
568 /* Define to 1 if you have the `strsep' function. */
571 /* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */
572 #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST
574 /* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */
575 #undef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
577 /* Define if you have Swig libraries and header files. */
580 /* Define to 1 if you have the <syslog.h> header file. */
583 /* Define to 1 if systemd should be used */
586 /* Define to 1 if you have the <sys/endian.h> header file. */
587 #undef HAVE_SYS_ENDIAN_H
589 /* Define to 1 if you have the <sys/ipc.h> header file. */
590 #undef HAVE_SYS_IPC_H
592 /* Define to 1 if you have the <sys/param.h> header file. */
593 #undef HAVE_SYS_PARAM_H
595 /* Define to 1 if you have the <sys/resource.h> header file. */
596 #undef HAVE_SYS_RESOURCE_H
598 /* Define to 1 if you have the <sys/select.h> header file. */
599 #undef HAVE_SYS_SELECT_H
601 /* Define to 1 if you have the <sys/sha2.h> header file. */
602 #undef HAVE_SYS_SHA2_H
604 /* Define to 1 if you have the <sys/shm.h> header file. */
605 #undef HAVE_SYS_SHM_H
607 /* Define to 1 if you have the <sys/socket.h> header file. */
608 #undef HAVE_SYS_SOCKET_H
610 /* Define to 1 if you have the <sys/stat.h> header file. */
611 #undef HAVE_SYS_STAT_H
613 /* Define to 1 if you have the <sys/sysctl.h> header file. */
614 #undef HAVE_SYS_SYSCTL_H
616 /* Define to 1 if you have the <sys/types.h> header file. */
617 #undef HAVE_SYS_TYPES_H
619 /* Define to 1 if you have the <sys/uio.h> header file. */
620 #undef HAVE_SYS_UIO_H
622 /* Define to 1 if you have the <sys/un.h> header file. */
625 /* Define to 1 if you have the <sys/wait.h> header file. */
626 #undef HAVE_SYS_WAIT_H
628 /* Define to 1 if you have the <TargetConditionals.h> header file. */
629 #undef HAVE_TARGETCONDITIONALS_H
631 /* Define to 1 if you have the <time.h> header file. */
634 /* Define to 1 if you have the `tzset' function. */
637 /* Define to 1 if you have the <unistd.h> header file. */
640 /* Define to 1 if you have the `usleep' function. */
643 /* Define to 1 if you have the `vfork' function. */
646 /* Define to 1 if you have the <vfork.h> header file. */
649 /* Define to 1 if you have the <windows.h> header file. */
650 #undef HAVE_WINDOWS_H
652 /* Using Windows threads */
653 #undef HAVE_WINDOWS_THREADS
655 /* Define to 1 if you have the <winsock2.h> header file. */
656 #undef HAVE_WINSOCK2_H
658 /* Define to 1 if `fork' works. */
659 #undef HAVE_WORKING_FORK
661 /* Define to 1 if `vfork' works. */
662 #undef HAVE_WORKING_VFORK
664 /* Define to 1 if you have the `writev' function. */
667 /* Define to 1 if you have the <ws2tcpip.h> header file. */
668 #undef HAVE_WS2TCPIP_H
670 /* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */
671 #undef HAVE_X509_VERIFY_PARAM_SET1_HOST
673 /* Define to 1 if you have the `_beginthreadex' function. */
674 #undef HAVE__BEGINTHREADEX
676 /* If HMAC_Init_ex() returns void */
677 #undef HMAC_INIT_EX_RETURNS_VOID
679 /* if lex has yylex_destroy */
680 #undef LEX_HAS_YYLEX_DESTROY
682 /* Define to the sub-directory where libtool stores uninstalled libraries. */
685 /* Define to the maximum message length to pass to syslog. */
686 #undef MAXSYSLOGMSGLEN
688 /* Define if memcmp() does not compare unsigned bytes */
689 #undef MEMCMP_IS_BROKEN
691 /* Define if mkdir has one argument. */
692 #undef MKDIR_HAS_ONE_ARG
694 /* Define if the network stack does not fully support nonblocking io (causes
695 lower performance). */
696 #undef NONBLOCKING_IS_BROKEN
698 /* Put -D_ALL_SOURCE define in config.h */
699 #undef OMITTED__D_ALL_SOURCE
701 /* Put -D_BSD_SOURCE define in config.h */
702 #undef OMITTED__D_BSD_SOURCE
704 /* Put -D_DEFAULT_SOURCE define in config.h */
705 #undef OMITTED__D_DEFAULT_SOURCE
707 /* Put -D_GNU_SOURCE define in config.h */
708 #undef OMITTED__D_GNU_SOURCE
710 /* Put -D_LARGEFILE_SOURCE=1 define in config.h */
711 #undef OMITTED__D_LARGEFILE_SOURCE_1
713 /* Put -D_POSIX_C_SOURCE=200112 define in config.h */
714 #undef OMITTED__D_POSIX_C_SOURCE_200112
716 /* Put -D_XOPEN_SOURCE=600 define in config.h */
717 #undef OMITTED__D_XOPEN_SOURCE_600
719 /* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */
720 #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1
722 /* Put -D__EXTENSIONS__ define in config.h */
723 #undef OMITTED__D__EXTENSIONS__
725 /* Define to the address where bug reports for this package should be sent. */
726 #undef PACKAGE_BUGREPORT
728 /* Define to the full name of this package. */
731 /* Define to the full name and version of this package. */
732 #undef PACKAGE_STRING
734 /* Define to the one symbol short name of this package. */
735 #undef PACKAGE_TARNAME
737 /* Define to the home page for this package. */
740 /* Define to the version of this package. */
741 #undef PACKAGE_VERSION
743 /* default pidfile location */
746 /* Define to necessary symbol if this constant uses a non-standard name on
748 #undef PTHREAD_CREATE_JOINABLE
750 /* Define as the return type of signal handlers (`int' or `void'). */
753 /* if REUSEPORT is enabled by default */
754 #undef REUSEPORT_DEFAULT
756 /* default rootkey location */
757 #undef ROOT_ANCHOR_FILE
759 /* default rootcert location */
760 #undef ROOT_CERT_FILE
762 /* version number for resource files */
763 #undef RSRC_PACKAGE_VERSION
765 /* Directory to chdir to */
771 /* The size of `size_t', as computed by sizeof. */
774 /* The size of `time_t', as computed by sizeof. */
777 /* define if (v)snprintf does not return length needed, (but length used) */
778 #undef SNPRINTF_RET_BROKEN
780 /* Define to 1 if libsodium supports sodium_set_misuse_handler */
781 #undef SODIUM_MISUSE_HANDLER
783 /* Define to 1 if you have the ANSI C header files. */
786 /* use default strptime. */
787 #undef STRPTIME_WORKS
789 /* Use win32 resources and API */
792 /* the SYSLOG_FACILITY to use, default LOG_DAEMON */
793 #undef UB_SYSLOG_FACILITY
795 /* default username */
798 /* use to enable lightweight alloc assertions, for debug use */
799 #undef UNBOUND_ALLOC_LITE
801 /* use malloc not regions, for debug use */
802 #undef UNBOUND_ALLOC_NONREGIONAL
804 /* use statistics for allocs and frees, for debug use */
805 #undef UNBOUND_ALLOC_STATS
807 /* define this to enable debug checks. */
810 /* Define to 1 to use cachedb support */
813 /* Define to 1 to enable dnscrypt support */
816 /* Define to 1 to enable dnscrypt with xchacha20 support */
817 #undef USE_DNSCRYPT_XCHACHA20
819 /* Define to 1 to enable dnstap support */
822 /* Define this to enable DSA support. */
825 /* Define this to enable ECDSA support. */
828 /* Define this to enable an EVP workaround for older openssl */
829 #undef USE_ECDSA_EVP_WORKAROUND
831 /* Define this to enable ED25519 support. */
834 /* Define this to enable ED448 support. */
837 /* Define this to enable GOST support. */
840 /* Define to 1 to use ipsecmod support. */
843 /* Define to 1 to use ipset support */
846 /* Define if you enable libevent */
849 /* Define if you want to use internal select based events */
850 #undef USE_MINI_EVENT
852 /* Define this to enable client TCP Fast Open. */
853 #undef USE_MSG_FASTOPEN
855 /* Define this to enable client TCP Fast Open. */
856 #undef USE_OSX_MSG_FASTOPEN
858 /* Define this to use hiredis client. */
861 /* Define this to enable SHA1 support. */
864 /* Define this to enable SHA256 and SHA512 support. */
867 /* Enable extensions on AIX 3, Interix. */
871 /* Enable GNU extensions on systems that have them. */
875 /* Enable threading extensions on Solaris. */
876 #ifndef _POSIX_PTHREAD_SEMANTICS
877 # undef _POSIX_PTHREAD_SEMANTICS
879 /* Enable extensions on HP NonStop. */
880 #ifndef _TANDEM_SOURCE
881 # undef _TANDEM_SOURCE
883 /* Enable general extensions on Solaris. */
884 #ifndef __EXTENSIONS__
885 # undef __EXTENSIONS__
889 /* Define this to enable server TCP Fast Open. */
890 #undef USE_TCP_FASTOPEN
892 /* Whether the windows socket API is used */
895 /* the version of the windows API enabled */
898 /* Define if you want dynlib module. */
899 #undef WITH_DYNLIBMODULE
901 /* Define if you want Python module. */
902 #undef WITH_PYTHONMODULE
904 /* Define if you want PyUnbound. */
905 #undef WITH_PYUNBOUND
907 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
909 #undef YYTEXT_POINTER
911 /* Enable large inode numbers on Mac OS X 10.5. */
912 #ifndef _DARWIN_USE_64_BIT_INODE
913 # define _DARWIN_USE_64_BIT_INODE 1
916 /* Number of bits in a file offset, on hosts where this is settable. */
917 #undef _FILE_OFFSET_BITS
919 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
920 #undef _LARGEFILE_SOURCE
922 /* Define for large files, on AIX-style hosts. */
925 /* Define to 1 if on MINIX. */
928 /* Enable for compile on Minix */
929 #undef _NETBSD_SOURCE
931 /* Define to 2 if the system does not provide POSIX.1 features except with
933 #undef _POSIX_1_SOURCE
935 /* Define to 1 if you need to in order for `stat' and other things to work. */
938 /* Define to empty if `const' does not conform to ANSI C. */
941 /* Define to `int' if <sys/types.h> doesn't define. */
950 /* Define to `__inline__' or `__inline' if that's what the C compiler
951 calls it, or to nothing if 'inline' is not supported under any name. */
956 /* Define to `short' if <sys/types.h> does not define. */
959 /* Define to `int' if <sys/types.h> does not define. */
962 /* Define to `long long' if <sys/types.h> does not define. */
965 /* Define to `signed char' if <sys/types.h> does not define. */
968 /* Define if replacement function should be used. */
971 /* Define to `long int' if <sys/types.h> does not define. */
974 /* Define to `int' if <sys/types.h> does not define. */
977 /* Define to 'int' if not defined */
980 /* Define to `unsigned int' if <sys/types.h> does not define. */
983 /* Define to 'int' if not defined */
986 /* Define to `int' if <sys/types.h> does not define. */
989 /* Define to 'unsigned char if not defined */
992 /* Define to `int' if <sys/types.h> doesn't define. */
995 /* Define to `unsigned short' if <sys/types.h> does not define. */
998 /* Define to `unsigned int' if <sys/types.h> does not define. */
1001 /* Define to `unsigned long long' if <sys/types.h> does not define. */
1004 /* Define to `unsigned char' if <sys/types.h> does not define. */
1007 /* Define as `fork' if `vfork' does not work. */
1010 #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE)
1011 #define _GNU_SOURCE 1
1014 #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE)
1015 #define _BSD_SOURCE 1
1018 #if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE)
1019 #define _DEFAULT_SOURCE 1
1022 #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__)
1023 #define __EXTENSIONS__ 1
1026 #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE)
1027 #define _POSIX_C_SOURCE 200112
1030 #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE)
1031 #define _XOPEN_SOURCE 600
1034 #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED)
1035 #define _XOPEN_SOURCE_EXTENDED 1
1038 #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE)
1039 #define _ALL_SOURCE 1
1042 #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE)
1043 #define _LARGEFILE_SOURCE 1
1049 #ifndef _OPENBSD_SOURCE
1050 #define _OPENBSD_SOURCE 1
1053 #ifndef UNBOUND_DEBUG
1059 /** Use small-ldns codebase */
1062 # define LDNS_BUILD_CONFIG_HAVE_SSL 1
1075 #ifdef HAVE_STDARG_H
1079 #ifdef HAVE_STDINT_H
1085 #if HAVE_SYS_PARAM_H
1086 #include <sys/param.h>
1089 #ifdef HAVE_SYS_SOCKET_H
1090 #include <sys/socket.h>
1093 #ifdef HAVE_SYS_UIO_H
1094 #include <sys/uio.h>
1097 #ifdef HAVE_NETINET_IN_H
1098 #include <netinet/in.h>
1101 #ifdef HAVE_NETINET_TCP_H
1102 #include <netinet/tcp.h>
1105 #ifdef HAVE_ARPA_INET_H
1106 #include <arpa/inet.h>
1109 #ifdef HAVE_WINSOCK2_H
1110 #include <winsock2.h>
1113 #ifdef HAVE_WS2TCPIP_H
1114 #include <ws2tcpip.h>
1118 #define ARG_LL "%ll"
1120 #define ARG_LL "%I64"
1124 #define AF_LOCAL AF_UNIX
1129 #ifdef HAVE_ATTR_FORMAT
1130 # define ATTR_FORMAT(archetype, string_index, first_to_check) \
1131 __attribute__ ((format (archetype, string_index, first_to_check)))
1132 #else /* !HAVE_ATTR_FORMAT */
1133 # define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
1134 #endif /* !HAVE_ATTR_FORMAT */
1137 #if defined(DOXYGEN)
1138 # define ATTR_UNUSED(x) x
1139 #elif defined(__cplusplus)
1140 # define ATTR_UNUSED(x)
1141 #elif defined(HAVE_ATTR_UNUSED)
1142 # define ATTR_UNUSED(x) x __attribute__((unused))
1143 #else /* !HAVE_ATTR_UNUSED */
1144 # define ATTR_UNUSED(x) x
1145 #endif /* !HAVE_ATTR_UNUSED */
1149 #define fseeko fseek
1150 #define ftello ftell
1151 #endif /* HAVE_FSEEKO */
1154 #ifndef MAXHOSTNAMELEN
1155 #define MAXHOSTNAMELEN 256
1158 #if !defined(HAVE_SNPRINTF) || defined(SNPRINTF_RET_BROKEN)
1159 #define snprintf snprintf_unbound
1160 #define vsnprintf vsnprintf_unbound
1162 int snprintf (char *str, size_t count, const char *fmt, ...);
1163 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
1164 #endif /* HAVE_SNPRINTF or SNPRINTF_RET_BROKEN */
1166 #ifndef HAVE_INET_PTON
1167 #define inet_pton inet_pton_unbound
1168 int inet_pton(int af, const char* src, void* dst);
1169 #endif /* HAVE_INET_PTON */
1172 #ifndef HAVE_INET_NTOP
1173 #define inet_ntop inet_ntop_unbound
1174 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1178 #ifndef HAVE_INET_ATON
1179 #define inet_aton inet_aton_unbound
1180 int inet_aton(const char *cp, struct in_addr *addr);
1184 #ifndef HAVE_MEMMOVE
1185 #define memmove memmove_unbound
1186 void *memmove(void *dest, const void *src, size_t n);
1190 #ifndef HAVE_STRLCAT
1191 #define strlcat strlcat_unbound
1192 size_t strlcat(char *dst, const char *src, size_t siz);
1196 #ifndef HAVE_STRLCPY
1197 #define strlcpy strlcpy_unbound
1198 size_t strlcpy(char *dst, const char *src, size_t siz);
1202 #ifndef HAVE_GMTIME_R
1203 #define gmtime_r gmtime_r_unbound
1204 struct tm *gmtime_r(const time_t *timep, struct tm *result);
1208 #ifndef HAVE_REALLOCARRAY
1209 #define reallocarray reallocarrayunbound
1210 void* reallocarray(void *ptr, size_t nmemb, size_t size);
1214 #if !defined(HAVE_SLEEP) || defined(HAVE_WINDOWS_H)
1215 #define sleep(x) Sleep((x)*1000) /* on win32 */
1216 #endif /* HAVE_SLEEP */
1220 #define usleep(x) Sleep((x)/1000 + 1) /* on win32 */
1221 #endif /* HAVE_USLEEP */
1225 #define random rand /* on win32, for tests only (bad random) */
1226 #endif /* HAVE_RANDOM */
1229 #ifndef HAVE_SRANDOM
1230 #define srandom(x) srand(x) /* on win32, for tests only (bad random) */
1231 #endif /* HAVE_SRANDOM */
1234 /* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
1235 #ifdef HAVE_WINSOCK2_H
1236 #define FD_SET_T (u_int)
1242 #ifndef IPV6_MIN_MTU
1243 #define IPV6_MIN_MTU 1280
1244 #endif /* IPV6_MIN_MTU */
1247 #ifdef MEMCMP_IS_BROKEN
1248 #include "compat/memcmp.h"
1249 #define memcmp memcmp_unbound
1250 int memcmp(const void *x, const void *y, size_t n);
1255 #ifndef HAVE_CTIME_R
1256 #define ctime_r unbound_ctime_r
1257 char *ctime_r(const time_t *timep, char *buf);
1261 #define strsep unbound_strsep
1262 char *strsep(char **stringp, const char *delim);
1265 #ifndef HAVE_ISBLANK
1266 #define isblank unbound_isblank
1270 #ifndef HAVE_EXPLICIT_BZERO
1271 #define explicit_bzero unbound_explicit_bzero
1272 void explicit_bzero(void* buf, size_t len);
1275 #if defined(HAVE_INET_NTOP) && !HAVE_DECL_INET_NTOP
1276 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
1279 #if defined(HAVE_INET_PTON) && !HAVE_DECL_INET_PTON
1280 int inet_pton(int af, const char* src, void* dst);
1283 #if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
1284 #define strptime unbound_strptime
1286 char *strptime(const char *s, const char *format, struct tm *tm);
1289 #if !HAVE_DECL_REALLOCARRAY
1290 void *reallocarray(void *ptr, size_t nmemb, size_t size);
1294 #include <bsd/string.h>
1295 #include <bsd/stdlib.h>
1298 #ifdef HAVE_LIBRESSL
1299 # if !HAVE_DECL_STRLCPY
1300 size_t strlcpy(char *dst, const char *src, size_t siz);
1302 # if !HAVE_DECL_STRLCAT
1303 size_t strlcat(char *dst, const char *src, size_t siz);
1305 # if !HAVE_DECL_ARC4RANDOM && defined(HAVE_ARC4RANDOM)
1306 uint32_t arc4random(void);
1308 # if !HAVE_DECL_ARC4RANDOM_UNIFORM && defined(HAVE_ARC4RANDOM_UNIFORM)
1309 uint32_t arc4random_uniform(uint32_t upper_bound);
1311 #endif /* HAVE_LIBRESSL */
1312 #ifndef HAVE_ARC4RANDOM
1313 int getentropy(void* buf, size_t len);
1314 uint32_t arc4random(void);
1315 void arc4random_buf(void* buf, size_t n);
1316 void _ARC4_LOCK(void);
1317 void _ARC4_UNLOCK(void);
1318 void _ARC4_LOCK_DESTROY(void);
1320 #ifndef HAVE_ARC4RANDOM_UNIFORM
1321 uint32_t arc4random_uniform(uint32_t upper_bound);
1323 #ifdef COMPAT_SHA512
1324 #ifndef SHA512_DIGEST_LENGTH
1325 #define SHA512_BLOCK_LENGTH 128
1326 #define SHA512_DIGEST_LENGTH 64
1327 #define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1)
1328 typedef struct _SHA512_CTX {
1330 uint64_t bitcount[2];
1331 uint8_t buffer[SHA512_BLOCK_LENGTH];
1333 #endif /* SHA512_DIGEST_LENGTH */
1334 void SHA512_Init(SHA512_CTX*);
1335 void SHA512_Update(SHA512_CTX*, void*, size_t);
1336 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
1337 unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest);
1338 #endif /* COMPAT_SHA512 */
1342 #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))
1343 /* using version of libevent that is not threadsafe. */
1344 # define LIBEVENT_SIGNAL_PROBLEM 1
1347 #ifndef CHECKED_INET6
1348 # define CHECKED_INET6
1352 # define AF_INET6 28
1354 #endif /* CHECKED_INET6 */
1356 #ifndef HAVE_GETADDRINFO
1357 struct sockaddr_storage;
1358 #include "compat/fake-rfc2553.h"
1361 #ifdef UNBOUND_ALLOC_STATS
1362 # define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
1363 # define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
1364 # define free(p) unbound_stat_free_log(p, __FILE__, __LINE__, __func__)
1365 # define realloc(p,s) unbound_stat_realloc_log(p, s, __FILE__, __LINE__, __func__)
1366 void *unbound_stat_malloc(size_t size);
1367 void *unbound_stat_calloc(size_t nmemb, size_t size);
1368 void unbound_stat_free(void *ptr);
1369 void *unbound_stat_realloc(void *ptr, size_t size);
1370 void *unbound_stat_malloc_log(size_t size, const char* file, int line,
1372 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
1373 int line, const char* func);
1374 void unbound_stat_free_log(void *ptr, const char* file, int line,
1376 void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
1377 int line, const char* func);
1378 #elif defined(UNBOUND_ALLOC_LITE)
1379 # include "util/alloc.h"
1380 #endif /* UNBOUND_ALLOC_LITE and UNBOUND_ALLOC_STATS */
1382 /** default port for DNS traffic. */
1383 #define UNBOUND_DNS_PORT 53
1384 /** default port for DNS over TLS traffic. */
1385 #define UNBOUND_DNS_OVER_TLS_PORT 853
1386 /** default port for DNS over HTTPS traffic. */
1387 #define UNBOUND_DNS_OVER_HTTPS_PORT 443
1388 /** default port for unbound control traffic, registered port with IANA,
1389 ub-dns-control 8953/tcp unbound dns nameserver control */
1390 #define UNBOUND_CONTROL_PORT 8953
1391 /** the version of unbound-control that this software implements */
1392 #define UNBOUND_CONTROL_VERSION 1