3 * input file for autoheader/autoconf/configure: extra stuff for config.h
6 * This file is part of adns, which is
7 * Copyright (C) 1997-2000,2003,2006 Ian Jackson
8 * Copyright (C) 1999-2000,2003,2006 Tony Finch
9 * Copyright (C) 1991 Massachusetts Institute of Technology
10 * (See the file INSTALL for full details.)
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3, or (at your option)
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software Foundation.
26 /* Define if inline functions a la GCC are available. */
29 /* Define if function attributes a la GCC 2.5 and higher are available. */
30 #undef HAVE_GNUC25_ATTRIB
32 /* Define if constant functions a la GCC 2.5 and higher are available. */
33 #undef HAVE_GNUC25_CONST
35 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
36 #undef HAVE_GNUC25_NORETURN
38 /* Define if printf-format argument lists a la GCC are available. */
39 #undef HAVE_GNUC25_PRINTFFORMAT
41 /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
42 #undef HAVEUSE_RPCTYPES_H
46 /* Use the definitions: */
56 struct pollfd { int fd; short events; short revents; };
62 /* GNU C attributes. */
64 #ifdef HAVE_GNUC25_ATTRIB
65 #define FUNCATTR(x) __attribute__(x)
71 /* GNU C printf formats, or null. */
73 #ifdef HAVE_GNUC25_PRINTFFORMAT
74 #define ATTRPRINTF(si,tc) format(printf,si,tc)
76 #define ATTRPRINTF(si,tc)
80 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
83 /* GNU C nonreturning functions, or null. */
85 #ifdef HAVE_GNUC25_NORETURN
86 #define ATTRNORETURN noreturn
92 #define NONRETURNING FUNCATTR((ATTRNORETURN))
95 /* Combination of both the above. */
96 #ifndef NONRETURNPRINTFFORMAT
97 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
100 /* GNU C constant functions, or null. */
102 #ifdef HAVE_GNUC25_CONST
103 #define ATTRCONST const
109 #define CONSTANT FUNCATTR((ATTRCONST))
112 #ifdef HAVEUSE_RPCTYPES_H
113 #include <rpc/types.h>