~clint-fewbar/ubuntu/precise/gearmand/drop-unneeded-patches

« back to all changes in this revision

Viewing changes to config.in

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen, Michael Fladischer, Stig Sandbeck Mathisen
  • Date: 2012-01-23 11:31:08 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120123113108-wl1yhiba13q9jusb
Tags: 0.27-1
[Michael Fladischer]
* Patch: fix spelling
* Patch: remove dependency on googleanalytics
* Patch: fix tests
* Use non-authenticating URL for Vcs-Git.
* Add "status" action to init script.

[Stig Sandbeck Mathisen]
* New upstream release (Closes: #621486) (LP: #682680)
* Remove build dependency on drizzle
  (until it reaches testing again)
* Build with support for tokyocabinet
* Remove backported ipv6 patch
* Patch: disable hostile build tests, they take hours...
* Patch: workaround duplicate address issue for tests
* Do not build API documentation, the sources are not shipped in
  upstream tarball
* Update debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* config.in.  Generated from configure.ac by autoheader.  */
 
2
 
 
3
 
 
4
#ifndef __CONFIG_H__
 
5
#define __CONFIG_H__
 
6
 
 
7
/* _SYS_FEATURE_TESTS_H is Solaris, _FEATURES_H is GCC */
 
8
#if defined( _SYS_FEATURE_TESTS_H) || defined(_FEATURES_H)
 
9
#error "You should include config.h as your first include file"
 
10
#endif
 
11
 
 
12
 
 
13
 
 
14
/* Define if building universal (internal helper macro) */
 
15
#undef AC_APPLE_UNIVERSAL_BUILD
 
16
 
 
17
/* the location of <cinttypes> */
 
18
#undef CINTTYPES_H
 
19
 
 
20
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
 
21
   systems. This function is required for `alloca.c' support on those systems.
 
22
   */
 
23
#undef CRAY_STACKSEG_END
 
24
 
 
25
/* the location of <cstdint> */
 
26
#undef CSTDINT_H
 
27
 
 
28
/* Define to 1 if using `alloca.c'. */
 
29
#undef C_ALLOCA
 
30
 
 
31
/* Name of the drizzled binary used in make test */
 
32
#undef DRIZZLED_BINARY
 
33
 
 
34
/* Another magical number */
 
35
#undef EAI_SYSTEM
 
36
 
 
37
/* Name of the gearmand binary used in make test */
 
38
#undef GEARMAND_BINARY
 
39
 
 
40
/* Define to 1 if you have `alloca', as a function or macro. */
 
41
#undef HAVE_ALLOCA
 
42
 
 
43
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
 
44
   */
 
45
#undef HAVE_ALLOCA_H
 
46
 
 
47
/* Define to 1 if you have the <arpa/inet.h> header file. */
 
48
#undef HAVE_ARPA_INET_H
 
49
 
 
50
/* Define to 1 if you have the <assert.h> header file. */
 
51
#undef HAVE_ASSERT_H
 
52
 
 
53
/* Defined if the requested minimum BOOST version is satisfied */
 
54
#undef HAVE_BOOST
 
55
 
 
56
/* Define to 1 if you have <boost/program_options.hpp> */
 
57
#undef HAVE_BOOST_PROGRAM_OPTIONS_HPP
 
58
 
 
59
/* Define to 1 if you have <boost/thread.hpp> */
 
60
#undef HAVE_BOOST_THREAD_HPP
 
61
 
 
62
/* Define to 1 if you have the `btowc' function. */
 
63
#undef HAVE_BTOWC
 
64
 
 
65
/* Define to 1 if you have the <curl/curl.h> header file. */
 
66
#undef HAVE_CURL_CURL_H
 
67
 
 
68
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
 
69
   */
 
70
#undef HAVE_DECL_GETENV
 
71
 
 
72
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
 
73
   don't. */
 
74
#undef HAVE_DECL_STRERROR_R
 
75
 
 
76
/* Define to 1 if you have the <dlfcn.h> header file. */
 
77
#undef HAVE_DLFCN_H
 
78
 
 
79
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
 
80
#undef HAVE_DOPRNT
 
81
 
 
82
/* If Drizzled binary is available */
 
83
#undef HAVE_DRIZZLED_BINARY
 
84
 
 
85
/* Enables DTRACE Support */
 
86
#undef HAVE_DTRACE
 
87
 
 
88
/* Define to 1 if you have the `dup2' function. */
 
89
#undef HAVE_DUP2
 
90
 
 
91
/* Define to 1 if you have the <errno.h> header file. */
 
92
#undef HAVE_ERRNO_H
 
93
 
 
94
/* Define to 1 if you have the `event_base_free' function. */
 
95
#undef HAVE_EVENT_BASE_FREE
 
96
 
 
97
/* Define to 1 if you have the `event_base_get_method' function. */
 
98
#undef HAVE_EVENT_BASE_GET_METHOD
 
99
 
 
100
/* Define to 1 if you have the `event_base_new' function. */
 
101
#undef HAVE_EVENT_BASE_NEW
 
102
 
 
103
/* Define to 1 if you have the <fcntl.h> header file. */
 
104
#undef HAVE_FCNTL_H
 
105
 
 
106
/* Define to 1 if you have the `fork' function. */
 
107
#undef HAVE_FORK
 
108
 
 
109
/* Define to 1 if compiler provides atomic builtins. */
 
110
#undef HAVE_GCC_ATOMIC_BUILTINS
 
111
 
 
112
/* libgearman support */
 
113
#undef HAVE_GEARMAND_BINARY
 
114
 
 
115
/* Define to 1 if you have the <getopt.h> header file. */
 
116
#undef HAVE_GETOPT_H
 
117
 
 
118
/* Define to 1 if you have the `gettimeofday' function. */
 
119
#undef HAVE_GETTIMEOFDAY
 
120
 
 
121
/* If Hiredis is available */
 
122
#undef HAVE_HIREDIS
 
123
 
 
124
/* Define to 1 if you have the <hiredis/hiredis.h> header file. */
 
125
#undef HAVE_HIREDIS_HIREDIS_H
 
126
 
 
127
/* Define to 1 if you have the <inttypes.h> header file. */
 
128
#undef HAVE_INTTYPES_H
 
129
 
 
130
/* Define to 1 if you have the `bind' library (-lbind). */
 
131
#undef HAVE_LIBBIND
 
132
 
 
133
/* libcurl support */
 
134
#undef HAVE_LIBCURL
 
135
 
 
136
/* Define to 1 if you have the `c_p' library (-lc_p). */
 
137
#undef HAVE_LIBC_P
 
138
 
 
139
/* Have dlopen */
 
140
#undef HAVE_LIBDL
 
141
 
 
142
/* Enable libdrizzle support */
 
143
#undef HAVE_LIBDRIZZLE
 
144
 
 
145
/* Define if you have the event library. */
 
146
#undef HAVE_LIBEVENT
 
147
 
 
148
/* libgearman support */
 
149
#undef HAVE_LIBGEARMAN
 
150
 
 
151
/* Define if you have the hiredis library. */
 
152
#undef HAVE_LIBHIREDIS
 
153
 
 
154
/* Enable libmemcached support */
 
155
#undef HAVE_LIBMEMCACHED
 
156
 
 
157
/* Define to 1 if you have the `mtmalloc' library (-lmtmalloc). */
 
158
#undef HAVE_LIBMTMALLOC
 
159
 
 
160
/* Define if you have the pq library. */
 
161
#undef HAVE_LIBPQ
 
162
 
 
163
/* Define to 1 if you have the <libpq-fe.h> header file. */
 
164
#undef HAVE_LIBPQ_FE_H
 
165
 
 
166
/* Have clock_gettime */
 
167
#undef HAVE_LIBRT
 
168
 
 
169
/* Define to 1 if you have the `socket' library (-lsocket). */
 
170
#undef HAVE_LIBSOCKET
 
171
 
 
172
/* Have the SQLITE3 library */
 
173
#undef HAVE_LIBSQLITE3
 
174
 
 
175
/* Define to 1 if you have the `tcmalloc' library (-ltcmalloc). */
 
176
#undef HAVE_LIBTCMALLOC
 
177
 
 
178
/* Define to 1 if you have the `tcmalloc-minimal' library
 
179
   (-ltcmalloc-minimal). */
 
180
#undef HAVE_LIBTCMALLOC_MINIMAL
 
181
 
 
182
/* Enable libtokyocabinet support */
 
183
#undef HAVE_LIBTOKYOCABINET
 
184
 
 
185
/* Define to 1 if you have the `umem' library (-lumem). */
 
186
#undef HAVE_LIBUMEM
 
187
 
 
188
/* Define if you have the uuid library. */
 
189
#undef HAVE_LIBUUID
 
190
 
 
191
/* Define to 1 if you have the <limits.h> header file. */
 
192
#undef HAVE_LIMITS_H
 
193
 
 
194
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
 
195
   to 0 otherwise. */
 
196
#undef HAVE_MALLOC
 
197
 
 
198
/* Define to 1 if you have the `mbsrtowcs' function. */
 
199
#undef HAVE_MBSRTOWCS
 
200
 
 
201
/* Define to 1 if <wchar.h> declares mbstate_t. */
 
202
#undef HAVE_MBSTATE_T
 
203
 
 
204
/* If Memcached binary is available */
 
205
#undef HAVE_MEMCACHED_BINARY
 
206
 
 
207
/* Define to 1 if you have the `memchr' function. */
 
208
#undef HAVE_MEMCHR
 
209
 
 
210
/* Define to 1 if you have the `memmove' function. */
 
211
#undef HAVE_MEMMOVE
 
212
 
 
213
/* Define to 1 if you have the <memory.h> header file. */
 
214
#undef HAVE_MEMORY_H
 
215
 
 
216
/* Define to 1 if you have the `mempcpy' function. */
 
217
#undef HAVE_MEMPCPY
 
218
 
 
219
/* Define to 1 if you have the `memset' function. */
 
220
#undef HAVE_MEMSET
 
221
 
 
222
/* Define to 1 if you have a MSG_DONTWAIT */
 
223
#undef HAVE_MSG_DONTWAIT
 
224
 
 
225
/* Define to 1 if you have a MSG_NOSIGNAL */
 
226
#undef HAVE_MSG_NOSIGNAL
 
227
 
 
228
/* Define to 1 if you have the <netdb.h> header file. */
 
229
#undef HAVE_NETDB_H
 
230
 
 
231
/* Define to 1 if you have the <netinet/in.h> header file. */
 
232
#undef HAVE_NETINET_IN_H
 
233
 
 
234
/* Define to 1 if you have the <netinet/tcp.h> header file. */
 
235
#undef HAVE_NETINET_TCP_H
 
236
 
 
237
/* Define if you have POSIX threads libraries and header files. */
 
238
#undef HAVE_PTHREAD
 
239
 
 
240
/* Have PTHREAD_PRIO_INHERIT. */
 
241
#undef HAVE_PTHREAD_PRIO_INHERIT
 
242
 
 
243
/* Define to 1 if the system has the type `ptrdiff_t'. */
 
244
#undef HAVE_PTRDIFF_T
 
245
 
 
246
/* Define to 1 if you have the <pwd.h> header file. */
 
247
#undef HAVE_PWD_H
 
248
 
 
249
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
 
250
   and to 0 otherwise. */
 
251
#undef HAVE_REALLOC
 
252
 
 
253
/* Define to 1 if you have the `select' function. */
 
254
#undef HAVE_SELECT
 
255
 
 
256
/* Define to 1 if you have the `setenv' function. */
 
257
#undef HAVE_SETENV
 
258
 
 
259
/* Define to 1 if you have the <signal.h> header file. */
 
260
#undef HAVE_SIGNAL_H
 
261
 
 
262
/* Define to 1 if you have the `socket' function. */
 
263
#undef HAVE_SOCKET
 
264
 
 
265
/* Have the SQLITE3 library */
 
266
#undef HAVE_SQLITE3
 
267
 
 
268
/* Define to 1 if you have the <stdarg.h> header file. */
 
269
#undef HAVE_STDARG_H
 
270
 
 
271
/* Define to 1 if stdbool.h conforms to C99. */
 
272
#undef HAVE_STDBOOL_H
 
273
 
 
274
/* Define to 1 if you have the <stddef.h> header file. */
 
275
#undef HAVE_STDDEF_H
 
276
 
 
277
/* Define to 1 if you have the <stdint.h> header file. */
 
278
#undef HAVE_STDINT_H
 
279
 
 
280
/* Define to 1 if you have the <stdio.h> header file. */
 
281
#undef HAVE_STDIO_H
 
282
 
 
283
/* Define to 1 if you have the <stdlib.h> header file. */
 
284
#undef HAVE_STDLIB_H
 
285
 
 
286
/* Define to 1 if you have the `strcasecmp' function. */
 
287
#undef HAVE_STRCASECMP
 
288
 
 
289
/* Define to 1 if you have the `strdup' function. */
 
290
#undef HAVE_STRDUP
 
291
 
 
292
/* Define to 1 if you have the `strerror' function. */
 
293
#undef HAVE_STRERROR
 
294
 
 
295
/* Define to 1 if you have the `strerror_r' function. */
 
296
#undef HAVE_STRERROR_R
 
297
 
 
298
/* Define to 1 if you have the <strings.h> header file. */
 
299
#undef HAVE_STRINGS_H
 
300
 
 
301
/* Define to 1 if you have the <string.h> header file. */
 
302
#undef HAVE_STRING_H
 
303
 
 
304
/* Define to 1 if you have the `strncasecmp' function. */
 
305
#undef HAVE_STRNCASECMP
 
306
 
 
307
/* Define to 1 if you have the `strtol' function. */
 
308
#undef HAVE_STRTOL
 
309
 
 
310
/* Define to 1 if you have the `strtoul' function. */
 
311
#undef HAVE_STRTOUL
 
312
 
 
313
/* Define to 1 if you have the <sys/resource.h> header file. */
 
314
#undef HAVE_SYS_RESOURCE_H
 
315
 
 
316
/* Define to 1 if you have the <sys/sdt.h> header file. */
 
317
#undef HAVE_SYS_SDT_H
 
318
 
 
319
/* Define to 1 if you have the <sys/socket.h> header file. */
 
320
#undef HAVE_SYS_SOCKET_H
 
321
 
 
322
/* Define to 1 if you have the <sys/stat.h> header file. */
 
323
#undef HAVE_SYS_STAT_H
 
324
 
 
325
/* Define to 1 if you have the <sys/time.h> header file. */
 
326
#undef HAVE_SYS_TIME_H
 
327
 
 
328
/* Define to 1 if you have the <sys/types.h> header file. */
 
329
#undef HAVE_SYS_TYPES_H
 
330
 
 
331
/* Define to 1 if you have the <sys/utsname.h> header file. */
 
332
#undef HAVE_SYS_UTSNAME_H
 
333
 
 
334
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
 
335
#undef HAVE_SYS_WAIT_H
 
336
 
 
337
/* Define to 1 if you have the `uname' function. */
 
338
#undef HAVE_UNAME
 
339
 
 
340
/* Define to 1 if you have the <unistd.h> header file. */
 
341
#undef HAVE_UNISTD_H
 
342
 
 
343
/* Define to 1 if you have the <uuid/uuid.h> header file. */
 
344
#undef HAVE_UUID_UUID_H
 
345
 
 
346
/* Add additional valgrind code for testing with valgrind. */
 
347
#undef HAVE_VALGRIND
 
348
 
 
349
/* Define to 1 if you have the `vfork' function. */
 
350
#undef HAVE_VFORK
 
351
 
 
352
/* Define to 1 if you have the <vfork.h> header file. */
 
353
#undef HAVE_VFORK_H
 
354
 
 
355
/* Define to 1 or 0, depending whether the compiler supports simple visibility
 
356
   declarations. */
 
357
#undef HAVE_VISIBILITY
 
358
 
 
359
/* Define to 1 if you have the `vprintf' function. */
 
360
#undef HAVE_VPRINTF
 
361
 
 
362
/* Define to 1 if you have the <wchar.h> header file. */
 
363
#undef HAVE_WCHAR_H
 
364
 
 
365
/* Define to 1 if you have the <wctype.h> header file. */
 
366
#undef HAVE_WCTYPE_H
 
367
 
 
368
/* Define to 1 if you have the `wmempcpy' function. */
 
369
#undef HAVE_WMEMPCPY
 
370
 
 
371
/* Define to 1 if `fork' works. */
 
372
#undef HAVE_WORKING_FORK
 
373
 
 
374
/* Define to 1 if `vfork' works. */
 
375
#undef HAVE_WORKING_VFORK
 
376
 
 
377
/* Define to 1 if the system has the type `_Bool'. */
 
378
#undef HAVE__BOOL
 
379
 
 
380
/* CPU of Build System */
 
381
#undef HOST_CPU
 
382
 
 
383
/* OS of Build System */
 
384
#undef HOST_OS
 
385
 
 
386
/* Vendor of Build System */
 
387
#undef HOST_VENDOR
 
388
 
 
389
/* Define to the sub-directory in which libtool stores uninstalled libraries.
 
390
   */
 
391
#undef LT_OBJDIR
 
392
 
 
393
/* Name of the memcached binary used in make test */
 
394
#undef MEMCACHED_BINARY
 
395
 
 
396
/* Name of the memcached_sasl binary used in make test */
 
397
#undef MEMCACHED_SASL_BINARY
 
398
 
 
399
/* Define to 1 if assertions should be disabled. */
 
400
#undef NDEBUG
 
401
 
 
402
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
 
403
#undef NO_MINUS_C_MINUS_O
 
404
 
 
405
/* Name of package */
 
406
#undef PACKAGE
 
407
 
 
408
/* Define to the address where bug reports for this package should be sent. */
 
409
#undef PACKAGE_BUGREPORT
 
410
 
 
411
/* Define to the full name of this package. */
 
412
#undef PACKAGE_NAME
 
413
 
 
414
/* Define to the full name and version of this package. */
 
415
#undef PACKAGE_STRING
 
416
 
 
417
/* Define to the one symbol short name of this package. */
 
418
#undef PACKAGE_TARNAME
 
419
 
 
420
/* Define to the home page for this package. */
 
421
#undef PACKAGE_URL
 
422
 
 
423
/* Define to the version of this package. */
 
424
#undef PACKAGE_VERSION
 
425
 
 
426
/* Version of the software */
 
427
#undef PANDORA_RELEASE_VERSION
 
428
 
 
429
/* Define to necessary symbol if this constant uses a non-standard name on
 
430
   your system. */
 
431
#undef PTHREAD_CREATE_JOINABLE
 
432
 
 
433
/* Size of long long as computed by sizeof() */
 
434
#undef SIZEOF_LONG_LONG
 
435
 
 
436
/* The size of `off_t', as computed by sizeof. */
 
437
#undef SIZEOF_OFF_T
 
438
 
 
439
/* Size of size_t as computed by sizeof() */
 
440
#undef SIZEOF_SIZE_T
 
441
 
 
442
/* If using the C implementation of alloca, define if you know the
 
443
   direction of stack growth for your system; otherwise it will be
 
444
   automatically deduced at runtime.
 
445
        STACK_DIRECTION > 0 => grows toward higher addresses
 
446
        STACK_DIRECTION < 0 => grows toward lower addresses
 
447
        STACK_DIRECTION = 0 => direction of growth unknown */
 
448
#undef STACK_DIRECTION
 
449
 
 
450
/* Define to 1 if you have the ANSI C header files. */
 
451
#undef STDC_HEADERS
 
452
 
 
453
/* Define to 1 if strerror_r returns char *. */
 
454
#undef STRERROR_R_CHAR_P
 
455
 
 
456
/* CPU of Target System */
 
457
#undef TARGET_CPU
 
458
 
 
459
/* OS of Target System */
 
460
#undef TARGET_OS
 
461
 
 
462
/* Whether we are building for FreeBSD */
 
463
#undef TARGET_OS_FREEBSD
 
464
 
 
465
/* Whether we build for Linux */
 
466
#undef TARGET_OS_LINUX
 
467
 
 
468
/* Whether we build for OSX */
 
469
#undef TARGET_OS_OSX
 
470
 
 
471
/* Whether we are building for Solaris */
 
472
#undef TARGET_OS_SOLARIS
 
473
 
 
474
/* Whether we are building for Windows */
 
475
#undef TARGET_OS_WINDOWS
 
476
 
 
477
/* Vendor of Target System */
 
478
#undef TARGET_VENDOR
 
479
 
 
480
/* Define to 1 if time_t is unsigned */
 
481
#undef TIME_T_UNSIGNED
 
482
 
 
483
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 
484
#undef TIME_WITH_SYS_TIME
 
485
 
 
486
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
 
487
#undef TM_IN_SYS_TIME
 
488
 
 
489
/* Version number of package */
 
490
#undef VERSION
 
491
 
 
492
/* Version of Windows */
 
493
#undef WINVER
 
494
 
 
495
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
 
496
   significant byte first (like Motorola and SPARC, unlike Intel). */
 
497
#if defined AC_APPLE_UNIVERSAL_BUILD
 
498
# if defined __BIG_ENDIAN__
 
499
#  define WORDS_BIGENDIAN 1
 
500
# endif
 
501
#else
 
502
# ifndef WORDS_BIGENDIAN
 
503
#  undef WORDS_BIGENDIAN
 
504
# endif
 
505
#endif
 
506
 
 
507
/* Number of bits in a file offset, on hosts where this is settable. */
 
508
#undef _FILE_OFFSET_BITS
 
509
 
 
510
/* Define for large files, on AIX-style hosts. */
 
511
#undef _LARGE_FILES
 
512
 
 
513
/* Define to 1 if on MINIX. */
 
514
#undef _MINIX
 
515
 
 
516
/* Define to 2 if the system does not provide POSIX.1 features except with
 
517
   this defined. */
 
518
#undef _POSIX_1_SOURCE
 
519
 
 
520
/* Define to 1 if you need to in order for `stat' and other things to work. */
 
521
#undef _POSIX_SOURCE
 
522
 
 
523
/* Cause Sun Studio to not be quite so strict with standards conflicts */
 
524
#undef _STLP_NO_NEW_C_HEADERS
 
525
 
 
526
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
 
527
   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
 
528
   #define below would cause a syntax error. */
 
529
#undef _UINT32_T
 
530
 
 
531
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
 
532
   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
 
533
   #define below would cause a syntax error. */
 
534
#undef _UINT64_T
 
535
 
 
536
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
 
537
   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
 
538
   #define below would cause a syntax error. */
 
539
#undef _UINT8_T
 
540
 
 
541
/* Magical number to make things work */
 
542
#undef _WIN32_WINNT
 
543
 
 
544
/* Define to 500 only on HP-UX. */
 
545
#undef _XOPEN_SOURCE
 
546
 
 
547
/* Workaround for bug in FreeBSD headers */
 
548
#undef __APPLE_CC__
 
549
 
 
550
/* Enable extensions on AIX 3, Interix.  */
 
551
#ifndef _ALL_SOURCE
 
552
# undef _ALL_SOURCE
 
553
#endif
 
554
/* Enable GNU extensions on systems that have them.  */
 
555
#ifndef _GNU_SOURCE
 
556
# undef _GNU_SOURCE
 
557
#endif
 
558
/* Enable threading extensions on Solaris.  */
 
559
#ifndef _POSIX_PTHREAD_SEMANTICS
 
560
# undef _POSIX_PTHREAD_SEMANTICS
 
561
#endif
 
562
/* Enable extensions on HP NonStop.  */
 
563
#ifndef _TANDEM_SOURCE
 
564
# undef _TANDEM_SOURCE
 
565
#endif
 
566
/* Enable general extensions on Solaris.  */
 
567
#ifndef __EXTENSIONS__
 
568
# undef __EXTENSIONS__
 
569
#endif
 
570
 
 
571
 
 
572
/* Use STDC Constant Macros in C++ */
 
573
#undef __STDC_CONSTANT_MACROS
 
574
 
 
575
/* Use STDC Format Macros in C++ */
 
576
#undef __STDC_FORMAT_MACROS
 
577
 
 
578
/* Use STDC Limit Macros in C++ */
 
579
#undef __STDC_LIMIT_MACROS
 
580
 
 
581
/* Define to empty if `const' does not conform to ANSI C. */
 
582
#undef const
 
583
 
 
584
/* Define to rpl_fnmatch if the replacement function should be used. */
 
585
#undef fnmatch
 
586
 
 
587
/* Define to `int' if <sys/types.h> doesn't define. */
 
588
#undef gid_t
 
589
 
 
590
/* Define to `__inline__' or `__inline' if that's what the C compiler
 
591
   calls it, or to nothing if 'inline' is not supported under any name.  */
 
592
#ifndef __cplusplus
 
593
#undef inline
 
594
#endif
 
595
 
 
596
/* Define to the type of a signed integer type of width exactly 32 bits if
 
597
   such a type exists and the standard includes do not define it. */
 
598
#undef int32_t
 
599
 
 
600
/* Define to the type of a signed integer type of width exactly 64 bits if
 
601
   such a type exists and the standard includes do not define it. */
 
602
#undef int64_t
 
603
 
 
604
/* Define to rpl_malloc if the replacement function should be used. */
 
605
#undef malloc
 
606
 
 
607
/* Define to a type if <wchar.h> does not define. */
 
608
#undef mbstate_t
 
609
 
 
610
/* Define to `int' if <sys/types.h> does not define. */
 
611
#undef pid_t
 
612
 
 
613
/* Define to rpl_realloc if the replacement function should be used. */
 
614
#undef realloc
 
615
 
 
616
/* Define to the equivalent of the C99 'restrict' keyword, or to
 
617
   nothing if this is not supported.  Do not define if restrict is
 
618
   supported directly.  */
 
619
#undef restrict
 
620
/* Work around a bug in Sun C++: it does not support _Restrict or
 
621
   __restrict__, even though the corresponding Sun C compiler ends up with
 
622
   "#define restrict _Restrict" or "#define restrict __restrict__" in the
 
623
   previous line.  Perhaps some future version of Sun C++ will work with
 
624
   restrict; if so, hopefully it defines __RESTRICT like Sun C does.  */
 
625
#if defined __SUNPRO_CC && !defined __RESTRICT
 
626
# define _Restrict
 
627
# define __restrict__
 
628
#endif
 
629
 
 
630
/* Define to `unsigned int' if <sys/types.h> does not define. */
 
631
#undef size_t
 
632
 
 
633
/* Define to `int' if <sys/types.h> does not define. */
 
634
#undef ssize_t
 
635
 
 
636
/* Define to `int' if <sys/types.h> doesn't define. */
 
637
#undef uid_t
 
638
 
 
639
/* Define to the type of an unsigned integer type of width exactly 16 bits if
 
640
   such a type exists and the standard includes do not define it. */
 
641
#undef uint16_t
 
642
 
 
643
/* Define to the type of an unsigned integer type of width exactly 32 bits if
 
644
   such a type exists and the standard includes do not define it. */
 
645
#undef uint32_t
 
646
 
 
647
/* Define to the type of an unsigned integer type of width exactly 64 bits if
 
648
   such a type exists and the standard includes do not define it. */
 
649
#undef uint64_t
 
650
 
 
651
/* Define to the type of an unsigned integer type of width exactly 8 bits if
 
652
   such a type exists and the standard includes do not define it. */
 
653
#undef uint8_t
 
654
 
 
655
/* Define as `fork' if `vfork' does not work. */
 
656
#undef vfork
 
657
 
 
658
/* Define to empty if the keyword `volatile' does not work. Warning: valid
 
659
   code using `volatile' can become incorrect without. Disable with care. */
 
660
#undef volatile
 
661
 
 
662
 
 
663
#ifndef HAVE_SYS_SOCKET_H
 
664
# define SHUT_RD SD_RECEIVE
 
665
# define SHUT_WR SD_SEND
 
666
# define SHUT_RDWR SD_BOTH
 
667
#endif
 
668
      
 
669
 
 
670
 
 
671
#if defined(__cplusplus)
 
672
# include CSTDINT_H
 
673
# include CINTTYPES_H
 
674
#else
 
675
# include <stdint.h>
 
676
# include <inttypes.h>
 
677
#endif
 
678
 
 
679
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
 
680
# define HAVE_ULONG 1
 
681
typedef unsigned long int ulong;
 
682
#endif
 
683
 
 
684
/* To hide the platform differences between MS Windows and Unix, I am
 
685
 * going to use the Microsoft way and #define the Microsoft-specific
 
686
 * functions to the unix way. Microsoft use a separate subsystem for sockets,
 
687
 * but Unix normally just use a filedescriptor on the same functions. It is
 
688
 * a lot easier to map back to the unix way with macros than going the other
 
689
 * way without side effect ;-)
 
690
 */
 
691
#ifdef TARGET_OS_WINDOWS
 
692
#define random() rand()
 
693
#define srandom(a) srand(a)
 
694
#define get_socket_errno() WSAGetLastError()
 
695
#else
 
696
#define INVALID_SOCKET -1
 
697
#define SOCKET_ERROR -1
 
698
#ifdef __cplusplus
 
699
#define closesocket(a) ::close(a)
 
700
#else
 
701
#define closesocket(a) close(a)
 
702
#endif
 
703
#define get_socket_errno() errno
 
704
#endif // TARGET_OS_WINDOWS
 
705
 
 
706
#ifndef HAVE_MSG_NOSIGNAL
 
707
#define MSG_NOSIGNAL 0
 
708
#endif // HAVE_MSG_NOSIGNAL
 
709
 
 
710
#ifndef HAVE_MSG_DONTWAIT
 
711
#define MSG_DONTWAIT 0
 
712
#endif // HAVE_MSG_DONTWAIT
 
713
 
 
714
#if defined(__cplusplus)
 
715
# if defined(DEBUG)
 
716
#  include <cassert>
 
717
#  include <cstddef>
 
718
# endif
 
719
template<typename To, typename From>
 
720
inline To implicit_cast(From const &f) {
 
721
  return f;
 
722
}
 
723
template<typename To, typename From>     // use like this: down_cast<T*>(foo);
 
724
inline To down_cast(From* f) {                   // so we only accept pointers
 
725
  // Ensures that To is a sub-type of From *.  This test is here only
 
726
  // for compile-time type checking, and has no overhead in an
 
727
  // optimized build at run-time, as it will be optimized away
 
728
  // completely.
 
729
  if (false) {
 
730
    implicit_cast<From*, To>(0);
 
731
  }
 
732
 
 
733
#if defined(DEBUG)
 
734
  assert(f == NULL || dynamic_cast<To>(f) != NULL);  // RTTI: debug mode only!
 
735
#endif
 
736
  return static_cast<To>(f);
 
737
}
 
738
#endif /* defined(__cplusplus) */
 
739
 
 
740
#endif /* __CONFIG_H__ */
 
741