chiark / gitweb /
more fixes
[userv.git] / config.h.in
1 /* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
2
3 /* Define if EPROTO exists.  */
4 #undef HAVE_EPROTO
5
6 /* Define if LOG_AUTHPRIV exists.  */
7 #undef HAVE_LOG_AUTHPRIV
8
9 /* Define if WCOREDUMP exists.  */
10 #undef HAVE_WCOREDUMP
11
12 /* Define if function attributes a la GCC 2.5 and higher are available.  */
13 #undef HAVE_GNUC25_ATTRIB
14
15 /* Define if unused functions a la GCC 2.5 and higher are available.  */
16 #undef HAVE_GNUC25_UNUSED
17
18 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
19 #undef HAVE_GNUC25_NORETURN
20
21 /* Define if printf-format argument lists a la GCC are available.  */
22 #undef HAVE_GNUC25_PRINTFFORMAT
23
24 /* Define if you have the setenv function.  */
25 #undef HAVE_SETENV
26
27 /* Define if you have the strsignal function.  */
28 #undef HAVE_STRSIGNAL
29
30 /* Define if you have the vsnprintf function.  */
31 #undef HAVE_VSNPRINTF
32
33 /* Define if you have the socket library (-lsocket).  */
34 #undef HAVE_LIBSOCKET
35
36 /* STRSIGNAL */
37 #ifndef HAVE_STRSIGNAL
38 #define STRSIGNAL(x) "[platform has no strsignal!]"
39 #endif
40
41 /* VSNPRINTF */
42 #ifndef HAVE_VSNPRINTF
43 # 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/"
44 #endif
45
46 /* EPROTO */
47 #ifndef HAVE_EPROTO
48 #define EPROTO 0
49 #endif
50
51 /* LOG_AUTHPRIV */
52 #ifndef HAVE_LOG_AUTHPRIV
53 #define LOG_AUTHPRIV LOG_AUTH
54 #endif
55
56 /* WCOREDUMP */
57 #ifndef HAVE_WCOREDUMP
58 #define WCOREDUMP(x) 0
59 #endif
60
61 /* GNU C attributes. */
62 #ifndef FUNCATTR
63 #ifdef HAVE_GNUC25_ATTRIB
64 #define FUNCATTR(x) __attribute__(x)
65 #else
66 #define FUNCATTR(x)
67 #endif
68 #endif
69
70 /* GNU C printf formats, or null. */
71 #ifndef ATTRPRINTF
72 #ifdef HAVE_GNUC25_PRINTFFORMAT
73 #define ATTRPRINTF(si,tc) format(printf,si,tc)
74 #else
75 #define ATTRPRINTF(si,tc)
76 #endif
77 #endif
78 #ifndef PRINTFFORMAT
79 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
80 #endif
81
82 /* GNU C nonreturning functions, or null. */
83 #ifndef ATTRNORETURN
84 #ifdef HAVE_GNUC25_NORETURN
85 #define ATTRNORETURN noreturn
86 #else
87 #define ATTRNORETURN
88 #endif
89 #endif
90 #ifndef NONRETURNING
91 #define NONRETURNING FUNCATTR((ATTRNORETURN))
92 #endif
93
94 /* Combination of both the above. */
95 #ifndef NONRETURNPRINTFFORMAT
96 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
97 #endif
98
99 /* GNU C unused functions, or null. */
100 #ifndef ATTRUNUSED
101 #ifdef HAVE_GNUC25_UNUSED
102 #define ATTRUNUSED unused
103 #else
104 #define ATTRUNUSED
105 #endif
106 #endif
107 #ifndef UNUSED
108 #define UNUSED FUNCATTR((ATTRUNUSED))
109 #endif