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