-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.h.in
432 lines (334 loc) · 11.7 KB
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define to empty if the keyword does not work. */
#undef const
/* Define to empty if your compiler doesn't understand the `inline' keyword */
#undef inline
/* The number of bytes in a long long (0 if it isn't supported) */
#undef SIZEOF_LONG_LONG
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
/* Define if your struct tm has tm_zone. */
#undef HAVE_TM_ZONE
/* Define if you don't have tm_zone but do have the external array
tzname. */
#undef HAVE_TZNAME
/* Define to `int' if <sys/types.h> doesn't define. */
#undef mode_t
/* Define to `long' if <sys/types.h> doesn't define. */
#undef off_t
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
/* Define to `int' if <signal.h> doesn't define return value for signal() */
#define RETSIGTYPE int
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
/* Define to `int' if <sys/types.h> doesn't define */
#undef socklen_t
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if <errno.h> defines ENODEV */
#undef HAVE_ENODEV
/* Define if your OS distinguishes between text and binary files, _and_
* your compiler defines O_BINARY (for use with open()).
*/
#undef HAVE_O_BINARY
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define if your <sys/time.h> declares struct tm. */
#undef TM_IN_SYS_TIME
/* Define if 'struct sockaddr' has a 'sa_len' field */
#undef HAVE_SOCKADDR_SA_LEN
/* Define if 'struct sockaddr6' is defined */
#undef HAVE_SOCKADDR6
/* Define to `int' if <sys/types.h> doesn't define. */
#undef uid_t
/* Define if you have the cfmakeraw function. */
#undef HAVE_CFMAKERAW
/* Define if you have the usleep function. */
#undef HAVE_USLEEP
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strncasecmp function. */
#undef HAVE_STRNCASECMP
/* Define if you have the snprintf function. */
#undef HAVE_SNPRINTF
/* Define if you have the vfprintf function. */
#undef HAVE_VFPRINTF
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* Define if you have the strchr function */
#undef HAVE_STRCHR
/* Define if you have the memcpy function */
#undef HAVE_MEMCPY
/* Define if you have the memset function */
#undef HAVE_MEMSET
/* Define if you have the bcopy function */
#undef HAVE_BCOPY
/* Define if you have the bzero function */
#undef HAVE_BZERO
/* Define if you have the mkstemp function */
#undef HAVE_MKSTEMP
/* Define if you have the fpurge function */
#undef HAVE_FPURGE
/* Define if you have the getopt function. */
#undef HAVE_GETOPT
/* Define if you have the getopt_long function. */
#undef HAVE_GETOPT_LONG
/* Define if you have the inet_aton function. */
#undef HAVE_INET_ATON
/* Define if you have the inet_ntoa function. */
#undef HAVE_INET_NTOA
/* Define if you have the inet_ntop function. */
#undef HAVE_INET_NTOP
/* Define if you have the inet_pton function. */
#undef HAVE_INET_PTON
/* Define if you have the gethostbyname function. */
#undef HAVE_GETHOSTBYNAME
/* Define if you have the gethostbyname2 function. */
#undef HAVE_GETHOSTBYNAME2
/* Define if you have the gettext function. */
#undef HAVE_GETTEXT
/* Define if you have the rename function. */
#undef HAVE_RENAME
/* Define if you have the select function. */
#undef HAVE_SELECT
/* Define if you have the strncpy function. */
#undef HAVE_STRNCPY
/* Define if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
/* Define if your struct dirent has d_type */
#undef HAVE_DIRENT_TYPE
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the <libintl.h> header file. */
#undef HAVE_LIBINTL_H
/* Define if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define if you have the <resolv.h> header file. */
#undef HAVE_RESOLV_H
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the <stropts.h> header file. */
#undef HAVE_STROPTS_H
/* Define if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the <arpa/nameser.h> header file. */
#undef HAVE_ARPA_NAMESER_H
/* Define if you have the <sys/dir.h> header file. */
#undef HAVE_SYS_DIR_H
/* Define if you have the <sys/ndir.h> header file. */
#undef HAVE_SYS_NDIR_H
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
/* Define if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
/* Define if you have the GNU gettext package */
#undef HAVE_LIBINTL
/* Defined if the package was compiled with the ElectricFence library */
#undef WITH_EFENCE
/* Defined if memory leak detection was enabled */
#undef WITH_LEAK_DETECTION
/* Define if you want USB support (FreeBSD only, at this point) */
#undef WITH_USB
/* Define if you want USB support through libusb */
#undef WITH_LIBUSB
/* Define to use linux capabilities (libcap) */
#undef USE_CAPABILITIES
/* Under FreeBSD 4.5 and later, the fields in 'struct usb_device_info' have
* a "udi_" prefix. That is, udi.vendorNo became udi.udi_vendorNo, and so
* forth.
*/
#undef WITH_UDI_PREFIX
/* Name of package */
#undef PACKAGE
#undef SYSCONFDIR
#undef LOCALEDIR
#undef CONDUITDIR
/* Version number of package */
#undef VERSION
#ifdef c_plusplus /* Cfront 1.2 defines c_plusplus instead
* of __cplusplus */
# define __cplusplus
#endif /* c_plusplus */
/* Define LONGLONG to be "long long" if it's supported, or "long" otherwise */
#ifdef SIZEOF_LONG_LONG
/* 'configure' checked for "long long", i.e., it wasn't run with
* pedantic flags.
*/
# if SIZEOF_LONG_LONG == 0
# define LONGLONG long
# else
# define LONGLONG long long
# endif /* SIZEOF_LONG_LONG == 0 */
#else
/* 'configure' was run with pedantic flags, so it didn't even check
* whether "long long" exists. Since we're being pedantic, and ANSI C
* doesn't support "long long", don't use it.
*/
# define LONGLONG long
#endif /* SIZEOF_LONG_LONG */
/* Define str(n)casecmp() if they don't exist.
* "Here's a nickel, kid, get yourself a better OS"
* -- Scott Adams, paraphrased.
*/
#if !HAVE_STRCASECMP
# define strcasecmp(s1,s2) strcmp((s1),(s2))
#endif /* HAVE_STRCASECMP */
#if !HAVE_STRNCASECMP
# define strncasecmp(s1,s2,len) strncmp((s1),(s2),(len))
#endif /* HAVE_STRNCASECMP */
/* Define bzero() in terms of memset() if necessary
* We use bzero() in this code because it's possible to define bzero() in
* terms of memset(), but not the reverse. Otherwise, we prefer the
* ISO-mandated mem*() functions.
*
* If this machine has neither bzero() nor memset(), then you're screwed.
* If this machine has both, then we trust that the OS's authors did
* something smart, and that both work.
*/
#if !HAVE_BZERO
# if HAVE_MEMSET
# define bzero(str, len) memset((str), 0, (len))
# endif /* HAVE_MEMSET */
#endif /* HAVE_BZERO */
/* Define an empty fpurge() if it doesn't exist. It isn't critical, but
* IMHO it's nice to have.
*/
#if !HAVE_FPURGE
# define fpurge(stream)
#endif /* HAVE_FPURGE */
/* Define gethostbyname2() if it doesn't exist. This version only supports
* IPv4.
*/
#if !HAVE_GETHOSTBYNAME2
# define gethostbyname2(name, family) gethostbyname(name)
#endif /* HAVE_GETHOSTBYNAME2 */
/* The internationalizable strings in the source are enclosed in _(), e.g.,
* _("Hello, world!"). That way, they can be looked up by whichever i18n
* package you happen to be using.
* N_() is a dummy macro that marks translatable strings when they're
* defined but not used. The most common case for this is in arrays of
* strings:
* char *msgs[] = {
* N_("Hello"),
* N_("Goodbye"),
* };
* ...
* printf(_(msgs[0]));
* Here, the N_ marks the strings in 'msgs' so that a tool like 'xgettext'
* can identify them and extract them into a catalog. It is only later, in
* the printf() statement, that we want to call gettext() on the string to
* translate it.
*/
#if HAVE_GETTEXT && HAVE_LIBINTL_H
# define _(str) gettext(str)
# ifdef gettext_noop
# define N_(str) gettext_noop(str)
# else
# define N_(str) str
# endif /* gettext_noop */
#else /* HAVE_GETTEXT */
# define _(str) str
# ifdef gettext_noop
# define N_(str) gettext_noop(str)
# else
# define N_(str) str
# endif /* gettext_noop */
#endif /* HAVE_GETTEXT */
/* MS Windows distinguishes between text and binary files. Cygwin's gcc
* (and possibly others) defines O_BINARY as a flag to open() to indicate
* that open() should open the file in binary mode.
*/
#if !HAVE_O_BINARY
# define O_BINARY 0 /* 0 so that when or-ed with other flags,
* doesn't change anything on OSes that
* don't have O_BINARY.
*/
#endif /* HAVE_O_BINARY */
#ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
#endif /* _XOPEN_SOURCE */
#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112
#endif /* _POSIX_C_SOURCE */
#define __BSD_VISIBLE 1
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
#ifndef _XOPEN_SOURCE_EXTENDED
/* Provides declaration for lstat() under DU, and strdup() under Linux */
# define _XOPEN_SOURCE_EXTENDED 1
#endif /* _XOPEN_SOURCE_EXTENDED */
#if __GNUC__
/* The following should fix gcc complaining about missing
* 'strcasecmp()' and 'getopt()' declarations on Linux boxen using
* glibc1 (e.g., Slackware 4.0).
*/
# if defined(_LINUX_C_LIB_VERSION_MAJOR) && (_LINUX_C_LIB_VERSION_MAJOR <= 5)
# ifndef _BSD_SOURCE
# define _BSD_SOURCE
# endif /* _BSD_SOURCE */
# endif /* _LINUX_C_LIB_VERSION_MAJOR */
/* For any given version of 'gcc', one of these two should make 'gcc'
* shut up about "implicit declaration of xxx".
*/
# define _GNU_SOURCE 1
#endif /* __GNUC__ */
/* OSF1/Digital Unix/Tru64 apparently requires this, to catch certain
* declarations.
*/
#ifdef __osf__
# define _OSF_SOURCE
#endif
#if WITH_LEAK_DETECTION
/* This memory leak detection is extremely primitive. All this does is to
* use wrappers around the memory-allocation functions (defined in
* "misc.c"), which print their arguments and return values to stderr.
*
* Run the program's output through 'find-leaks', which will try to find
* malloc()s with no corresponding free()s.
*
* Note that this doesn't do squat for C++-style allocation.
*/
# ifdef __cplusplus
extern "C" {
# endif
extern void *my_malloc(const int size, const char *file, const int line);
extern void *my_calloc(const int num,
const int size,
const char *file,
const int line);
extern void *my_realloc(const void *ptr,
const int size,
const char *file,
const int line);
extern char *my_strdup(const char *str, const char *file, const int line);
extern void my_free(void *ptr, const char *file, const int line);
# ifdef __cplusplus
}
# endif
/* The my_*() functions are defined in "src/misc.c" */
# define malloc(s) my_malloc(s, __FILE__, __LINE__)
# define calloc(n,s) my_calloc(n, s, __FILE__, __LINE__)
# define realloc(p,s) my_realloc(p, s, __FILE__, __LINE__)
# define strdup(str) my_strdup(str, __FILE__, __LINE__)
# define free(p) my_free(p, __FILE__, __LINE__)
#endif /* WITH_LEAK_DETECTION */
/* This is for Emacs's benefit:
* Local Variables: ***
* mode: C ***
* fill-column: 75 ***
* End: ***
*/