chiark / gitweb /
changelog: Document changes in 1.6.0 and finalise version number
[adns.git] / src / config.h.in
1 /* src/config.h.in.  Generated from configure.in by autoheader.  */
2 /*
3  * acconfig.h
4  * input file for autoheader/autoconf/configure: extra stuff for config.h
5  */
6 /*
7  *  This file is part of adns, which is
8  *    Copyright (C) 1997-2000,2003,2006,2014-2016,2020  Ian Jackson
9  *    Copyright (C) 2014  Mark Wooding
10  *    Copyright (C) 1999-2000,2003,2006  Tony Finch
11  *    Copyright (C) 1991 Massachusetts Institute of Technology
12  *  (See the file INSTALL for full details.)
13  *  
14  *  This program is free software; you can redistribute it and/or modify
15  *  it under the terms of the GNU General Public License as published by
16  *  the Free Software Foundation; either version 3, or (at your option)
17  *  any later version.
18  *  
19  *  This program is distributed in the hope that it will be useful,
20  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  *  GNU General Public License for more details.
23  *  
24  *  You should have received a copy of the GNU General Public License
25  *  along with this program; if not, write to the Free Software Foundation.
26  */
27
28 /* Define if inline functions a la GCC are available.  */
29 #undef HAVE_INLINE
30
31 /* Define if function attributes a la GCC 2.5 and higher are available.  */
32 #undef HAVE_GNUC25_ATTRIB
33
34 /* Define if constant functions a la GCC 2.5 and higher are available.  */
35 #undef HAVE_GNUC25_CONST
36
37 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
38 #undef HAVE_GNUC25_NORETURN
39
40 /* Define if printf-format argument lists a la GCC are available.  */
41 #undef HAVE_GNUC25_PRINTFFORMAT
42
43 /* Define if we want to include rpc/types.h.  Crap BSDs put INADDR_LOOPBACK there. */
44 #undef HAVEUSE_RPCTYPES_H
45
46
47 /* Define to 1 if you have the <inttypes.h> header file. */
48 #undef HAVE_INTTYPES_H
49
50 /* Define to 1 if you have the `nsl' library (-lnsl). */
51 #undef HAVE_LIBNSL
52
53 /* Define to 1 if you have the `socket' library (-lsocket). */
54 #undef HAVE_LIBSOCKET
55
56 /* Define to 1 if you have the <memory.h> header file. */
57 #undef HAVE_MEMORY_H
58
59 /* Define to 1 if you have the `poll' function. */
60 #undef HAVE_POLL
61
62 /* Define to 1 if you have the <stdint.h> header file. */
63 #undef HAVE_STDINT_H
64
65 /* Define to 1 if you have the <stdlib.h> header file. */
66 #undef HAVE_STDLIB_H
67
68 /* Define to 1 if you have the <strings.h> header file. */
69 #undef HAVE_STRINGS_H
70
71 /* Define to 1 if you have the <string.h> header file. */
72 #undef HAVE_STRING_H
73
74 /* Define to 1 if you have the <sys/stat.h> header file. */
75 #undef HAVE_SYS_STAT_H
76
77 /* Define to 1 if you have the <sys/types.h> header file. */
78 #undef HAVE_SYS_TYPES_H
79
80 /* Define to 1 if you have the <unistd.h> header file. */
81 #undef HAVE_UNISTD_H
82
83 /* Define to the address where bug reports for this package should be sent. */
84 #undef PACKAGE_BUGREPORT
85
86 /* Define to the full name of this package. */
87 #undef PACKAGE_NAME
88
89 /* Define to the full name and version of this package. */
90 #undef PACKAGE_STRING
91
92 /* Define to the one symbol short name of this package. */
93 #undef PACKAGE_TARNAME
94
95 /* Define to the home page for this package. */
96 #undef PACKAGE_URL
97
98 /* Define to the version of this package. */
99 #undef PACKAGE_VERSION
100
101 /* Define to 1 if you have the ANSI C header files. */
102 #undef STDC_HEADERS
103
104 /* Use the definitions: */
105
106 #ifndef HAVE_INLINE
107 #define inline
108 #endif
109
110 #ifdef HAVE_POLL
111 #include <sys/poll.h>
112 #else
113 /* kludge it up */
114 struct pollfd { int fd; short events; short revents; };
115 #define POLLIN  1
116 #define POLLPRI 2
117 #define POLLOUT 4
118 #endif
119
120 /* GNU C attributes. */
121 #ifndef FUNCATTR
122 #ifdef HAVE_GNUC25_ATTRIB
123 #define FUNCATTR(x) __attribute__(x)
124 #else
125 #define FUNCATTR(x)
126 #endif
127 #endif
128
129 /* GNU C printf formats, or null. */
130 #ifndef ATTRPRINTF
131 #ifdef HAVE_GNUC25_PRINTFFORMAT
132 #define ATTRPRINTF(si,tc) format(printf,si,tc)
133 #else
134 #define ATTRPRINTF(si,tc)
135 #endif
136 #endif
137 #ifndef PRINTFFORMAT
138 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
139 #endif
140
141 /* GNU C nonreturning functions, or null. */
142 #ifndef ATTRNORETURN
143 #ifdef HAVE_GNUC25_NORETURN
144 #define ATTRNORETURN noreturn
145 #else
146 #define ATTRNORETURN
147 #endif
148 #endif
149 #ifndef NONRETURNING
150 #define NONRETURNING FUNCATTR((ATTRNORETURN))
151 #endif
152
153 /* Combination of both the above. */
154 #ifndef NONRETURNPRINTFFORMAT
155 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
156 #endif
157
158 /* GNU C constant functions, or null. */
159 #ifndef ATTRCONST
160 #ifdef HAVE_GNUC25_CONST
161 #define ATTRCONST const
162 #else
163 #define ATTRCONST
164 #endif
165 #endif
166 #ifndef CONSTANT
167 #define CONSTANT FUNCATTR((ATTRCONST))
168 #endif
169
170 #ifdef HAVEUSE_RPCTYPES_H
171 #include <rpc/types.h>
172 #endif