Crossplatformity: MIN and MAX functiona are _always_ redefined, no #ifdefs
[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 /* FD_SETSIZE define, may be missing. */
50 #undef HAVE_FD_SETSIZE
51
52 /* offsetof() define, may be missing. */
53 #undef HAVE_OFFSETOF
54
55 /* snprintf(3) unsafe emulation */
56 #undef HAVE_SNPRINTF
57
58 /* vsnprintf(3) unsafe emulation */
59 #undef HAVE_VSNPRINTF
60
61 /* found lockfile directory */
62 #undef DEF_LOCKFILE
63
64 /* how to declare __atribute__ ((__unused__)) */
65 #undef ATTR_UNUSED
66
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))))
71 #else
72 #define ATTR_PRINTFORMAT(a,b)
73 #endif
74
75 @BOTTOM@
76
77 #ifndef DONT_NEED_DECLARATIONS
78
79 /* Declaration for gethostname(3)? */
80 #undef NEED_DECLARATION_GETHOSTNAME
81 #ifdef NEED_DECLARATION_GETHOSTNAME
82 #include <unistd.h>
83 int gethostname(char *name, size_t len);
84 #endif
85
86 /* Declaration for kill(2)? */
87 #undef NEED_DECLARATION_KILL
88 #ifdef NEED_DECLARATION_KILL
89 #include <sys/types.h>
90 #include <signal.h>
91 int kill(pid_t pid, int sig);
92 #endif
93
94 /* Declaration for snprintf(3)? */
95 #undef NEED_DECLARATION_SNPRINTF
96 #ifdef NEED_DECLARATION_SNPRINTF
97 #include <stdio.h>
98 int snprintf(char *str, size_t n, const char *format, ...);
99 #endif
100
101 /* Declaration for vsnprintf(3)? */
102 #undef NEED_DECLARATION_VSNPRINTF
103 #ifdef NEED_DECLARATION_VSNPRINTF
104 #include <stdio.h>
105 #include <stdarg.h>
106 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
107 #endif
108
109 /* Declaration for strdup(3)? */
110 #undef NEED_DECLARATION_STRDUP
111 #ifdef NEED_DECLARATION_STRDUP
112 #include <string.h>
113 char *strdup(const char *s);
114 #endif
115
116 /* Declaration for usleep(3)? */
117 #undef NEED_DECLARATION_USLEEP
118 #ifdef NEED_DECLARATION_USLEEP
119 #include <unistd.h>
120 void usleep(unsigned long usec);
121 #endif
122
123 /* Declaration for strcasecmp(3)? */
124 #undef NEED_DECLARATION_STRCASECMP
125 #ifdef NEED_DECLARATION_STRCASECMP
126 #include <string.h>
127 int strcasecmp(const char *s1, const char *s2);
128 #endif
129
130 /* Declaration for siginterrupt(3)? */
131 #undef NEED_DECLARATION_SIGINTERRUPT
132 #ifdef NEED_DECLARATION_SIGINTERRUPT
133 #include <signal.h>
134 int siginterrupt(int sig, int flag);
135 #endif
136
137 /* Declaration for popen(3)? */
138 #undef NEED_DECLARATION_POPEN
139 #ifdef NEED_DECLARATION_POPEN
140 #include <stdio.h>
141 FILE *popen(const char *command, const char *type);
142 #endif
143
144 /* Declaration for pclose(3)? */
145 #undef NEED_DECLARATION_PCLOSE
146 #ifdef NEED_DECLARATION_PCLOSE
147 #include <stdio.h>
148 int pclose(FILE *stream);
149 #endif
150
151 #endif /* !DONT_NEED_DECLARATIONS */
152
153 /* snprintf(3) unsafe emulation */
154 #ifdef HAVE_SNPRINTF
155 #define VARPRINTF(v,f,d)               snprintf((v),sizeof((v)),f,(d)                     )
156 #define VARPRINTF2(v,f,d1,d2)          snprintf((v),sizeof((v)),f,(d1),(d2)               )
157 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
158 #else
159 #define VARPRINTF(v,f,d)               sprintf((v),f,(d)                     )
160 #define VARPRINTF2(v,f,d1,d2)          sprintf((v),f,(d1),(d2)               )
161 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
162 #endif
163
164 /* vsnprintf(3) unsafe emulation */
165 #ifdef HAVE_VSNPRINTF
166 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
167 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
168 #else
169 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
170 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
171 #endif
172
173 #ifndef HAVE_STRERROR
174 extern char *sys_errlist[];
175 #define strerror(i) sys_errlist[i]
176 #endif
177
178 #ifndef HAVE_STRCHR
179 #define strchr index
180 #endif
181
182 #ifndef HAVE_STRRCHR
183 #define strrchr rindex
184 #endif
185
186 #ifdef HAVE_STRCASECMP
187 #define strtrycasecmp strcasecmp
188 #else
189 #define strtrycasecmp strcmp
190 #endif
191
192 #ifndef HAVE_OFFSETOF
193 #define offsetof(a,b) ((size_t)&((a *)0)->b)
194 #endif
195
196 #ifndef DONT_NEED_DECLARATIONS
197 /*
198  * Handles all of the internationalization configuration options.
199  * Author: Tom Tromey <tromey@creche.cygnus.com>
200  * Stolen from <libgnome/gnome-i18n.h>
201  * Modified by Jan Kratochvil <short@ucw.cz>
202  */
203 #ifdef ENABLE_NLS
204 #ifdef HAVE_LIBINTL_H
205 #    include <libintl.h>
206 #endif /* HAVE_LIBINTL_H */
207 /* 'gettext()' may not be declared here and it will default to return 'int'! */
208 #    define _(String) ((const char *)gettext (String))
209 #    ifdef gettext_noop
210 #        define N_(String) ((const char *)gettext_noop (String))
211 #    else
212 #        define N_(String) (String)
213 #    endif
214 #else /* ENABLE_NLS */
215 /* Stubs that do something close enough.  */
216 #    define textdomain(String) (String)
217 #    define gettext(String) (String)
218 #    define dgettext(Domain,Message) (Message)
219 #    define dcgettext(Domain,Message,Type) (Message)
220 #    define bindtextdomain(Domain,Directory) (Domain)
221 #    define _(String) (String)
222 #    define N_(String) (String)
223 #endif /* ENABLE_NLS */
224 #endif /* !DONT_NEED_DECLARATIONS */