chiark / gitweb /
083d82e4a73f7f83ac1701db9ae37f8fe89c30f6
[userv.git] / config.h.in
1 /* config.h.in.  Generated from configure.in by autoheader.  */
2 /*
3  * userv - acconfig.h
4  * extra stuff for config.h.in (autoconf)
5  *
6  * userv is
7  * Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
8  * Copyright 2000      Ben Harris <bjh21@cam.ac.uk>
9  * Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
10  *
11  * This is free software; you can redistribute it and/or modify it
12  * under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with userv; if not, see <http://www.gnu.org/licenses/>.
23  */
24
25 /* Define if EPROTO exists.  */
26 #undef HAVE_EPROTO
27
28 /* Define if LOG_AUTHPRIV exists.  */
29 #undef HAVE_LOG_AUTHPRIV
30
31 /* Define if WCOREDUMP exists.  */
32 #undef HAVE_WCOREDUMP
33
34 /* Define if function attributes a la GCC 2.5 and higher are available.  */
35 #undef HAVE_GNUC25_ATTRIB
36
37 /* Define if unused functions a la GCC 2.5 and higher are available.  */
38 #undef HAVE_GNUC25_UNUSED
39
40 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
41 #undef HAVE_GNUC25_NORETURN
42
43 /* Define if printf-format argument lists a la GCC are available.  */
44 #undef HAVE_GNUC25_PRINTFFORMAT
45
46
47 /* Define to 1 if you have the `socket' library (-lsocket). */
48 #undef HAVE_LIBSOCKET
49
50 /* Define to 1 if you have the `setenv' function. */
51 #undef HAVE_SETENV
52
53 /* Define to 1 if you have the `strsignal' function. */
54 #undef HAVE_STRSIGNAL
55
56 /* Define to 1 if you have the `vsnprintf' function. */
57 #undef HAVE_VSNPRINTF
58
59 /* Define to the address where bug reports for this package should be sent. */
60 #undef PACKAGE_BUGREPORT
61
62 /* Define to the full name of this package. */
63 #undef PACKAGE_NAME
64
65 /* Define to the full name and version of this package. */
66 #undef PACKAGE_STRING
67
68 /* Define to the one symbol short name of this package. */
69 #undef PACKAGE_TARNAME
70
71 /* Define to the home page for this package. */
72 #undef PACKAGE_URL
73
74 /* Define to the version of this package. */
75 #undef PACKAGE_VERSION
76
77 /* STRSIGNAL */
78 #ifndef HAVE_STRSIGNAL
79 #define STRSIGNAL(x) "[platform has no strsignal!]"
80 #endif
81
82 /* VSNPRINTF */
83 #ifndef HAVE_VSNPRINTF
84 # 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/"
85 #endif
86
87 /* EPROTO */
88 #ifndef HAVE_EPROTO
89 #define EPROTO 0
90 #endif
91
92 /* LOG_AUTHPRIV */
93 #ifndef HAVE_LOG_AUTHPRIV
94 #define LOG_AUTHPRIV LOG_AUTH
95 #endif
96
97 /* WCOREDUMP */
98 #ifndef HAVE_WCOREDUMP
99 #define WCOREDUMP(x) 0
100 #endif
101
102 /* GNU C attributes. */
103 #ifndef FUNCATTR
104 #ifdef HAVE_GNUC25_ATTRIB
105 #define FUNCATTR(x) __attribute__(x)
106 #else
107 #define FUNCATTR(x)
108 #endif
109 #endif
110
111 /* GNU C printf formats, or null. */
112 #ifndef ATTRPRINTF
113 #ifdef HAVE_GNUC25_PRINTFFORMAT
114 #define ATTRPRINTF(si,tc) format(printf,si,tc)
115 #else
116 #define ATTRPRINTF(si,tc)
117 #endif
118 #endif
119 #ifndef PRINTFFORMAT
120 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
121 #endif
122
123 /* GNU C nonreturning functions, or null. */
124 #ifndef ATTRNORETURN
125 #ifdef HAVE_GNUC25_NORETURN
126 #define ATTRNORETURN noreturn
127 #else
128 #define ATTRNORETURN
129 #endif
130 #endif
131 #ifndef NONRETURNING
132 #define NONRETURNING FUNCATTR((ATTRNORETURN))
133 #endif
134
135 /* Combination of both the above. */
136 #ifndef NONRETURNPRINTFFORMAT
137 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
138 #endif
139
140 /* GNU C unused functions, or null. */
141 #ifndef ATTRUNUSED
142 #ifdef HAVE_GNUC25_UNUSED
143 #define ATTRUNUSED unused
144 #else
145 #define ATTRUNUSED
146 #endif
147 #endif
148 #ifndef UNUSED
149 #define UNUSED FUNCATTR((ATTRUNUSED))
150 #endif