config.h revision 245163
1135549Sdes/* $FreeBSD: stable/9/lib/bind/config.h 245163 2013-01-08 09:05:09Z erwin $ */
2135549Sdes
3174189Sdougb/* config.h.  Generated from config.h.in by configure.  */
4135549Sdes/* config.h.in.  Generated from configure.in by autoheader.  */
5135549Sdes/*
6245163Serwin * Copyright (C) 2004, 2005, 2007, 2008, 2012  Internet Systems Consortium, Inc. ("ISC")
7135549Sdes * Copyright (C) 1999-2003  Internet Software Consortium.
8135549Sdes *
9193149Sdougb * Permission to use, copy, modify, and/or distribute this software for any
10135549Sdes * purpose with or without fee is hereby granted, provided that the above
11135549Sdes * copyright notice and this permission notice appear in all copies.
12135549Sdes *
13135549Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
14135549Sdes * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15135549Sdes * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
16135549Sdes * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17135549Sdes * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
18135549Sdes * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19135549Sdes * PERFORMANCE OF THIS SOFTWARE.
20135549Sdes */
21135549Sdes
22234010Sdougb/* $Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp $ */
23135549Sdes
24170224Sdougb/*! \file */
25170224Sdougb
26135549Sdes/***
27135549Sdes *** This file is not to be included by any public header files, because
28135549Sdes *** it does not get installed.
29135549Sdes ***/
30135549Sdes
31170224Sdougb/** define on DEC OSF to enable 4.4BSD style sa_len support */
32135549Sdes/* #undef _SOCKADDR_LEN */
33135549Sdes
34170224Sdougb/** define if your system needs pthread_init() before using pthreads */
35135549Sdes/* #undef NEED_PTHREAD_INIT */
36135549Sdes
37170224Sdougb/** define if your system has sigwait() */
38170224Sdougb#define HAVE_SIGWAIT 1
39135549Sdes
40170224Sdougb/** define if sigwait() is the UnixWare flavor */
41135549Sdes/* #undef HAVE_UNIXWARE_SIGWAIT */
42135549Sdes
43170224Sdougb/** define on Solaris to get sigwait() to work using pthreads semantics */
44135549Sdes/* #undef _POSIX_PTHREAD_SEMANTICS */
45135549Sdes
46170224Sdougb/** define if LinuxThreads is in use */
47135549Sdes/* #undef HAVE_LINUXTHREADS */
48135549Sdes
49170224Sdougb/** define if sysconf() is available */
50170224Sdougb#define HAVE_SYSCONF 1
51135549Sdes
52170224Sdougb/** define if sysctlbyname() is available */
53135549Sdes#define HAVE_SYSCTLBYNAME 1
54135549Sdes
55170224Sdougb/** define if catgets() is available */
56135549Sdes#define HAVE_CATGETS 1
57135549Sdes
58170224Sdougb/** define if getifaddrs() exists */
59135549Sdes#define HAVE_GETIFADDRS 1
60135549Sdes
61170224Sdougb/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */
62135549Sdes#define HAVE_IFLIST_SYSCTL 1
63135549Sdes
64170224Sdougb/** define if tzset() is available */
65135549Sdes#define HAVE_TZSET 1
66135549Sdes
67170224Sdougb/** define if struct addrinfo exists */
68135549Sdes#define HAVE_ADDRINFO 1
69135549Sdes
70170224Sdougb/** define if getaddrinfo() exists */
71135549Sdes#define HAVE_GETADDRINFO 1
72135549Sdes
73170224Sdougb/** define if gai_strerror() exists */
74135549Sdes#define HAVE_GAISTRERROR 1
75135549Sdes
76170224Sdougb/** define if arc4random() exists */
77135549Sdes#define HAVE_ARC4RANDOM 1
78135549Sdes
79170224Sdougb/**
80170224Sdougb * define if pthread_setconcurrency() should be called to tell the
81135549Sdes * OS how many threads we might want to run.
82135549Sdes */
83135549Sdes/* #undef CALL_PTHREAD_SETCONCURRENCY */
84135549Sdes
85170224Sdougb/** define if IPv6 is not disabled */
86135549Sdes/* #undef WANT_IPV6 */
87135549Sdes
88170224Sdougb/** define if flockfile() is available */
89135549Sdes#define HAVE_FLOCKFILE 1
90135549Sdes
91170224Sdougb/** define if getc_unlocked() is available */
92135549Sdes#define HAVE_GETCUNLOCKED 1
93135549Sdes
94170224Sdougb/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
95135549Sdes/* #undef SHUTUP_SPUTAUX */
96135549Sdes#ifdef SHUTUP_SPUTAUX
97135549Sdesstruct __sFILE;
98135549Sdesextern __inline int __sputaux(int _c, struct __sFILE *_p);
99135549Sdes#endif
100135549Sdes
101170224Sdougb/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
102135549Sdes/* #undef SHUTUP_SIGWAIT */
103135549Sdes#ifdef SHUTUP_SIGWAIT
104135549Sdesint sigwait(const unsigned int *set, int *sig);
105135549Sdes#endif
106135549Sdes
107170224Sdougb/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
108135549Sdes/* #undef SHUTUP_STDARG_CAST */
109135549Sdes#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
110170224Sdougb#include <stdarg.h>		/** Grr.  Must be included *every time*. */
111170224Sdougb/**
112135549Sdes * The silly continuation line is to keep configure from
113135549Sdes * commenting out the #undef.
114135549Sdes */
115193149Sdougb
116135549Sdes#undef \
117135549Sdes	va_start
118135549Sdes#define	va_start(ap, last) \
119135549Sdes	do { \
120135549Sdes		union { const void *konst; long *var; } _u; \
121135549Sdes		_u.konst = &(last); \
122135549Sdes		ap = (va_list)(_u.var + __va_words(__typeof(last))); \
123135549Sdes	} while (0)
124170224Sdougb#endif /** SHUTUP_STDARG_CAST && __GNUC__ */
125135549Sdes
126170224Sdougb/** define if the system has a random number generating device */
127135549Sdes#define PATH_RANDOMDEV "/dev/random"
128135549Sdes
129170224Sdougb/** define if pthread_attr_getstacksize() is available */
130170224Sdougb#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
131135549Sdes
132170224Sdougb/** define if pthread_attr_setstacksize() is available */
133170224Sdougb#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
134135549Sdes
135170224Sdougb/** define if you have strerror in the C library. */
136135549Sdes#define HAVE_STRERROR 1
137135549Sdes
138170224Sdougb/** Define if you are running under Compaq TruCluster. */
139135549Sdes/* #undef HAVE_TRUCLUSTER */
140135549Sdes
141135549Sdes/* Define if OpenSSL includes DSA support */
142135549Sdes#define HAVE_OPENSSL_DSA 1
143135549Sdes
144245163Serwin/* Define if OpenSSL includes ECDSA support */
145245163Serwin#define HAVE_OPENSSL_ECDSA 1
146245163Serwin
147143737Sdougb/* Define to the length type used by the socket API (socklen_t, size_t, int). */
148143737Sdougb#define ISC_SOCKADDR_LEN_T socklen_t
149143737Sdougb
150143737Sdougb/* Define if threads need PTHREAD_SCOPE_SYSTEM */
151143737Sdougb/* #undef NEED_PTHREAD_SCOPE_SYSTEM */
152143737Sdougb
153214585Sdougb/* Define if building universal (internal helper macro) */
154214585Sdougb/* #undef AC_APPLE_UNIVERSAL_BUILD */
155214585Sdougb
156224093Sdougb/* Define to enable the "filter-aaaa-on-v4" option. */
157224093Sdougb/* #undef ALLOW_FILTER_AAAA_ON_V4 */
158224093Sdougb
159165077Sdougb/* Define if recvmsg() does not meet all of the BSD socket API specifications.
160165077Sdougb   */
161165077Sdougb/* #undef BROKEN_RECVMSG */
162165077Sdougb
163165077Sdougb/* Define if you cannot bind() before connect() for TCP sockets. */
164165077Sdougb/* #undef BROKEN_TCP_BIND_BEFORE_CONNECT */
165165077Sdougb
166193149Sdougb/* Define to enable "rrset-order fixed" syntax. */
167193149Sdougb/* #undef DNS_RDATASET_FIXED */
168193149Sdougb
169224093Sdougb/* Define to enable rpz-nsdname rules. */
170224093Sdougb/* #undef ENABLE_RPZ_NSDNAME */
171224093Sdougb
172224093Sdougb/* Define to enable rpz-nsip rules. */
173224093Sdougb/* #undef ENABLE_RPZ_NSIP */
174224093Sdougb
175186463Sdougb/* Solaris hack to get select_large_fdset. */
176186463Sdougb/* #undef FD_SETSIZE */
177186463Sdougb
178218384Sdougb/* Define to nothing if C supports flexible array members, and to 1 if it does
179218384Sdougb   not. That way, with a declaration like `struct s { int n; double
180218384Sdougb   d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
181218384Sdougb   compilers. When computing the size of such an object, don't use 'sizeof
182218384Sdougb   (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
183218384Sdougb   instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
184218384Sdougb   MSVC and with C++ compilers. */
185218384Sdougb#define FLEXIBLE_ARRAY_MEMBER /**/
186218384Sdougb
187193149Sdougb/* Define to 1 if you have the `chroot' function. */
188193149Sdougb#define HAVE_CHROOT 1
189186463Sdougb
190218384Sdougb/* Define to 1 if you have the <devpoll.h> header file. */
191218384Sdougb/* #undef HAVE_DEVPOLL_H */
192218384Sdougb
193225361Sdougb/* Define to 1 if you have the `dlclose' function. */
194225361Sdougb#define HAVE_DLCLOSE 1
195225361Sdougb
196174189Sdougb/* Define to 1 if you have the <dlfcn.h> header file. */
197193149Sdougb#define HAVE_DLFCN_H 1
198174189Sdougb
199225361Sdougb/* Define to 1 if you have the `dlopen' function. */
200225361Sdougb#define HAVE_DLOPEN 1
201225361Sdougb
202225361Sdougb/* Define to 1 if you have the `dlsym' function. */
203225361Sdougb#define HAVE_DLSYM 1
204225361Sdougb
205204619Sdougb/* Define to 1 if you have the `EVP_sha256' function. */
206204619Sdougb#define HAVE_EVP_SHA256 1
207204619Sdougb
208245163Serwin/* Define to 1 if you have the `EVP_sha384' function. */
209245163Serwin#define HAVE_EVP_SHA384 1
210245163Serwin
211204619Sdougb/* Define to 1 if you have the `EVP_sha512' function. */
212204619Sdougb#define HAVE_EVP_SHA512 1
213204619Sdougb
214135549Sdes/* Define to 1 if you have the <fcntl.h> header file. */
215135549Sdes#define HAVE_FCNTL_H 1
216135549Sdes
217193149Sdougb/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
218193149Sdougb/* #undef HAVE_GSSAPI_GSSAPI_H */
219193149Sdougb
220224093Sdougb/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
221224093Sdougb/* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */
222224093Sdougb
223193149Sdougb/* Define to 1 if you have the <gssapi.h> header file. */
224193149Sdougb/* #undef HAVE_GSSAPI_H */
225193149Sdougb
226224093Sdougb/* Define to 1 if you have the <gssapi_krb5.h> header file. */
227224093Sdougb/* #undef HAVE_GSSAPI_KRB5_H */
228224093Sdougb
229135549Sdes/* Define to 1 if you have the <inttypes.h> header file. */
230135549Sdes#define HAVE_INTTYPES_H 1
231135549Sdes
232218384Sdougb/* Define to 1 if you have the <kerberosv5/krb5.h> header file. */
233218384Sdougb/* #undef HAVE_KERBEROSV5_KRB5_H */
234218384Sdougb
235218384Sdougb/* Define to 1 if you have the <krb5.h> header file. */
236218384Sdougb/* #undef HAVE_KRB5_H */
237218384Sdougb
238218384Sdougb/* Define to 1 if you have the <krb5/krb5.h> header file. */
239218384Sdougb/* #undef HAVE_KRB5_KRB5_H */
240218384Sdougb
241135549Sdes/* Define to 1 if you have the `c' library (-lc). */
242135549Sdes/* #undef HAVE_LIBC */
243135549Sdes
244193149Sdougb/* Define to 1 if you have the `cap' library (-lcap). */
245193149Sdougb/* #undef HAVE_LIBCAP */
246193149Sdougb
247224093Sdougb/* if system have backtrace function */
248224093Sdougb/* #undef HAVE_LIBCTRACE */
249224093Sdougb
250135549Sdes/* Define to 1 if you have the `c_r' library (-lc_r). */
251135549Sdes/* #undef HAVE_LIBC_R */
252135549Sdes
253135549Sdes/* Define to 1 if you have the `nsl' library (-lnsl). */
254135549Sdes/* #undef HAVE_LIBNSL */
255135549Sdes
256135549Sdes/* Define to 1 if you have the `pthread' library (-lpthread). */
257148389Sdes/* #undef HAVE_LIBPTHREAD */
258135549Sdes
259135549Sdes/* Define to 1 if you have the `scf' library (-lscf). */
260135549Sdes/* #undef HAVE_LIBSCF */
261135549Sdes
262135549Sdes/* Define to 1 if you have the `socket' library (-lsocket). */
263135549Sdes/* #undef HAVE_LIBSOCKET */
264135549Sdes
265165077Sdougb/* Define to 1 if you have the `thr' library (-lthr). */
266165077Sdougb/* #undef HAVE_LIBTHR */
267165077Sdougb
268193149Sdougb/* Define if libxml2 was found */
269193149Sdougb/* #undef HAVE_LIBXML2 */
270193149Sdougb
271135549Sdes/* Define to 1 if you have the <linux/capability.h> header file. */
272135549Sdes/* #undef HAVE_LINUX_CAPABILITY_H */
273135549Sdes
274170224Sdougb/* Define to 1 if you have the <locale.h> header file. */
275170224Sdougb#define HAVE_LOCALE_H 1
276170224Sdougb
277135549Sdes/* Define to 1 if you have the <memory.h> header file. */
278135549Sdes#define HAVE_MEMORY_H 1
279135549Sdes
280193149Sdougb/* Define to 1 if you have the `nanosleep' function. */
281193149Sdougb#define HAVE_NANOSLEEP 1
282193149Sdougb
283135549Sdes/* Define to 1 if you have the <net/if6.h> header file. */
284135549Sdes/* #undef HAVE_NET_IF6_H */
285135549Sdes
286224093Sdougb/* Define if your OpenSSL version supports GOST. */
287224093Sdougb/* #undef HAVE_OPENSSL_GOST */
288224093Sdougb
289224093Sdougb/* Define to 1 if you have the <regex.h> header file. */
290224093Sdougb#define HAVE_REGEX_H 1
291224093Sdougb
292224093Sdougb/* Define to 1 if you have the `setegid' function. */
293224093Sdougb#define HAVE_SETEGID 1
294224093Sdougb
295224093Sdougb/* Define to 1 if you have the `seteuid' function. */
296224093Sdougb#define HAVE_SETEUID 1
297224093Sdougb
298170224Sdougb/* Define to 1 if you have the `setlocale' function. */
299170224Sdougb#define HAVE_SETLOCALE 1
300165077Sdougb
301224093Sdougb/* Define to 1 if you have the `setresgid' function. */
302224093Sdougb#define HAVE_SETRESGID 1
303224093Sdougb
304224093Sdougb/* Define to 1 if you have the `setresuid' function. */
305224093Sdougb#define HAVE_SETRESUID 1
306224093Sdougb
307135549Sdes/* Define to 1 if you have the <stdint.h> header file. */
308135549Sdes#define HAVE_STDINT_H 1
309135549Sdes
310135549Sdes/* Define to 1 if you have the <stdlib.h> header file. */
311135549Sdes#define HAVE_STDLIB_H 1
312135549Sdes
313135549Sdes/* Define to 1 if you have the <strings.h> header file. */
314135549Sdes#define HAVE_STRINGS_H 1
315135549Sdes
316135549Sdes/* Define to 1 if you have the <string.h> header file. */
317135549Sdes#define HAVE_STRING_H 1
318135549Sdes
319186463Sdougb/* Define to 1 if you have the <sys/capability.h> header file. */
320186463Sdougb/* #undef HAVE_SYS_CAPABILITY_H */
321186463Sdougb
322186463Sdougb/* Define to 1 if you have the <sys/devpoll.h> header file. */
323186463Sdougb/* #undef HAVE_SYS_DEVPOLL_H */
324186463Sdougb
325186463Sdougb/* Define to 1 if you have the <sys/dyntune.h> header file. */
326186463Sdougb/* #undef HAVE_SYS_DYNTUNE_H */
327186463Sdougb
328135549Sdes/* Define to 1 if you have the <sys/param.h> header file. */
329135549Sdes#define HAVE_SYS_PARAM_H 1
330135549Sdes
331135549Sdes/* Define to 1 if you have the <sys/prctl.h> header file. */
332135549Sdes/* #undef HAVE_SYS_PRCTL_H */
333135549Sdes
334135549Sdes/* Define to 1 if you have the <sys/select.h> header file. */
335135549Sdes#define HAVE_SYS_SELECT_H 1
336135549Sdes
337135549Sdes/* Define to 1 if you have the <sys/sockio.h> header file. */
338135549Sdes#define HAVE_SYS_SOCKIO_H 1
339135549Sdes
340135549Sdes/* Define to 1 if you have the <sys/stat.h> header file. */
341135549Sdes#define HAVE_SYS_STAT_H 1
342135549Sdes
343135549Sdes/* Define to 1 if you have the <sys/sysctl.h> header file. */
344135549Sdes#define HAVE_SYS_SYSCTL_H 1
345135549Sdes
346135549Sdes/* Define to 1 if you have the <sys/time.h> header file. */
347135549Sdes#define HAVE_SYS_TIME_H 1
348135549Sdes
349135549Sdes/* Define to 1 if you have the <sys/types.h> header file. */
350135549Sdes#define HAVE_SYS_TYPES_H 1
351135549Sdes
352170224Sdougb/* Define to 1 if you have the <sys/un.h> header file. */
353170224Sdougb#define HAVE_SYS_UN_H 1
354170224Sdougb
355135549Sdes/* Define if running under Compaq TruCluster */
356135549Sdes/* #undef HAVE_TRUCLUSTER */
357135549Sdes
358135549Sdes/* Define to 1 if you have the <unistd.h> header file. */
359135549Sdes#define HAVE_UNISTD_H 1
360135549Sdes
361224093Sdougb/* return type of gai_strerror */
362224093Sdougb#define IRS_GAISTRERROR_RETURN_T const char *
363224093Sdougb
364224093Sdougb/* Define to the buffer length type used by getnameinfo(3). */
365224093Sdougb#define IRS_GETNAMEINFO_BUFLEN_T size_t
366224093Sdougb
367224093Sdougb/* Define to the flags type used by getnameinfo(3). */
368224093Sdougb#define IRS_GETNAMEINFO_FLAGS_T int
369224093Sdougb
370225361Sdougb/* Define to allow building of objects for dlopen(). */
371225361Sdougb#define ISC_DLZ_DLOPEN 1
372225361Sdougb
373205292Sdougb/* Define to the sub-directory in which libtool stores uninstalled libraries.
374205292Sdougb   */
375205292Sdougb#define LT_OBJDIR ".libs/"
376205292Sdougb
377153821Sdougb/* Defined if extern char *optarg is not declared. */
378153821Sdougb/* #undef NEED_OPTARG */
379153821Sdougb
380170224Sdougb/* Define if connect does not honour the permission on the UNIX domain socket.
381170224Sdougb   */
382170224Sdougb/* #undef NEED_SECURE_DIRECTORY */
383170224Sdougb
384135549Sdes/* Define to the address where bug reports for this package should be sent. */
385135549Sdes#define PACKAGE_BUGREPORT ""
386135549Sdes
387135549Sdes/* Define to the full name of this package. */
388135549Sdes#define PACKAGE_NAME ""
389135549Sdes
390135549Sdes/* Define to the full name and version of this package. */
391135549Sdes#define PACKAGE_STRING ""
392135549Sdes
393135549Sdes/* Define to the one symbol short name of this package. */
394135549Sdes#define PACKAGE_TARNAME ""
395135549Sdes
396214585Sdougb/* Define to the home page for this package. */
397214585Sdougb#define PACKAGE_URL ""
398214585Sdougb
399135549Sdes/* Define to the version of this package. */
400135549Sdes#define PACKAGE_VERSION ""
401135549Sdes
402153821Sdougb/* Sets which flag to pass to open/fcntl to make non-blocking
403153821Sdougb   (O_NDELAY/O_NONBLOCK). */
404153821Sdougb#define PORT_NONBLOCK O_NONBLOCK
405153821Sdougb
406234010Sdougb/* The size of `void *', as computed by sizeof. */
407234010Sdougb#define SIZEOF_VOID_P 8
408234010Sdougb
409135549Sdes/* Define to 1 if you have the ANSI C header files. */
410135549Sdes#define STDC_HEADERS 1
411135549Sdes
412135549Sdes/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
413135549Sdes#define TIME_WITH_SYS_TIME 1
414135549Sdes
415153821Sdougb/* Defined if you need to use ioctl(FIONBIO) instead a fcntl call to make
416153821Sdougb   non-blocking. */
417153821Sdougb/* #undef USE_FIONBIO_IOCTL */
418153821Sdougb
419170224Sdougb/* define if idnkit support is to be included. */
420170224Sdougb/* #undef WITH_IDN */
421170224Sdougb
422182646Sdougb/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
423214585Sdougb   significant byte first (like Motorola and SPARC, unlike Intel). */
424214585Sdougb#if defined AC_APPLE_UNIVERSAL_BUILD
425214585Sdougb# if defined __BIG_ENDIAN__
426214585Sdougb#  define WORDS_BIGENDIAN 1
427214585Sdougb# endif
428214585Sdougb#else
429214585Sdougb# ifndef WORDS_BIGENDIAN
430214585Sdougb/* #  undef WORDS_BIGENDIAN */
431214585Sdougb# endif
432182646Sdougb#endif
433135549Sdes
434135549Sdes/* Define to empty if `const' does not conform to ANSI C. */
435135549Sdes/* #undef const */
436135549Sdes
437224093Sdougb/* Define to empty if your compiler does not support "static inline". */
438186463Sdougb#define inline /**/
439135549Sdes
440174189Sdougb/* Define to `unsigned int' if <sys/types.h> does not define. */
441135549Sdes/* #undef size_t */
442135549Sdes
443135549Sdes/* Define to `int' if <sys/types.h> does not define. */
444135549Sdes/* #undef ssize_t */
445153821Sdougb
446153821Sdougb/* Define to `unsigned long' if <sys/types.h> does not define. */
447153821Sdougb/* #undef uintptr_t */
448186463Sdougb
449186463Sdougb/* Define to empty if the keyword `volatile' does not work. Warning: valid
450186463Sdougb   code using `volatile' can become incorrect without. Disable with care. */
451186463Sdougb/* #undef volatile */
452