1 /* acconfig.h Generated manually for use by autoheader. */
6 /* Define if your locale.h file contains LC_MESSAGES. */
7 #undef HAVE_LC_MESSAGES
9 /* Define to 1 if NLS is requested. */
12 /* Define as 1 if you have catgets and don't want to use GNU gettext. */
15 /* Define as 1 if you have gettext and don't want to use GNU gettext. */
18 /* Define as 1 if you have the stpcpy function. */
21 /* __NORETURN define - usually a GCC extension. */
24 /* __NORETURN2 define - usually a GCC extension. */
27 /* Turn on debugging to stderr. */
30 /* Disable runtime assertion checks. */
33 /* LINE_MAX from <limits.h>, provide default if not defined. */
37 /* CBAUD define, may be missing. */
41 /* CBAUDEX define, may be missing. */
45 /* CRTSCTS define, may be missing. */
49 /* FD_SETSIZE define, may be missing. */
50 #undef HAVE_FD_SETSIZE
52 /* offsetof() define, may be missing. */
55 /* snprintf(3) unsafe emulation */
58 /* vsnprintf(3) unsafe emulation */
61 /* found lockfile directory */
64 /* how to declare __atribute__ ((__unused__)) */
67 /* whether they have __atttribute__ ((format(printf,...))) */
68 #undef HAVE_PRINTFORMAT
69 #ifdef HAVE_PRINTFORMAT
70 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
72 #define ATTR_PRINTFORMAT(a,b)
77 #ifdef WANT_DECLARATIONS
79 /* Declaration for gethostname(3)? */
80 #undef NEED_DECLARATION_GETHOSTNAME
81 #ifdef NEED_DECLARATION_GETHOSTNAME
85 int gethostname(char *name, size_t len);
88 /* Declaration for kill(2)? */
89 #undef NEED_DECLARATION_KILL
90 #ifdef NEED_DECLARATION_KILL
91 #ifdef HAVE_SYS_TYPES_H
92 #include <sys/types.h>
97 int kill(pid_t pid, int sig);
100 /* Declaration for snprintf(3)? */
101 #undef NEED_DECLARATION_SNPRINTF
102 #ifdef NEED_DECLARATION_SNPRINTF
106 int snprintf(char *str, size_t n, const char *format, ...);
109 /* Declaration for vsnprintf(3)? */
110 #undef NEED_DECLARATION_VSNPRINTF
111 #ifdef NEED_DECLARATION_VSNPRINTF
118 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
121 /* Declaration for strdup(3)? */
122 #undef NEED_DECLARATION_STRDUP
123 #ifdef NEED_DECLARATION_STRDUP
127 char *strdup(const char *s);
130 /* Declaration for usleep(3)? */
131 #undef NEED_DECLARATION_USLEEP
132 #ifdef NEED_DECLARATION_USLEEP
136 void usleep(unsigned long usec);
139 /* Declaration for strcasecmp(3)? */
140 #undef NEED_DECLARATION_STRCASECMP
141 #ifdef NEED_DECLARATION_STRCASECMP
145 int strcasecmp(const char *s1, const char *s2);
148 /* Declaration for siginterrupt(3)? */
149 #undef NEED_DECLARATION_SIGINTERRUPT
150 #ifdef NEED_DECLARATION_SIGINTERRUPT
154 int siginterrupt(int sig, int flag);
157 /* Declaration for popen(3)? */
158 #undef NEED_DECLARATION_POPEN
159 #ifdef NEED_DECLARATION_POPEN
163 FILE *popen(const char *command, const char *type);
166 /* Declaration for pclose(3)? */
167 #undef NEED_DECLARATION_PCLOSE
168 #ifdef NEED_DECLARATION_PCLOSE
172 int pclose(FILE *stream);
175 /* Declaration for gettext(3)? */
176 #undef NEED_DECLARATION_GETTEXT
177 #ifdef NEED_DECLARATION_GETTEXT
178 #ifdef HAVE_LIBINTL_H
181 extern const char *gettext(const char *msgid);
184 #endif /* WANT_DECLARATIONS */
186 /* snprintf(3) unsafe emulation */
188 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
189 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2) )
190 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
192 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
193 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2) )
194 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
197 /* vsnprintf(3) unsafe emulation */
198 #ifdef HAVE_VSNPRINTF
199 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
200 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
202 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
203 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
206 #ifndef HAVE_STRERROR
207 extern char *sys_errlist[];
208 #define strerror(i) sys_errlist[i]
216 #define strrchr rindex
219 #ifdef HAVE_STRCASECMP
220 #define strtrycasecmp strcasecmp
222 #define strtrycasecmp strcmp
225 #ifndef HAVE_OFFSETOF
226 #define offsetof(a,b) ((size_t)&((a *)0)->b)
229 #ifdef WANT_DECLARATIONS
231 * Handles all of the internationalization configuration options.
232 * Author: Tom Tromey <tromey@creche.cygnus.com>
233 * Stolen from <libgnome/gnome-i18n.h>
234 * Modified by Jan Kratochvil <short@ucw.cz>
237 #ifdef HAVE_LIBINTL_H
238 # include <libintl.h>
239 #endif /* HAVE_LIBINTL_H */
240 # define _(String) gettext (String)
242 # define N_(String) gettext_noop (String)
244 # define N_(String) (String)
246 #else /* ENABLE_NLS */
247 /* Stubs that do something close enough. */
248 # define textdomain(String) (String)
249 # define gettext(String) (String)
250 # define dgettext(Domain,Message) (Message)
251 # define dcgettext(Domain,Message,Type) (Message)
252 # define bindtextdomain(Domain,Directory) (Domain)
253 # define _(String) (String)
254 # define N_(String) (String)
255 #endif /* ENABLE_NLS */
256 #endif /* WANT_DECLARATIONS */