xapian-core
1.4.23
config.h
Go to the documentation of this file.
1
/* config.h. Generated from config.h.in by configure. */
2
/* config.h.in. Generated from configure.ac by autoheader. */
3
4
/* Define if building universal (internal helper macro) */
5
/* #undef AC_APPLE_UNIVERSAL_BUILD */
6
7
/* directory separator(s) as a character or string literal */
8
#define DIR_SEPS '/'
9
10
/* directory separator(s) as an initialiser list */
11
#define DIR_SEPS_LIST { '/' }
12
13
/* Define to use flock() for flint-compatible locking */
14
/* #undef FLINTLOCK_USE_FLOCK */
15
16
/* Define if ftime returns void */
17
/* #undef FTIME_RETURNS_VOID */
18
19
/* Define to 1 if you have the `clock_gettime' function. */
20
#define HAVE_CLOCK_GETTIME 1
21
22
/* Define to 1 if you have the `closefrom' function. */
23
/* #undef HAVE_CLOSEFROM */
24
25
/* define if the compiler supports basic C++11 syntax */
26
#define HAVE_CXX11 1
27
28
/* Define to 1 if you have the <cxxabi.h> header file. */
29
#define HAVE_CXXABI_H 1
30
31
/* Define to 1 if you have the declaration of `exp10(double)', and to 0 if you
32
don't. */
33
#define HAVE_DECL_EXP10 1
34
35
/* Define to 1 if you have the declaration of `log2(double)', and to 0 if you
36
don't. */
37
#define HAVE_DECL_LOG2 1
38
39
/* Define to 1 if you have the declaration of `siglongjmp', and to 0 if you
40
don't. */
41
#define HAVE_DECL_SIGLONGJMP 1
42
43
/* Define to 1 if you have the declaration of `sigsetjmp', and to 0 if you
44
don't. */
45
#define HAVE_DECL_SIGSETJMP 1
46
47
/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
48
don't. */
49
#define HAVE_DECL_STRERROR_R 1
50
51
/* Define to 1 if you have the declaration of `_addcarry_u32(unsigned char,
52
unsigned, unsigned, unsigned*)', and to 0 if you don't. */
53
#define HAVE_DECL__ADDCARRY_U32 0
54
55
/* Define to 1 if you have the declaration of `_addcarry_u64(unsigned char,
56
unsigned __int64, unsigned __int64, unsigned __int64*)', and to 0 if you
57
don't. */
58
#define HAVE_DECL__ADDCARRY_U64 0
59
60
/* Define to 1 if you have the declaration of `_byteswap_uint64', and to 0 if
61
you don't. */
62
#define HAVE_DECL__BYTESWAP_UINT64 0
63
64
/* Define to 1 if you have the declaration of `_byteswap_ulong', and to 0 if
65
you don't. */
66
#define HAVE_DECL__BYTESWAP_ULONG 0
67
68
/* Define to 1 if you have the declaration of `_byteswap_ushort', and to 0 if
69
you don't. */
70
#define HAVE_DECL__BYTESWAP_USHORT 0
71
72
/* Define to 1 if you have the declaration of `_putenv_s(const char*, const
73
char*)', and to 0 if you don't. */
74
#define HAVE_DECL__PUTENV_S 0
75
76
/* Define to 1 if you have the declaration of `_subborrow_u32(unsigned char,
77
unsigned, unsigned, unsigned*)', and to 0 if you don't. */
78
#define HAVE_DECL__SUBBORROW_U32 0
79
80
/* Define to 1 if you have the declaration of `_subborrow_u64(unsigned char,
81
unsigned __int64, unsigned __int64, unsigned __int64*)', and to 0 if you
82
don't. */
83
#define HAVE_DECL__SUBBORROW_U64 0
84
85
/* Define to 1 if you have the declaration of `__builtin_add_overflow(int,
86
int, int*)', and to 0 if you don't. */
87
#define HAVE_DECL___BUILTIN_ADD_OVERFLOW 1
88
89
/* Define to 1 if you have the declaration of `__builtin_bswap16(uint16_t)',
90
and to 0 if you don't. */
91
#define HAVE_DECL___BUILTIN_BSWAP16 1
92
93
/* Define to 1 if you have the declaration of `__builtin_bswap32(uint32_t)',
94
and to 0 if you don't. */
95
#define HAVE_DECL___BUILTIN_BSWAP32 1
96
97
/* Define to 1 if you have the declaration of `__builtin_bswap64(uint64_t)',
98
and to 0 if you don't. */
99
#define HAVE_DECL___BUILTIN_BSWAP64 1
100
101
/* Define to 1 if you have the declaration of `__builtin_clz(unsigned)', and
102
to 0 if you don't. */
103
#define HAVE_DECL___BUILTIN_CLZ 1
104
105
/* Define to 1 if you have the declaration of `__builtin_clzl(unsigned long)',
106
and to 0 if you don't. */
107
#define HAVE_DECL___BUILTIN_CLZL 1
108
109
/* Define to 1 if you have the declaration of `__builtin_clzll(unsigned long
110
long)', and to 0 if you don't. */
111
#define HAVE_DECL___BUILTIN_CLZLL 1
112
113
/* Define to 1 if you have the declaration of `__builtin_ctz(unsigned)', and
114
to 0 if you don't. */
115
#define HAVE_DECL___BUILTIN_CTZ 1
116
117
/* Define to 1 if you have the declaration of `__builtin_ctzl(unsigned long)',
118
and to 0 if you don't. */
119
#define HAVE_DECL___BUILTIN_CTZL 1
120
121
/* Define to 1 if you have the declaration of `__builtin_ctzll(unsigned long
122
long)', and to 0 if you don't. */
123
#define HAVE_DECL___BUILTIN_CTZLL 1
124
125
/* Define to 1 if you have the declaration of `__builtin_expect(long, long)',
126
and to 0 if you don't. */
127
#define HAVE_DECL___BUILTIN_EXPECT 1
128
129
/* Define to 1 if you have the declaration of `__builtin_mul_overflow(int,
130
int, int*)', and to 0 if you don't. */
131
#define HAVE_DECL___BUILTIN_MUL_OVERFLOW 1
132
133
/* Define to 1 if you have the declaration of `__builtin_popcount(unsigned)',
134
and to 0 if you don't. */
135
#define HAVE_DECL___BUILTIN_POPCOUNT 1
136
137
/* Define to 1 if you have the declaration of `__builtin_popcountl(unsigned
138
long)', and to 0 if you don't. */
139
#define HAVE_DECL___BUILTIN_POPCOUNTL 1
140
141
/* Define to 1 if you have the declaration of `__builtin_popcountll(unsigned
142
long long)', and to 0 if you don't. */
143
#define HAVE_DECL___BUILTIN_POPCOUNTLL 1
144
145
/* Define to 1 if you have the declaration of `__builtin_sub_overflow(int,
146
int, int*)', and to 0 if you don't. */
147
#define HAVE_DECL___BUILTIN_SUB_OVERFLOW 1
148
149
/* Define to 1 if you have the declaration of `__exp10(double)', and to 0 if
150
you don't. */
151
#define HAVE_DECL___EXP10 1
152
153
/* Define to 1 if you have the declaration of `__popcnt', and to 0 if you
154
don't. */
155
#define HAVE_DECL___POPCNT 0
156
157
/* Define to 1 if you have the declaration of `__popcnt64', and to 0 if you
158
don't. */
159
#define HAVE_DECL___POPCNT64 0
160
161
/* Define to 1 if you have the <dlfcn.h> header file. */
162
#define HAVE_DLFCN_H 1
163
164
/* Define to 1 if you have the <fcntl.h> header file. */
165
#define HAVE_FCNTL_H 1
166
167
/* Define to 1 if you have the `fdatasync' function. */
168
#define HAVE_FDATASYNC 1
169
170
/* Define to 1 if you have the `fork' function. */
171
#define HAVE_FORK 1
172
173
/* Define to 1 if you have the `fsync' function. */
174
#define HAVE_FSYNC 1
175
176
/* Define to 1 if you have the `ftime' function. */
177
#define HAVE_FTIME 1
178
179
/* Define to 1 if you have the `ftruncate' function. */
180
#define HAVE_FTRUNCATE 1
181
182
/* Define to 1 if you have the `getdirentries' function. */
183
#define HAVE_GETDIRENTRIES 1
184
185
/* Define to 1 if you have the `gethostname' function. */
186
#define HAVE_GETHOSTNAME 1
187
188
/* Define to 1 if you have the `getrlimit' function. */
189
#define HAVE_GETRLIMIT 1
190
191
/* Define to 1 if you have the `getrusage' function. */
192
#define HAVE_GETRUSAGE 1
193
194
/* Define to 1 if you have the `gettimeofday' function. */
195
#define HAVE_GETTIMEOFDAY 1
196
197
/* Define to 1 if you have the <inttypes.h> header file. */
198
#define HAVE_INTTYPES_H 1
199
200
/* Define to 1 if you have the <limits.h> header file. */
201
#define HAVE_LIMITS_H 1
202
203
/* Define to 1 if you have the `link' function. */
204
#define HAVE_LINK 1
205
206
/* Define to 1 if you have the `nanosleep' function. */
207
#define HAVE_NANOSLEEP 1
208
209
/* Define to 1 if you have the `nftw' function. */
210
#define HAVE_NFTW 1
211
212
/* Define to 1 if you have the `poll' function. */
213
#define HAVE_POLL 1
214
215
/* Define to 1 if you have the <poll.h> header file. */
216
#define HAVE_POLL_H 1
217
218
/* Define to 1 if you have the `posix_fadvise' function. */
219
#define HAVE_POSIX_FADVISE 1
220
221
/* Define if pread is available on this system */
222
#define HAVE_PREAD 1
223
224
/* Define if pwrite is available on this system */
225
#define HAVE_PWRITE 1
226
227
/* Define to 1 if you have the `setenv' function. */
228
#define HAVE_SETENV 1
229
230
/* Define to 1 if you have the `sigaction' function. */
231
#define HAVE_SIGACTION 1
232
233
/* Define to 1 if you have the `sleep' function. */
234
#define HAVE_SLEEP 1
235
236
/* Define to 1 if you have the 'socketpair' function. */
237
#define HAVE_SOCKETPAIR 1
238
239
/* Define to 1 if you have the <stdint.h> header file. */
240
#define HAVE_STDINT_H 1
241
242
/* Define to 1 if you have the <stdio.h> header file. */
243
#define HAVE_STDIO_H 1
244
245
/* Define to 1 if you have the <stdlib.h> header file. */
246
#define HAVE_STDLIB_H 1
247
248
/* Define to 1 if you have the `strerrordesc_np' function. */
249
/* #undef HAVE_STRERRORDESC_NP */
250
251
/* Define if you have `strerror_r'. */
252
#define HAVE_STRERROR_R 1
253
254
/* Define to 1 if you have the <strings.h> header file. */
255
#define HAVE_STRINGS_H 1
256
257
/* Define to 1 if you have the <string.h> header file. */
258
#define HAVE_STRING_H 1
259
260
/* Define to 1 if you have the `sysconf' function. */
261
#define HAVE_SYSCONF 1
262
263
/* Define if you have 'sys_errlist' and 'sys_nerr' */
264
#define HAVE_SYS_ERRLIST_AND_SYS_NERR 1
265
266
/* Define to 1 if you have the <sys/resource.h> header file. */
267
#define HAVE_SYS_RESOURCE_H 1
268
269
/* Define to 1 if you have the <sys/select.h> header file. */
270
#define HAVE_SYS_SELECT_H 1
271
272
/* Define to 1 if you have the <sys/stat.h> header file. */
273
#define HAVE_SYS_STAT_H 1
274
275
/* Define to 1 if you have the <sys/types.h> header file. */
276
#define HAVE_SYS_TYPES_H 1
277
278
/* Define to 1 if you have the <sys/utsname.h> header file. */
279
#define HAVE_SYS_UTSNAME_H 1
280
281
/* Define to 1 if you have the 'timer_create' function. */
282
#define HAVE_TIMER_CREATE 1
283
284
/* Define to 1 if you have the `times' function. */
285
#define HAVE_TIMES 1
286
287
/* Define to 1 if you have the <unistd.h> header file. */
288
#define HAVE_UNISTD_H 1
289
290
/* Define to 1 if you have the <uuid.h> header file. */
291
/* #undef HAVE_UUID_H */
292
293
/* Define to 1 if you have the <uuid/uuid.h> header file. */
294
#define HAVE_UUID_UUID_H 1
295
296
/* Define if a suitable valgrind is installed */
297
#define HAVE_VALGRIND 1
298
299
/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
300
#define HAVE_VALGRIND_MEMCHECK_H 1
301
302
/* Define to 1 if you have the <zlib.h> header file. */
303
#define HAVE_ZLIB_H 1
304
305
/* Define to 1 if you have the `_putenv_s' function. */
306
/* #undef HAVE__PUTENV_S */
307
308
/* Define if you have '_sys_errlist' and '_sys_nerr' */
309
#define HAVE__SYS_ERRLIST_AND__SYS_NERR 1
310
311
/* Define to 1 if you have the '__builtin_exp10' function. */
312
#define HAVE___BUILTIN_EXP10 1
313
314
/* Define to the sub-directory where libtool stores uninstalled libraries. */
315
#define LT_OBJDIR ".libs/"
316
317
/* Define on mingw to get _s suffixed "secure" functions declared in headers
318
*/
319
/* #undef MINGW_HAS_SECURE_API */
320
321
/* Name of package */
322
#define PACKAGE "xapian-core"
323
324
/* Define to the address where bug reports for this package should be sent. */
325
#define PACKAGE_BUGREPORT "https://xapian.org/bugs"
326
327
/* Define to the full name of this package. */
328
#define PACKAGE_NAME "xapian-core"
329
330
/* Define to the full name and version of this package. */
331
#define PACKAGE_STRING "xapian-core 1.4.23"
332
333
/* Define to the one symbol short name of this package. */
334
#define PACKAGE_TARNAME "xapian-core"
335
336
/* Define to the home page for this package. */
337
#define PACKAGE_URL ""
338
339
/* Define to the version of this package. */
340
#define PACKAGE_VERSION "1.4.23"
341
342
/* explicit prototype needed for pread (if any) */
343
/* #undef PREAD_PROTOTYPE */
344
345
/* explicit prototype needed for pwrite (if any) */
346
/* #undef PWRITE_PROTOTYPE */
347
348
/* The size of `int', as computed by sizeof. */
349
#define SIZEOF_INT 4
350
351
/* The size of `long', as computed by sizeof. */
352
#define SIZEOF_LONG 8
353
354
/* The size of `long long', as computed by sizeof. */
355
#define SIZEOF_LONG_LONG 8
356
357
/* The size of `short', as computed by sizeof. */
358
#define SIZEOF_SHORT 2
359
360
/* Define to the name of a function implementing snprintf but not caring about
361
ISO C99 return value semantics (if one exists) */
362
#define SNPRINTF snprintf
363
364
/* type to use for 5th parameter to getsockopt */
365
#define SOCKLEN_T socklen_t
366
367
/* Define to 1 if all of the C90 standard headers exist (not just the ones
368
required in a freestanding environment). This macro is provided for
369
backward compatibility; new code need not use it. */
370
#define STDC_HEADERS 1
371
372
/* Define to 1 if strerror_r returns char *. */
373
#define STRERROR_R_CHAR_P 1
374
375
/* Define to 1 to read UUID from '/proc/sys/kernel/random/uuid' */
376
/* #undef USE_PROC_FOR_UUID */
377
378
/* Define if the testsuite can use RTTI */
379
#define USE_RTTI 1
380
381
/* Define to 1 to use UuidCreate(), etc */
382
/* #undef USE_WIN32_UUID_API */
383
384
/* Version number of package */
385
#define VERSION "1.4.23"
386
387
/* Version of Windows to assume (0x600 => Vista). */
388
/* #undef WINVER */
389
390
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
391
significant byte first (like Motorola and SPARC, unlike Intel). */
392
#if defined AC_APPLE_UNIVERSAL_BUILD
393
# if defined __BIG_ENDIAN__
394
# define WORDS_BIGENDIAN 1
395
# endif
396
#else
397
# ifndef WORDS_BIGENDIAN
398
/* # undef WORDS_BIGENDIAN */
399
# endif
400
#endif
401
402
/* Define if you want assertions (causes some slow-down) */
403
/* #undef XAPIAN_ASSERTIONS */
404
405
/* Define if you want paranoid assertions (causes significant slow-down) */
406
/* #undef XAPIAN_ASSERTIONS_PARANOID */
407
408
/* Define if you want a log of methods called and other debug messages */
409
/* #undef XAPIAN_DEBUG_LOG */
410
411
/* Number of bits in a file offset, on hosts where this is settable. */
412
/* #undef _FILE_OFFSET_BITS */
413
414
/* Define for large files, on AIX-style hosts. */
415
/* #undef _LARGE_FILES */
416
417
/* Version of Windows to assume. */
418
/* #undef _WIN32_WINNT */
419
420
/* Define on mingw to the minimum msvcrt version to assume */
421
/* #undef __MSVCRT_VERSION__ */
422
423
/* Define to `int' if <sys/types.h> does not define. */
424
/* #undef mode_t */
425
426
/* Define as a signed integer type capable of holding a process identifier. */
427
/* #undef pid_t */
428
429
/* Define to `int' if <sys/types.h> does not define. */
430
/* #undef ssize_t */
431
432
/* Disable stupid MSVC warnings. */
433
#ifdef _MSC_VER
434
/* Passing an empty parameter to a single parameter macro. */
435
# pragma warning(disable:4003)
436
/* A "performance" warning for converting int to bool. */
437
# pragma warning(disable:4800)
438
439
/* POSIX get to deprecate POSIX things, not Microsoft. */
440
# define _CRT_NONSTDC_NO_WARNINGS
441
# define _CRT_SECURE_NO_WARNINGS
442
443
/* WSAAddressToStringA() is deprecated and we should apparently use
444
* WSAAddressToStringW(), but we don't want wide character output so
445
* that would mean we'd have to convert the result back to ASCII
446
* which is a really stupid idea.
447
*/
448
# define _WINSOCK_DEPRECATED_NO_WARNINGS
449
450
/* Tell MSVC we want M_PI, etc defined. */
451
# define _USE_MATH_DEFINES
452
453
/* Tell MSVC we don't want max() and min() macros defined. */
454
# define NOMINMAX
455
#endif
456
457
/* Make the POSIX-like functions support large files. MSVC needs this;
458
* current mingw32 does too; mingw64 supports _FILE_OFFSET_BITS, which
459
* AC_SYS_LARGEFILE should discover and enable automatically.
460
*/
461
#if defined _MSC_VER || \
462
(defined __MINGW32__ && !defined _FILE_OFFSET_BITS)
463
464
# include <sys/stat.h>
465
# include <sys/types.h>
466
# include <io.h>
467
/* zlib.h uses off_t so we need to include it before we redefine off_t. */
468
# include <zlib.h>
469
470
// The default stat() and fstat() use 32-bit filesizes and time_t, so we need
471
// to arrange to use 64-bit variants instead.
472
473
# ifdef stat
474
// Break #undef lines to stop config.status from commenting them out.
475
# undef \
476
stat
477
# endif
478
479
// This hack is a problem is we ever want a method called "stat".
480
# ifdef _MSC_VER
481
// MSVC needs to call _stat64() instead of stat() and the struct which holds
482
// the information is `struct _stat64` instead of `struct stat` so we just
483
// use #define to replace both in one go.
484
# define stat _stat64
485
# else
486
// Mingw32 has _stat64() but unhelpfully for our purposes, the struct is
487
// called __stat64 (with an extra underscore). We hack around this by
488
// defining stat to __stat64 which sorts out the struct, and then using
489
// a second macro to forward function-like uses of __stat64() to
490
// _stat64().
491
# define stat __stat64
492
# define __stat64(PATH, STATBUF) _stat64((PATH), (STATBUF))
493
# endif
494
495
// We also want to use _fstat64() instead of fstat() but in this case we can
496
// use a function-like macro, so we could have a method called fstat so long
497
// as it didn't take two parameters.
498
499
# ifdef fstat
500
// Break #undef lines to stop config.status from commenting them out.
501
# undef \
502
fstat
503
# endif
504
505
# define fstat(FD, BUF) _fstat64(FD, BUF)
506
507
# ifdef lseek
508
// Break #undef lines to stop config.status from commenting them out.
509
# undef \
510
lseek
511
# endif
512
513
# ifdef off_t
514
// Break #undef lines to stop config.status from commenting them out.
515
# undef \
516
off_t
517
# endif
518
519
# define lseek(FD, OFF, WHENCE) _lseeki64(FD, OFF, WHENCE)
520
/* Redefine via a typedef so C++ code off_t(-1) works - it wouldn't if we did:
521
* #define off_t long long
522
*/
523
typedef
long
long
off_t_redefinition_typedef;
524
# define off_t off_t_redefinition_typedef
525
526
#endif
527
528
/* MSVC defines _WIN32 but not __WIN32__. */
529
#if !defined __WIN32__ && defined _WIN32
530
# define __WIN32__
531
#endif
532
533
/* MSVC defines _WIN64 but not __WIN64__. */
534
#if !defined __WIN64__ && defined _WIN64
535
# define __WIN64__
536
#endif
537
538
/* Default to enabling _FORTIFY_SOURCE at level 2. It shouldn't cause a
539
* problem to define it where it's not supported.
540
*
541
* Check if _FORTIFY_SOURCE is already defined to allow the user to override
542
* our choice with "./configure CPPFLAGS=-D_FORTIFY_SOURCE=0" or "...=1".
543
*
544
* Enabling _FORTIFY_SOURCE on newer mingw-w64 requires linking with -lssp.
545
* It seems hard to detect mingw-w64 vs mingw (if we `#include <_mingw.h>`
546
* so we can check __MINGW64_VERSION_MAJOR then that will process the current
547
* setting of _FORTIFY_SOURCE and we can't usefully change it), but it seems
548
* mingw doesn't support _FORTIFY_SOURCE anyway.
549
*/
550
#if defined __GNUC__ && !defined _FORTIFY_SOURCE && !defined __MINGW32__
551
# define _FORTIFY_SOURCE 2
552
#endif
553
554
/* For compilers which support it (such as GCC, clang, Intel's C++ compiler)
555
* we can use __builtin_expect to give the compiler hints about branch
556
* prediction. See HACKING for how to use these.
557
*/
558
#if HAVE_DECL___BUILTIN_EXPECT
559
/* The arguments of __builtin_expect() are both long, so use !! to ensure that
560
* the first argument is always an integer expression, and always 0 or 1, but
561
* still has the same truth value for the if or while it is used in.
562
*/
563
# define rare(COND) __builtin_expect(!!(COND), 0)
564
# define usual(COND) __builtin_expect(!!(COND), 1)
565
#else
566
# define rare(COND) (COND)
567
# define usual(COND) (COND)
568
#endif
569
570
/* Signal we're building the library so it's OK to include headers such as
571
* xapian/query.h directly.
572
*/
573
#define XAPIAN_LIB_BUILD 1
574
575
/* With Sun CC 5.13 (Studio 12.4) on Solaris 11.2, <math.h> seems to get
576
* implicitly included somehow before <cmath>, and compilation fails due
577
* to 'std::exception' colliding with 'struct exception'. It's not clear
578
* how to avoid this, so just define the same magic macro which <cmath> does
579
* before it includes <math.h>.
580
*/
581
#if defined __SUNPRO_CC && !defined __MATHERR_RENAME_EXCEPTION
582
# define __MATHERR_RENAME_EXCEPTION
583
#endif
584
Generated by
Doxygen 1.8.13