chiark / gitweb /
userv 1.0.4
[userv.git] / acconfig.h
1 /*
2  * userv - acconfig.h
3  * extra stuff for config.h.in (autoconf)
4  *
5  * Copyright (C)1996-1997,1999 Ian Jackson
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with userv; if not, write to the Free Software
19  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  */
21
22 /* Define if EPROTO exists.  */
23 #undef HAVE_EPROTO
24
25 /* Define if LOG_AUTHPRIV exists.  */
26 #undef HAVE_LOG_AUTHPRIV
27
28 /* Define if function attributes a la GCC 2.5 and higher are available.  */
29 #undef HAVE_GNUC25_ATTRIB
30
31 /* Define if unused functions a la GCC 2.5 and higher are available.  */
32 #undef HAVE_GNUC25_UNUSED
33
34 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
35 #undef HAVE_GNUC25_NORETURN
36
37 /* Define if printf-format argument lists a la GCC are available.  */
38 #undef HAVE_GNUC25_PRINTFFORMAT
39
40 @BOTTOM@
41
42 /* STRSIGNAL */
43 #ifndef HAVE_STRSIGNAL
44 #define STRSIGNAL(x) "[platform has no strsignal!]"
45 #endif
46
47 /* EPROTO */
48 #ifndef HAVE_EPROTO
49 #define EPROTO 0
50 #endif
51
52 /* LOG_AUTHPRIV */
53 #ifndef HAVE_LOG_AUTHPRIV
54 #define LOG_AUTHPRIV LOG_AUTH
55 #endif
56
57 /* WCOREDUMP */
58 #ifndef HAVE_WCOREDUMP
59 #define WCOREDUMP(x) 0
60 #endif
61
62 /* GNU C attributes. */
63 #ifndef FUNCATTR
64 #ifdef HAVE_GNUC25_ATTRIB
65 #define FUNCATTR(x) __attribute__(x)
66 #else
67 #define FUNCATTR(x)
68 #endif
69 #endif
70
71 /* GNU C printf formats, or null. */
72 #ifndef ATTRPRINTF
73 #ifdef HAVE_GNUC25_PRINTFFORMAT
74 #define ATTRPRINTF(si,tc) format(printf,si,tc)
75 #else
76 #define ATTRPRINTF(si,tc)
77 #endif
78 #endif
79 #ifndef PRINTFFORMAT
80 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
81 #endif
82
83 /* GNU C nonreturning functions, or null. */
84 #ifndef ATTRNORETURN
85 #ifdef HAVE_GNUC25_NORETURN
86 #define ATTRNORETURN noreturn
87 #else
88 #define ATTRNORETURN
89 #endif
90 #endif
91 #ifndef NONRETURNING
92 #define NONRETURNING FUNCATTR((ATTRNORETURN))
93 #endif
94
95 /* Combination of both the above. */
96 #ifndef NONRETURNPRINTFFORMAT
97 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
98 #endif
99
100 /* GNU C unused functions, or null. */
101 #ifndef ATTRUNUSED
102 #ifdef HAVE_GNUC25_UNUSED
103 #define ATTRUNUSED unused
104 #else
105 #define ATTRUNUSED
106 #endif
107 #endif
108 #ifndef UNUSED
109 #define UNUSED FUNCATTR((ATTRUNUSED))
110 #endif