chiark / gitweb /
debian/control: Add missing build-dependency on flex. Fixes FTBFS. Report from Aurel...
[userv.git] / acconfig.h
1 /*
2  * userv - acconfig.h
3  * extra stuff for config.h.in (autoconf)
4  *
5  * userv is
6  * Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
7  * Copyright 2000      Ben Harris <bjh21@cam.ac.uk>
8  * Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
9  *
10  * This is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with userv; if not, see <http://www.gnu.org/licenses/>.
22  */
23
24 /* Define if EPROTO exists.  */
25 #undef HAVE_EPROTO
26
27 /* Define if LOG_AUTHPRIV exists.  */
28 #undef HAVE_LOG_AUTHPRIV
29
30 /* Define if WCOREDUMP exists.  */
31 #undef HAVE_WCOREDUMP
32
33 /* Define if function attributes a la GCC 2.5 and higher are available.  */
34 #undef HAVE_GNUC25_ATTRIB
35
36 /* Define if unused functions a la GCC 2.5 and higher are available.  */
37 #undef HAVE_GNUC25_UNUSED
38
39 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
40 #undef HAVE_GNUC25_NORETURN
41
42 /* Define if printf-format argument lists a la GCC are available.  */
43 #undef HAVE_GNUC25_PRINTFFORMAT
44
45 @BOTTOM@
46
47 /* STRSIGNAL */
48 #ifndef HAVE_STRSIGNAL
49 #define STRSIGNAL(x) "[platform has no strsignal!]"
50 #endif
51
52 /* VSNPRINTF */
53 #ifndef HAVE_VSNPRINTF
54 # error "You must have vsnprintf!  Without vsnprintf it is very hard to write secure programs.  If you don't have it then your system libc is probably full of hideous buffer overrun security bugs.  But, if you don't want to fix your system a portable snprintf can be found at http://www.ijs.si/software/snprintf/"
55 #endif
56
57 /* EPROTO */
58 #ifndef HAVE_EPROTO
59 #define EPROTO 0
60 #endif
61
62 /* LOG_AUTHPRIV */
63 #ifndef HAVE_LOG_AUTHPRIV
64 #define LOG_AUTHPRIV LOG_AUTH
65 #endif
66
67 /* WCOREDUMP */
68 #ifndef HAVE_WCOREDUMP
69 #define WCOREDUMP(x) 0
70 #endif
71
72 /* GNU C attributes. */
73 #ifndef FUNCATTR
74 #ifdef HAVE_GNUC25_ATTRIB
75 #define FUNCATTR(x) __attribute__(x)
76 #else
77 #define FUNCATTR(x)
78 #endif
79 #endif
80
81 /* GNU C printf formats, or null. */
82 #ifndef ATTRPRINTF
83 #ifdef HAVE_GNUC25_PRINTFFORMAT
84 #define ATTRPRINTF(si,tc) format(printf,si,tc)
85 #else
86 #define ATTRPRINTF(si,tc)
87 #endif
88 #endif
89 #ifndef PRINTFFORMAT
90 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
91 #endif
92
93 /* GNU C nonreturning functions, or null. */
94 #ifndef ATTRNORETURN
95 #ifdef HAVE_GNUC25_NORETURN
96 #define ATTRNORETURN noreturn
97 #else
98 #define ATTRNORETURN
99 #endif
100 #endif
101 #ifndef NONRETURNING
102 #define NONRETURNING FUNCATTR((ATTRNORETURN))
103 #endif
104
105 /* Combination of both the above. */
106 #ifndef NONRETURNPRINTFFORMAT
107 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
108 #endif
109
110 /* GNU C unused functions, or null. */
111 #ifndef ATTRUNUSED
112 #ifdef HAVE_GNUC25_UNUSED
113 #define ATTRUNUSED unused
114 #else
115 #define ATTRUNUSED
116 #endif
117 #endif
118 #ifndef UNUSED
119 #define UNUSED FUNCATTR((ATTRUNUSED))
120 #endif