1 /* config.h.in. Generated from configure.in by autoheader. */
4 * extra stuff for config.h.in (autoconf)
6 * userv is copyright Ian Jackson and other contributors.
7 * See README for full authorship information.
9 * This is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with userv; if not, see <http://www.gnu.org/licenses/>.
23 /* Define if EPROTO exists. */
26 /* Define if LOG_AUTHPRIV exists. */
27 #undef HAVE_LOG_AUTHPRIV
29 /* Define if WCOREDUMP exists. */
32 /* Define if function attributes a la GCC 2.5 and higher are available. */
33 #undef HAVE_GNUC25_ATTRIB
35 /* Define if unused functions a la GCC 2.5 and higher are available. */
36 #undef HAVE_GNUC25_UNUSED
38 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
39 #undef HAVE_GNUC25_NORETURN
41 /* Define if printf-format argument lists a la GCC are available. */
42 #undef HAVE_GNUC25_PRINTFFORMAT
45 /* Define to 1 if you have the `socket' library (-lsocket). */
48 /* Define to 1 if you have the `setenv' function. */
51 /* Define to 1 if you have the `strsignal' function. */
54 /* Define to 1 if you have the `vsnprintf' function. */
57 /* Define to the address where bug reports for this package should be sent. */
58 #undef PACKAGE_BUGREPORT
60 /* Define to the full name of this package. */
63 /* Define to the full name and version of this package. */
66 /* Define to the one symbol short name of this package. */
67 #undef PACKAGE_TARNAME
69 /* Define to the home page for this package. */
72 /* Define to the version of this package. */
73 #undef PACKAGE_VERSION
76 #ifndef HAVE_STRSIGNAL
77 #define STRSIGNAL(x) "[platform has no strsignal!]"
81 #ifndef HAVE_VSNPRINTF
82 # 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/"
91 #ifndef HAVE_LOG_AUTHPRIV
92 #define LOG_AUTHPRIV LOG_AUTH
96 #ifndef HAVE_WCOREDUMP
97 #define WCOREDUMP(x) 0
100 /* GNU C attributes. */
102 #ifdef HAVE_GNUC25_ATTRIB
103 #define FUNCATTR(x) __attribute__(x)
109 /* GNU C printf formats, or null. */
111 #ifdef HAVE_GNUC25_PRINTFFORMAT
112 #define ATTRPRINTF(si,tc) format(printf,si,tc)
114 #define ATTRPRINTF(si,tc)
118 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
121 /* GNU C nonreturning functions, or null. */
123 #ifdef HAVE_GNUC25_NORETURN
124 #define ATTRNORETURN noreturn
130 #define NONRETURNING FUNCATTR((ATTRNORETURN))
133 /* Combination of both the above. */
134 #ifndef NONRETURNPRINTFFORMAT
135 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
138 /* GNU C unused functions, or null. */
140 #ifdef HAVE_GNUC25_UNUSED
141 #define ATTRUNUSED unused
147 #define UNUSED FUNCATTR((ATTRUNUSED))