source: trunk/third/evolution-data-server/libdb/build_win32/db_config.h @ 21189

Revision 21189, 12.5 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21188, which included commits to RCS files with non-trunk default branches.
Line 
1/* DO NOT EDIT: automatically built by dist/s_win32. */
2/* Define to 1 if you want to build a version for running the test suite. */
3/* #undef CONFIG_TEST */
4
5/* Define to 1 if you want a debugging version. */
6/* #undef DEBUG */
7#if defined(_DEBUG)
8#if !defined(DEBUG)
9#define DEBUG 1
10#endif
11#endif
12
13/* Define to 1 if you want a version that logs read operations. */
14/* #undef DEBUG_ROP */
15
16/* Define to 1 if you want a version that logs write operations. */
17/* #undef DEBUG_WOP */
18
19/* Define to 1 if you want a version with run-time diagnostic checking. */
20/* #undef DIAGNOSTIC */
21
22/* Define to 1 if you have the `clock_gettime' function. */
23/* #undef HAVE_CLOCK_GETTIME */
24
25/* Define to 1 if Berkeley DB release includes strong cryptography. */
26/* #undef HAVE_CRYPTO */
27
28/* Define to 1 if you have the `directio' function. */
29/* #undef HAVE_DIRECTIO */
30
31/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
32   */
33/* #undef HAVE_DIRENT_H */
34
35/* Define to 1 if you have the <dlfcn.h> header file. */
36/* #undef HAVE_DLFCN_H */
37
38/* Define to 1 if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
39#define HAVE_EXIT_SUCCESS 1
40
41/* Define to 1 if fcntl/F_SETFD denies child access to file descriptors. */
42/* #undef HAVE_FCNTL_F_SETFD */
43
44/* Define to 1 if allocated filesystem blocks are not zeroed. */
45#define HAVE_FILESYSTEM_NOTZERO 1
46
47/* Define to 1 if you have the `getcwd' function. */
48#define HAVE_GETCWD 1
49
50/* Define to 1 if you have the `getopt' function. */
51/* #undef HAVE_GETOPT */
52
53/* Define to 1 if you have the `gettimeofday' function. */
54/* #undef HAVE_GETTIMEOFDAY */
55
56/* Define to 1 if you have the `getuid' function. */
57/* #undef HAVE_GETUID */
58
59/* Define to 1 if you have the <inttypes.h> header file. */
60/* #undef HAVE_INTTYPES_H */
61
62/* Define to 1 if you have the `nsl' library (-lnsl). */
63/* #undef HAVE_LIBNSL */
64
65/* Define to 1 if you have the `memcmp' function. */
66#define HAVE_MEMCMP 1
67
68/* Define to 1 if you have the `memcpy' function. */
69#define HAVE_MEMCPY 1
70
71/* Define to 1 if you have the `memmove' function. */
72#define HAVE_MEMMOVE 1
73
74/* Define to 1 if you have the <memory.h> header file. */
75#define HAVE_MEMORY_H 1
76
77/* Define to 1 if you have the `mlock' function. */
78/* #undef HAVE_MLOCK */
79
80/* Define to 1 if you have the `mmap' function. */
81/* #undef HAVE_MMAP */
82
83/* Define to 1 if you have the `munlock' function. */
84/* #undef HAVE_MUNLOCK */
85
86/* Define to 1 if you have the `munmap' function. */
87/* #undef HAVE_MUNMAP */
88
89/* Define to 1 to use the GCC compiler and 68K assembly language mutexes. */
90/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
91
92/* Define to 1 to use the AIX _check_lock mutexes. */
93/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
94
95/* Define to 1 to use the GCC compiler and Alpha assembly language mutexes. */
96/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
97
98/* Define to 1 to use the GCC compiler and ARM assembly language mutexes. */
99/* #undef HAVE_MUTEX_ARM_GCC_ASSEMBLY */
100
101/* Define to 1 to use the UNIX fcntl system call mutexes. */
102/* #undef HAVE_MUTEX_FCNTL */
103
104/* Define to 1 to use the GCC compiler and PaRisc assembly language mutexes.
105   */
106/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
107
108/* Define to 1 to use the msem_XXX mutexes on HP-UX. */
109/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
110
111/* Define to 1 to use the GCC compiler and IA64 assembly language mutexes. */
112/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
113
114/* Define to 1 to use the msem_XXX mutexes on systems other than HP-UX. */
115/* #undef HAVE_MUTEX_MSEM_INIT */
116
117/* Define to 1 to use the GCC compiler and Apple PowerPC assembly language. */
118/* #undef HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY */
119
120/* Define to 1 to use the GCC compiler and generic PowerPC assembly language.
121   */
122/* #undef HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY */
123
124/* Define to 1 to use POSIX 1003.1 pthread_XXX mutexes. */
125/* #undef HAVE_MUTEX_PTHREADS */
126
127/* Define to 1 to use Reliant UNIX initspin mutexes. */
128/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
129
130/* Define to 1 to use the GCC compiler and S/390 assembly language mutexes. */
131/* #undef HAVE_MUTEX_S390_GCC_ASSEMBLY */
132
133/* Define to 1 to use the SCO compiler and x86 assembly language mutexes. */
134/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
135
136/* Define to 1 to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
137/* #undef HAVE_MUTEX_SEMA_INIT */
138
139/* Define to 1 to use the SGI XXX_lock mutexes. */
140/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
141
142/* Define to 1 to use the Solaris _lock_XXX mutexes. */
143/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
144
145/* Define to 1 to use the Solaris lwp threads mutexes. */
146/* #undef HAVE_MUTEX_SOLARIS_LWP */
147
148/* Define to 1 to use the GCC compiler and Sparc assembly language mutexes. */
149/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
150
151/* Define to 1 if mutexes hold system resources. */
152/* #undef HAVE_MUTEX_SYSTEM_RESOURCES */
153
154/* Define to 1 if fast mutexes are available. */
155#define HAVE_MUTEX_THREADS 1
156
157/* Define to 1 to configure mutexes intra-process only. */
158/* #undef HAVE_MUTEX_THREAD_ONLY */
159
160/* Define to 1 to use the UNIX International mutexes. */
161/* #undef HAVE_MUTEX_UI_THREADS */
162
163/* Define to 1 to use the UTS compiler and assembly language mutexes. */
164/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
165
166/* Define to 1 to use VMS mutexes. */
167/* #undef HAVE_MUTEX_VMS */
168
169/* Define to 1 to use VxWorks mutexes. */
170/* #undef HAVE_MUTEX_VXWORKS */
171
172/* Define to 1 to use Windows mutexes. */
173#define HAVE_MUTEX_WIN32 1
174
175/* Define to 1 to use the GCC compiler and x86 assembly language mutexes. */
176/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
177
178/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
179/* #undef HAVE_NDIR_H */
180
181/* Define to 1 if you have the O_DIRECT flag. */
182/* #undef HAVE_O_DIRECT */
183
184/* Define to 1 if you have the `pread' function. */
185/* #undef HAVE_PREAD */
186
187/* Define to 1 if you have the `pstat_getdynamic' function. */
188/* #undef HAVE_PSTAT_GETDYNAMIC */
189
190/* Define to 1 if you have the `pwrite' function. */
191/* #undef HAVE_PWRITE */
192
193/* Define to 1 if building on QNX. */
194/* #undef HAVE_QNX */
195
196/* Define to 1 if you have the `qsort' function. */
197#define HAVE_QSORT 1
198
199/* Define to 1 if you have the `raise' function. */
200#define HAVE_RAISE 1
201
202/* Define to 1 if building RPC client/server. */
203/* #undef HAVE_RPC */
204
205/* Define to 1 if you have the `sched_yield' function. */
206/* #undef HAVE_SCHED_YIELD */
207
208/* Define to 1 if you have the `select' function. */
209/* #undef HAVE_SELECT */
210
211/* Define to 1 if you have the `shmget' function. */
212/* #undef HAVE_SHMGET */
213
214/* Define to 1 if you have the `snprintf' function. */
215#define HAVE_SNPRINTF 1
216
217/* Define to 1 if you have the <stdint.h> header file. */
218/* #undef HAVE_STDINT_H */
219
220/* Define to 1 if you have the <stdlib.h> header file. */
221#define HAVE_STDLIB_H 1
222
223/* Define to 1 if you have the `strcasecmp' function. */
224/* #undef HAVE_STRCASECMP */
225
226/* Define to 1 if you have the `strdup' function. */
227#define HAVE_STRDUP 1
228
229/* Define to 1 if you have the `strerror' function. */
230#define HAVE_STRERROR 1
231
232/* Define to 1 if you have the <strings.h> header file. */
233#define HAVE_STRINGS_H 1
234
235/* Define to 1 if you have the <string.h> header file. */
236#define HAVE_STRING_H 1
237
238/* Define to 1 if you have the `strtoul' function. */
239#define HAVE_STRTOUL 1
240
241/* Define to 1 if `st_blksize' is member of `struct stat'. */
242/* #undef HAVE_STRUCT_STAT_ST_BLKSIZE */
243
244/* Define to 1 if you have the `sysconf' function. */
245/* #undef HAVE_SYSCONF */
246
247/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
248   */
249/* #undef HAVE_SYS_DIR_H */
250
251/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
252   */
253/* #undef HAVE_SYS_NDIR_H */
254
255/* Define to 1 if you have the <sys/select.h> header file. */
256/* #undef HAVE_SYS_SELECT_H */
257
258/* Define to 1 if you have the <sys/stat.h> header file. */
259#define HAVE_SYS_STAT_H 1
260
261/* Define to 1 if you have the <sys/time.h> header file. */
262/* #undef HAVE_SYS_TIME_H */
263
264/* Define to 1 if you have the <sys/types.h> header file. */
265#define HAVE_SYS_TYPES_H 1
266
267/* Define to 1 if you have the <unistd.h> header file. */
268/* #undef HAVE_UNISTD_H */
269
270/* Define to 1 if unlink of file with open file descriptors will fail. */
271/* #undef HAVE_UNLINK_WITH_OPEN_FAILURE */
272
273/* Define to 1 if you have the `vsnprintf' function. */
274#define HAVE_VSNPRINTF 1
275
276/* Define to 1 if building VxWorks. */
277/* #undef HAVE_VXWORKS */
278
279/* Define to 1 if you have the `yield' function. */
280/* #undef HAVE_YIELD */
281
282/* Define to 1 if you have the `_fstati64' function. */
283#define HAVE__FSTATI64 1
284
285/* Define to the address where bug reports for this package should be sent. */
286#define PACKAGE_BUGREPORT "support@sleepycat.com"
287
288/* Define to the full name of this package. */
289#define PACKAGE_NAME "Berkeley DB"
290
291/* Define to the full name and version of this package. */
292#define PACKAGE_STRING "Berkeley DB 4.1.25"
293
294/* Define to the one symbol short name of this package. */
295#define PACKAGE_TARNAME "db-4.1.25"
296
297/* Define to the version of this package. */
298#define PACKAGE_VERSION "4.1.25"
299
300/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
301/* #undef STAT_MACROS_BROKEN */
302
303/* Define to 1 if you have the ANSI C header files. */
304#define STDC_HEADERS 1
305
306/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
307/* #undef TIME_WITH_SYS_TIME */
308
309/* Define to 1 to mask harmless unitialized memory read/writes. */
310/* #undef UMRW */
311
312/* Number of bits in a file offset, on hosts where this is settable. */
313/* #undef _FILE_OFFSET_BITS */
314
315/* Define for large files, on AIX-style hosts. */
316/* #undef _LARGE_FILES */
317
318/* Define to empty if `const' does not conform to ANSI C. */
319/* #undef const */
320
321/*
322 * Exit success/failure macros.
323 */
324#ifndef HAVE_EXIT_SUCCESS
325#define EXIT_FAILURE    1
326#define EXIT_SUCCESS    0
327#endif
328
329/*
330 * Don't step on the namespace.  Other libraries may have their own
331 * implementations of these functions, we don't want to use their
332 * implementations or force them to use ours based on the load order.
333 */
334#ifndef HAVE_GETCWD
335#define getcwd          __db_Cgetcwd
336#endif
337#ifndef HAVE_MEMCMP
338#define memcmp          __db_Cmemcmp
339#endif
340#ifndef HAVE_MEMCPY
341#define memcpy          __db_Cmemcpy
342#endif
343#ifndef HAVE_MEMMOVE
344#define memmove         __db_Cmemmove
345#endif
346#ifndef HAVE_RAISE
347#define raise           __db_Craise
348#endif
349#ifndef HAVE_SNPRINTF
350#define snprintf        __db_Csnprintf
351#endif
352#ifndef HAVE_STRCASECMP
353#define strcasecmp      __db_Cstrcasecmp
354#define strncasecmp     __db_Cstrncasecmp
355#endif
356#ifndef HAVE_STRERROR
357#define strerror        __db_Cstrerror
358#endif
359#ifndef HAVE_VSNPRINTF
360#define vsnprintf       __db_Cvsnprintf
361#endif
362
363/*
364 * XXX
365 * The following is not part of the automatic configuration setup, but
366 * provides the information necessary to build Berkeley DB on Windows.
367 */
368#include <sys/types.h>
369#include <sys/stat.h>
370
371#include <direct.h>
372#include <fcntl.h>
373#include <io.h>
374#include <limits.h>
375#include <memory.h>
376#include <process.h>
377#include <signal.h>
378#include <stdio.h>
379#include <stdlib.h>
380#include <time.h>
381#include <errno.h>
382
383/*
384 * To build Tcl interface libraries, the include path must be configured to
385 * use the directory containing <tcl.h>, usually the include directory in
386 * the Tcl distribution.
387 */
388#ifdef DB_TCL_SUPPORT
389#include <tcl.h>
390#endif
391
392#define WIN32_LEAN_AND_MEAN
393#include <windows.h>
394
395/*
396 * All of the necessary includes have been included, ignore the #includes
397 * in the Berkeley DB source files.
398 */
399#define NO_SYSTEM_INCLUDES
400
401/*
402 * Win32 has getcwd, snprintf and vsnprintf, but under different names.
403 */
404#define getcwd(buf, size)       _getcwd(buf, size)
405#define snprintf                _snprintf
406#define vsnprintf               _vsnprintf
407
408/*
409 * Win32 does not define getopt and friends in any header file, so we must.
410 */
411#if defined(__cplusplus)
412extern "C" {
413#endif
414extern int optind;
415extern char *optarg;
416extern int getopt(int, char * const *, const char *);
417#if defined(__cplusplus)
418}
419#endif
420
421/*
422 * We use DB_WIN32 much as one would use _WIN32, to determine that we're
423 * using an operating system environment that supports Win32 calls
424 * and semantics.  We don't use _WIN32 because cygwin/gcc also defines
425 * that, even though it closely emulates the Unix environment.
426 */
427#define DB_WIN32 1
428
429/*
430 * This is a grievous hack -- once we've included windows.h, we have no choice
431 * but to use ANSI-style varargs (because it pulls in stdarg.h for us).  DB's
432 * code decides which type of varargs to use based on the state of __STDC__.
433 * Sensible.  Unfortunately, Microsoft's compiler _doesn't_ define __STDC__
434 * unless you invoke it with arguments turning OFF all vendor extensions.  Even
435 * more unfortunately, if we do that, it fails to parse windows.h!!!!!  So, we
436 * define __STDC__ here, after windows.h comes in.  Note: the compiler knows
437 * we've defined it, and starts enforcing strict ANSI compilance from this point
438 * on.
439 */
440#define __STDC__ 1
Note: See TracBrowser for help on using the repository browser.