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