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