chiark / gitweb /
Use install -g 0 instead of -g root. This is more portable, I hope.
[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 WCOREDUMP exists.  */
29 #undef HAVE_WCOREDUMP
30
31 /* Define if function attributes a la GCC 2.5 and higher are available.  */
32 #undef HAVE_GNUC25_ATTRIB
33
34 /* Define if unused functions a la GCC 2.5 and higher are available.  */
35 #undef HAVE_GNUC25_UNUSED
36
37 /* Define if nonreturning functions a la GCC 2.5 and higher are available.  */
38 #undef HAVE_GNUC25_NORETURN
39
40 /* Define if printf-format argument lists a la GCC are available.  */
41 #undef HAVE_GNUC25_PRINTFFORMAT
42
43 @BOTTOM@
44
45 /* STRSIGNAL */
46 #ifndef HAVE_STRSIGNAL
47 #define STRSIGNAL(x) "[platform has no strsignal!]"
48 #endif
49
50 /* EPROTO */
51 #ifndef HAVE_EPROTO
52 #define EPROTO 0
53 #endif
54
55 /* LOG_AUTHPRIV */
56 #ifndef HAVE_LOG_AUTHPRIV
57 #define LOG_AUTHPRIV LOG_AUTH
58 #endif
59
60 /* WCOREDUMP */
61 #ifndef HAVE_WCOREDUMP
62 #define WCOREDUMP(x) 0
63 #endif
64
65 /* GNU C attributes. */
66 #ifndef FUNCATTR
67 #ifdef HAVE_GNUC25_ATTRIB
68 #define FUNCATTR(x) __attribute__(x)
69 #else
70 #define FUNCATTR(x)
71 #endif
72 #endif
73
74 /* GNU C printf formats, or null. */
75 #ifndef ATTRPRINTF
76 #ifdef HAVE_GNUC25_PRINTFFORMAT
77 #define ATTRPRINTF(si,tc) format(printf,si,tc)
78 #else
79 #define ATTRPRINTF(si,tc)
80 #endif
81 #endif
82 #ifndef PRINTFFORMAT
83 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
84 #endif
85
86 /* GNU C nonreturning functions, or null. */
87 #ifndef ATTRNORETURN
88 #ifdef HAVE_GNUC25_NORETURN
89 #define ATTRNORETURN noreturn
90 #else
91 #define ATTRNORETURN
92 #endif
93 #endif
94 #ifndef NONRETURNING
95 #define NONRETURNING FUNCATTR((ATTRNORETURN))
96 #endif
97
98 /* Combination of both the above. */
99 #ifndef NONRETURNPRINTFFORMAT
100 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
101 #endif
102
103 /* GNU C unused functions, or null. */
104 #ifndef ATTRUNUSED
105 #ifdef HAVE_GNUC25_UNUSED
106 #define ATTRUNUSED unused
107 #else
108 #define ATTRUNUSED
109 #endif
110 #endif
111 #ifndef UNUSED
112 #define UNUSED FUNCATTR((ATTRUNUSED))
113 #endif