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
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.)
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)
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.
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.
28 /* Define if inline functions a la GCC are available. */
31 /* Define if function attributes a la GCC 2.5 and higher are available. */
32 #undef HAVE_GNUC25_ATTRIB
34 /* Define if constant functions a la GCC 2.5 and higher are available. */
35 #undef HAVE_GNUC25_CONST
37 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
38 #undef HAVE_GNUC25_NORETURN
40 /* Define if printf-format argument lists a la GCC are available. */
41 #undef HAVE_GNUC25_PRINTFFORMAT
43 /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
44 #undef HAVEUSE_RPCTYPES_H
47 /* Define to 1 if you have the <inttypes.h> header file. */
48 #undef HAVE_INTTYPES_H
50 /* Define to 1 if you have the `nsl' library (-lnsl). */
53 /* Define to 1 if you have the `socket' library (-lsocket). */
56 /* Define to 1 if you have the <memory.h> header file. */
59 /* Define to 1 if you have the `poll' function. */
62 /* Define to 1 if you have the <stdint.h> header file. */
65 /* Define to 1 if you have the <stdlib.h> header file. */
68 /* Define to 1 if you have the <strings.h> header file. */
71 /* Define to 1 if you have the <string.h> header file. */
74 /* Define to 1 if you have the <sys/stat.h> header file. */
75 #undef HAVE_SYS_STAT_H
77 /* Define to 1 if you have the <sys/types.h> header file. */
78 #undef HAVE_SYS_TYPES_H
80 /* Define to 1 if you have the <unistd.h> header file. */
83 /* Define to the address where bug reports for this package should be sent. */
84 #undef PACKAGE_BUGREPORT
86 /* Define to the full name of this package. */
89 /* Define to the full name and version of this package. */
92 /* Define to the one symbol short name of this package. */
93 #undef PACKAGE_TARNAME
95 /* Define to the home page for this package. */
98 /* Define to the version of this package. */
99 #undef PACKAGE_VERSION
101 /* Define to 1 if you have the ANSI C header files. */
104 /* Use the definitions: */
111 #include <sys/poll.h>
114 struct pollfd { int fd; short events; short revents; };
120 /* GNU C attributes. */
122 #ifdef HAVE_GNUC25_ATTRIB
123 #define FUNCATTR(x) __attribute__(x)
129 /* GNU C printf formats, or null. */
131 #ifdef HAVE_GNUC25_PRINTFFORMAT
132 #define ATTRPRINTF(si,tc) format(printf,si,tc)
134 #define ATTRPRINTF(si,tc)
138 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
141 /* GNU C nonreturning functions, or null. */
143 #ifdef HAVE_GNUC25_NORETURN
144 #define ATTRNORETURN noreturn
150 #define NONRETURNING FUNCATTR((ATTRNORETURN))
153 /* Combination of both the above. */
154 #ifndef NONRETURNPRINTFFORMAT
155 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
158 /* GNU C constant functions, or null. */
160 #ifdef HAVE_GNUC25_CONST
161 #define ATTRCONST const
167 #define CONSTANT FUNCATTR((ATTRCONST))
170 #ifdef HAVEUSE_RPCTYPES_H
171 #include <rpc/types.h>