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