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 /* Provide stub for MAX-function if needed. */
36 #define MAX(a,b) ((a)>(b)?(a):(b))
39 /* Provide stub for MIN-function if needed. */
42 #define MIN(a,b) ((a)<(b)?(a):(b))
45 /* LINE_MAX from <limits.h>, provide default if not defined. */
49 /* CBAUD define, may be missing. */
53 /* CBAUDEX define, may be missing. */
57 /* CRTSCTS define, may be missing. */
61 /* FD_SETSIZE define, may be missing. */
62 #undef HAVE_FD_SETSIZE
64 /* offsetof() define, may be missing. */
67 /* snprintf(3) unsafe emulation */
70 /* vsnprintf(3) unsafe emulation */
73 /* found lockfile directory */
76 /* how to declare __atribute__ ((__unused__)) */
79 /* whether they have __atttribute__ ((format(printf,...))) */
80 #undef HAVE_PRINTFORMAT
81 #ifdef HAVE_PRINTFORMAT
82 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
84 #define ATTR_PRINTFORMAT(a,b)
89 #ifndef DONT_NEED_DECLARATIONS
91 /* Declaration for gethostname(3)? */
92 #undef NEED_DECLARATION_GETHOSTNAME
93 #ifdef NEED_DECLARATION_GETHOSTNAME
95 int gethostname(char *name, size_t len);
98 /* Declaration for kill(2)? */
99 #undef NEED_DECLARATION_KILL
100 #ifdef NEED_DECLARATION_KILL
101 #include <sys/types.h>
103 int kill(pid_t pid, int sig);
106 /* Declaration for snprintf(3)? */
107 #undef NEED_DECLARATION_SNPRINTF
108 #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
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
125 char *strdup(const char *s);
128 /* Declaration for usleep(3)? */
129 #undef NEED_DECLARATION_USLEEP
130 #ifdef NEED_DECLARATION_USLEEP
132 void usleep(unsigned long usec);
135 /* Declaration for strcasecmp(3)? */
136 #undef NEED_DECLARATION_STRCASECMP
137 #ifdef NEED_DECLARATION_STRCASECMP
139 int strcasecmp(const char *s1, const char *s2);
142 /* Declaration for siginterrupt(3)? */
143 #undef NEED_DECLARATION_SIGINTERRUPT
144 #ifdef NEED_DECLARATION_SIGINTERRUPT
146 int siginterrupt(int sig, int flag);
149 /* Declaration for popen(3)? */
150 #undef NEED_DECLARATION_POPEN
151 #ifdef NEED_DECLARATION_POPEN
153 FILE *popen(const char *command, const char *type);
156 /* Declaration for pclose(3)? */
157 #undef NEED_DECLARATION_PCLOSE
158 #ifdef NEED_DECLARATION_PCLOSE
160 int pclose(FILE *stream);
163 #endif /* !DONT_NEED_DECLARATIONS */
165 /* snprintf(3) unsafe emulation */
167 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
168 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2) )
169 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
171 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
172 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2) )
173 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
176 /* vsnprintf(3) unsafe emulation */
177 #ifdef HAVE_VSNPRINTF
178 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
179 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
181 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
182 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
185 #ifndef HAVE_STRERROR
186 extern char *sys_errlist[];
187 #define strerror(i) sys_errlist[i]
195 #define strrchr rindex
198 #ifdef HAVE_STRCASECMP
199 #define strtrycasecmp strcasecmp
201 #define strtrycasecmp strcmp
204 #ifndef HAVE_OFFSETOF
205 #define offsetof(a,b) ((size_t)&((a *)0)->b)
208 #ifndef DONT_NEED_DECLARATIONS
210 * Handles all of the internationalization configuration options.
211 * Author: Tom Tromey <tromey@creche.cygnus.com>
212 * Stolen from <libgnome/gnome-i18n.h>
213 * Modified by Jan Kratochvil <short@ucw.cz>
216 #ifdef HAVE_LIBINTL_H
217 # include <libintl.h>
218 #endif /* HAVE_LIBINTL_H */
219 # define _(String) gettext (String)
221 # define N_(String) gettext_noop (String)
223 # define N_(String) (String)
225 #else /* ENABLE_NLS */
226 /* Stubs that do something close enough. */
227 # define textdomain(String) (String)
228 # define gettext(String) (String)
229 # define dgettext(Domain,Message) (Message)
230 # define dcgettext(Domain,Message,Type) (Message)
231 # define bindtextdomain(Domain,Directory) (Domain)
232 # define _(String) (String)
233 # define N_(String) (String)
234 #endif /* ENABLE_NLS */
235 #endif /* !DONT_NEED_DECLARATIONS */