1 /* src/config.h.in. Generated from configure.in by autoheader. */
4 * input file for autoheader/autoconf/configure: extra stuff for config.h
7 * This file is part of adns, which is Copyright Ian Jackson
8 * and contributors (see the file INSTALL for full details).
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3, or (at your option)
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software Foundation.
24 /* Define if inline functions a la GCC are available. */
27 /* Define if function attributes a la GCC 2.5 and higher are available. */
28 #undef HAVE_GNUC25_ATTRIB
30 /* Define if constant functions a la GCC 2.5 and higher are available. */
31 #undef HAVE_GNUC25_CONST
33 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
34 #undef HAVE_GNUC25_NORETURN
36 /* Define if printf-format argument lists a la GCC are available. */
37 #undef HAVE_GNUC25_PRINTFFORMAT
39 /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
40 #undef HAVEUSE_RPCTYPES_H
43 /* Define to 1 if you have the <inttypes.h> header file. */
44 #undef HAVE_INTTYPES_H
46 /* Define to 1 if you have the `nsl' library (-lnsl). */
49 /* Define to 1 if you have the `socket' library (-lsocket). */
52 /* Define to 1 if you have the <memory.h> header file. */
55 /* Define to 1 if you have the `poll' function. */
58 /* Define to 1 if you have the <stdint.h> header file. */
61 /* Define to 1 if you have the <stdlib.h> header file. */
64 /* Define to 1 if you have the <strings.h> header file. */
67 /* Define to 1 if you have the <string.h> header file. */
70 /* Define to 1 if you have the <sys/stat.h> header file. */
71 #undef HAVE_SYS_STAT_H
73 /* Define to 1 if you have the <sys/types.h> header file. */
74 #undef HAVE_SYS_TYPES_H
76 /* Define to 1 if you have the <unistd.h> header file. */
79 /* Define to the address where bug reports for this package should be sent. */
80 #undef PACKAGE_BUGREPORT
82 /* Define to the full name of this package. */
85 /* Define to the full name and version of this package. */
88 /* Define to the one symbol short name of this package. */
89 #undef PACKAGE_TARNAME
91 /* Define to the home page for this package. */
94 /* Define to the version of this package. */
95 #undef PACKAGE_VERSION
97 /* Define to 1 if you have the ANSI C header files. */
100 /* Use the definitions: */
107 #include <sys/poll.h>
110 struct pollfd { int fd; short events; short revents; };
116 /* GNU C attributes. */
118 #ifdef HAVE_GNUC25_ATTRIB
119 #define FUNCATTR(x) __attribute__(x)
125 /* GNU C printf formats, or null. */
127 #ifdef HAVE_GNUC25_PRINTFFORMAT
128 #define ATTRPRINTF(si,tc) format(printf,si,tc)
130 #define ATTRPRINTF(si,tc)
134 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
137 /* GNU C nonreturning functions, or null. */
139 #ifdef HAVE_GNUC25_NORETURN
140 #define ATTRNORETURN noreturn
146 #define NONRETURNING FUNCATTR((ATTRNORETURN))
149 /* Combination of both the above. */
150 #ifndef NONRETURNPRINTFFORMAT
151 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
154 /* GNU C constant functions, or null. */
156 #ifdef HAVE_GNUC25_CONST
157 #define ATTRCONST const
163 #define CONSTANT FUNCATTR((ATTRCONST))
166 #ifdef HAVEUSE_RPCTYPES_H
167 #include <rpc/types.h>