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 /* _POSIX_VDISABLE define, may be missing. */
50 #undef HAVE__POSIX_VDISABLE
51 #undef _POSIX_VDISABLE
53 /* FD_SETSIZE define, may be missing. */
54 #undef HAVE_FD_SETSIZE
56 /* offsetof() define, may be missing. */
59 /* snprintf(3) unsafe emulation */
62 /* vsnprintf(3) unsafe emulation */
65 /* found lockfile directory */
68 /* how to declare __atribute__ ((__unused__)) */
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))))
76 #define ATTR_PRINTFORMAT(a,b)
81 #ifdef WANT_DECLARATIONS
83 /* Declaration for gethostname(3)? */
84 #undef NEED_DECLARATION_GETHOSTNAME
85 #ifdef NEED_DECLARATION_GETHOSTNAME
89 int gethostname(char *name, size_t len);
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>
101 int kill(pid_t pid, int sig);
104 /* Declaration for snprintf(3)? */
105 #undef NEED_DECLARATION_SNPRINTF
106 #ifdef NEED_DECLARATION_SNPRINTF
110 int snprintf(char *str, size_t n, const char *format, ...);
113 /* Declaration for vsnprintf(3)? */
114 #undef NEED_DECLARATION_VSNPRINTF
115 #ifdef NEED_DECLARATION_VSNPRINTF
122 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
125 /* Declaration for strdup(3)? */
126 #undef NEED_DECLARATION_STRDUP
127 #ifdef NEED_DECLARATION_STRDUP
131 char *strdup(const char *s);
134 /* Declaration for usleep(3)? */
135 #undef NEED_DECLARATION_USLEEP
136 #ifdef NEED_DECLARATION_USLEEP
140 void usleep(unsigned long usec);
143 /* Declaration for strcasecmp(3)? */
144 #undef NEED_DECLARATION_STRCASECMP
145 #ifdef NEED_DECLARATION_STRCASECMP
149 int strcasecmp(const char *s1, const char *s2);
152 /* Declaration for siginterrupt(3)? */
153 #undef NEED_DECLARATION_SIGINTERRUPT
154 #ifdef NEED_DECLARATION_SIGINTERRUPT
158 int siginterrupt(int sig, int flag);
161 /* Declaration for popen(3)? */
162 #undef NEED_DECLARATION_POPEN
163 #ifdef NEED_DECLARATION_POPEN
167 FILE *popen(const char *command, const char *type);
170 /* Declaration for pclose(3)? */
171 #undef NEED_DECLARATION_PCLOSE
172 #ifdef NEED_DECLARATION_PCLOSE
176 int pclose(FILE *stream);
179 /* Declaration for gettext(3)? */
180 #undef NEED_DECLARATION_GETTEXT
181 #ifdef NEED_DECLARATION_GETTEXT
182 #ifdef HAVE_LIBINTL_H
185 extern const char *gettext(const char *msgid);
188 #endif /* WANT_DECLARATIONS */
190 /* snprintf(3) unsafe emulation */
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))
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))
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))
206 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
207 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
210 #ifndef HAVE_STRERROR
211 extern char *sys_errlist[];
212 #define strerror(i) sys_errlist[i]
220 #define strrchr rindex
223 #ifdef HAVE_STRCASECMP
224 #define strtrycasecmp strcasecmp
226 #define strtrycasecmp strcmp
229 #ifndef HAVE_OFFSETOF
230 #define offsetof(a,b) ((size_t)&((a *)0)->b)
233 #ifdef WANT_DECLARATIONS
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>
241 #ifdef HAVE_LIBINTL_H
242 # include <libintl.h>
243 #endif /* HAVE_LIBINTL_H */
244 # define _(String) gettext (String)
246 # define N_(String) gettext_noop (String)
248 # define N_(String) (String)
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 */