Non-existence of _POSIX_VDISABLE is now non-fatal
[mdsms.git] / acconfig.h
1 /* acconfig.h  Generated manually for use by autoheader.  */
2 /*
3  * $Id$
4  */
5
6 /* Define if your locale.h file contains LC_MESSAGES.  */
7 #undef HAVE_LC_MESSAGES
8
9 /* Define to 1 if NLS is requested.  */
10 #undef ENABLE_NLS
11
12 /* Define as 1 if you have catgets and don't want to use GNU gettext.  */
13 #undef HAVE_CATGETS
14
15 /* Define as 1 if you have gettext and don't want to use GNU gettext.  */
16 #undef HAVE_GETTEXT
17
18 /* Define as 1 if you have the stpcpy function.  */
19 #undef HAVE_STPCPY
20
21 /* __NORETURN define - usually a GCC extension. */
22 #undef __NORETURN
23
24 /* __NORETURN2 define - usually a GCC extension. */
25 #undef __NORETURN2
26
27 /* Turn on debugging to stderr. */
28 #undef DEBUG
29
30 /* Disable runtime assertion checks. */
31 #undef NDEBUG
32
33 /* LINE_MAX from <limits.h>, provide default if not defined. */
34 #undef HAVE_LINE_MAX
35 #undef LINE_MAX
36
37 /* CBAUD define, may be missing. */
38 #undef HAVE_CBAUD
39 #undef CBAUD
40
41 /* CBAUDEX define, may be missing. */
42 #undef HAVE_CBAUDEX
43 #undef CBAUDEX
44
45 /* CRTSCTS define, may be missing. */
46 #undef HAVE_CRTSCTS
47 #undef CRTSCTS
48
49 /* _POSIX_VDISABLE define, may be missing. */
50 #undef HAVE__POSIX_VDISABLE
51 #undef _POSIX_VDISABLE
52
53 /* FD_SETSIZE define, may be missing. */
54 #undef HAVE_FD_SETSIZE
55
56 /* offsetof() define, may be missing. */
57 #undef HAVE_OFFSETOF
58
59 /* snprintf(3) unsafe emulation */
60 #undef HAVE_SNPRINTF
61
62 /* vsnprintf(3) unsafe emulation */
63 #undef HAVE_VSNPRINTF
64
65 /* found lockfile directory */
66 #undef DEF_LOCKFILE
67
68 /* how to declare __atribute__ ((__unused__)) */
69 #undef ATTR_UNUSED
70
71 /* whether they have __atttribute__ ((format(printf,...))) */
72 #undef HAVE_PRINTFORMAT
73 #ifdef HAVE_PRINTFORMAT
74 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
75 #else
76 #define ATTR_PRINTFORMAT(a,b)
77 #endif
78
79 @BOTTOM@
80
81 #ifdef WANT_DECLARATIONS
82
83 /* Declaration for gethostname(3)? */
84 #undef NEED_DECLARATION_GETHOSTNAME
85 #ifdef NEED_DECLARATION_GETHOSTNAME
86 #ifdef HAVE_UNISTD_H
87 #include <unistd.h>
88 #endif
89 int gethostname(char *name, size_t len);
90 #endif
91
92 /* Declaration for kill(2)? */
93 #undef NEED_DECLARATION_KILL
94 #ifdef NEED_DECLARATION_KILL
95 #ifdef HAVE_SYS_TYPES_H
96 #include <sys/types.h>
97 #endif
98 #ifdef HAVE_SIGNAL_H
99 #include <signal.h>
100 #endif
101 int kill(pid_t pid, int sig);
102 #endif
103
104 /* Declaration for snprintf(3)? */
105 #undef NEED_DECLARATION_SNPRINTF
106 #ifdef NEED_DECLARATION_SNPRINTF
107 #ifdef HAVE_STDIO_H
108 #include <stdio.h>
109 #endif
110 int snprintf(char *str, size_t n, const char *format, ...);
111 #endif
112
113 /* Declaration for vsnprintf(3)? */
114 #undef NEED_DECLARATION_VSNPRINTF
115 #ifdef NEED_DECLARATION_VSNPRINTF
116 #ifdef HAVE_STDIO_H
117 #include <stdio.h>
118 #endif
119 #ifdef HAVE_STDARG_H
120 #include <stdarg.h>
121 #endif
122 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
123 #endif
124
125 /* Declaration for strdup(3)? */
126 #undef NEED_DECLARATION_STRDUP
127 #ifdef NEED_DECLARATION_STRDUP
128 #ifdef HAVE_STRING_H
129 #include <string.h>
130 #endif
131 char *strdup(const char *s);
132 #endif
133
134 /* Declaration for usleep(3)? */
135 #undef NEED_DECLARATION_USLEEP
136 #ifdef NEED_DECLARATION_USLEEP
137 #ifdef HAVE_UNISTD_H
138 #include <unistd.h>
139 #endif
140 void usleep(unsigned long usec);
141 #endif
142
143 /* Declaration for strcasecmp(3)? */
144 #undef NEED_DECLARATION_STRCASECMP
145 #ifdef NEED_DECLARATION_STRCASECMP
146 #ifdef HAVE_STRING_H
147 #include <string.h>
148 #endif
149 int strcasecmp(const char *s1, const char *s2);
150 #endif
151
152 /* Declaration for siginterrupt(3)? */
153 #undef NEED_DECLARATION_SIGINTERRUPT
154 #ifdef NEED_DECLARATION_SIGINTERRUPT
155 #ifdef HAVE_SIGNAL_H
156 #include <signal.h>
157 #endif
158 int siginterrupt(int sig, int flag);
159 #endif
160
161 /* Declaration for popen(3)? */
162 #undef NEED_DECLARATION_POPEN
163 #ifdef NEED_DECLARATION_POPEN
164 #ifdef HAVE_STDIO_H
165 #include <stdio.h>
166 #endif
167 FILE *popen(const char *command, const char *type);
168 #endif
169
170 /* Declaration for pclose(3)? */
171 #undef NEED_DECLARATION_PCLOSE
172 #ifdef NEED_DECLARATION_PCLOSE
173 #ifdef HAVE_STDIO_H
174 #include <stdio.h>
175 #endif
176 int pclose(FILE *stream);
177 #endif
178
179 /* Declaration for gettext(3)? */
180 #undef NEED_DECLARATION_GETTEXT
181 #ifdef NEED_DECLARATION_GETTEXT
182 #ifdef HAVE_LIBINTL_H
183 #include <libintl.h>
184 #endif
185 extern const char *gettext(const char *msgid);
186 #endif
187
188 #endif /* WANT_DECLARATIONS */
189
190 /* snprintf(3) unsafe emulation */
191 #ifdef HAVE_SNPRINTF
192 #define VARPRINTF(v,f,d)               snprintf((v),sizeof((v)),f,(d)                     )
193 #define VARPRINTF2(v,f,d1,d2)          snprintf((v),sizeof((v)),f,(d1),(d2)               )
194 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
195 #else
196 #define VARPRINTF(v,f,d)               sprintf((v),f,(d)                     )
197 #define VARPRINTF2(v,f,d1,d2)          sprintf((v),f,(d1),(d2)               )
198 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
199 #endif
200
201 /* vsnprintf(3) unsafe emulation */
202 #ifdef HAVE_VSNPRINTF
203 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
204 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
205 #else
206 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
207 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
208 #endif
209
210 #ifndef HAVE_STRERROR
211 extern char *sys_errlist[];
212 #define strerror(i) sys_errlist[i]
213 #endif
214
215 #ifndef HAVE_STRCHR
216 #define strchr index
217 #endif
218
219 #ifndef HAVE_STRRCHR
220 #define strrchr rindex
221 #endif
222
223 #ifdef HAVE_STRCASECMP
224 #define strtrycasecmp strcasecmp
225 #else
226 #define strtrycasecmp strcmp
227 #endif
228
229 #ifndef HAVE_OFFSETOF
230 #define offsetof(a,b) ((size_t)&((a *)0)->b)
231 #endif
232
233 #ifdef WANT_DECLARATIONS
234 /*
235  * Handles all of the internationalization configuration options.
236  * Author: Tom Tromey <tromey@creche.cygnus.com>
237  * Stolen from <libgnome/gnome-i18n.h>
238  * Modified by Jan Kratochvil <short@ucw.cz>
239  */
240 #ifdef ENABLE_NLS
241 #ifdef HAVE_LIBINTL_H
242 #    include <libintl.h>
243 #endif /* HAVE_LIBINTL_H */
244 #    define _(String) gettext (String)
245 #    ifdef gettext_noop
246 #        define N_(String) gettext_noop (String)
247 #    else
248 #        define N_(String) (String)
249 #    endif
250 #else /* ENABLE_NLS */
251 /* Stubs that do something close enough.  */
252 #    define textdomain(String) (String)
253 #    define gettext(String) (String)
254 #    define dgettext(Domain,Message) (Message)
255 #    define dcgettext(Domain,Message,Type) (Message)
256 #    define bindtextdomain(Domain,Directory) (Domain)
257 #    define _(String) (String)
258 #    define N_(String) (String)
259 #endif /* ENABLE_NLS */
260 #endif /* WANT_DECLARATIONS */