1#ifdef _WIN32
2#define CONFIG_H
3#define HAVE_QUERYPERFORMANCECOUNTER
4#include "config_static.h"
5#endif
6
7#ifndef CONFIG_H
8#define CONFIG_H
9
10/* This file checks for platform-specific includes which may or may
11 * not be available during build time. The config_static.h file includes
12 * files mentioned here as well as other files whose availability can be
13 * inferred from compile-time macros
14 */
15
16#cmakedefine HAVE_CLOCK_GETTIME
17#cmakedefine HAVE_DLFCN_H
18#cmakedefine HAVE_GETHRTIME
19#cmakedefine HAVE_GETTIMEOFDAY
20#cmakedefine HAVE_INTTYPES_H
21#cmakedefine HAVE_NETDB_H
22#cmakedefine HAVE_SETITIMER
23#cmakedefine HAVE_STDINT_H
24#cmakedefine HAVE_STDDEF_H
25#cmakedefine HAVE_FCNTL_H
26#cmakedefine HAVE_HTONLL
27#cmakedefine HAVE_STRINGS_H
28#cmakedefine HAVE_SYS_SOCKET_H
29#cmakedefine HAVE_SYS_STAT_H
30#cmakedefine HAVE_SYS_TIME_H
31#cmakedefine HAVE_SYS_TYPES_H
32#cmakedefine HAVE_SYS_UIO_H
33#cmakedefine HAVE_UNISTD_H
34#cmakedefine HAVE_ARPA_INET_H
35#cmakedefine HAVE_RES_SEARCH
36#cmakedefine HAVE_ARPA_NAMESER_H
37
38#ifndef HAVE_LIBEVENT
39#cmakedefine HAVE_LIBEVENT
40#endif
41
42#ifndef HAVE_LIBEVENT2
43#cmakedefine HAVE_LIBEVENT2
44#endif
45
46#ifndef HAVE_LIBEV3
47#cmakedefine HAVE_LIBEV3
48#endif
49
50#ifndef HAVE_LIBEV4
51#cmakedefine HAVE_LIBEV4
52#endif
53
54#ifndef HAVE_LIBUV
55#cmakedefine HAVE_LIBUV
56#endif
57
58#cmakedefine LCB_USE_HDR_HISTOGRAM
59
60#define LCB_LIBDIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
61
62#include "config_static.h"
63#endif
64
65#define TEST_SHARED_OBJECT "${CMAKE_TEST_SHARED_OBJECT}"
66#cmakedefine COMPILER_SUPPORTS_CXX11
67
68#define LCB_SYSTEM "${CMAKE_SYSTEM}"
69#define LCB_SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}"
70#define LCB_CXX_COMPILER "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}"
71#define LCB_CXX_FLAGS "${CMAKE_CXX_FLAGS}"
72#define LCB_C_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}"
73#define LCB_C_FLAGS "${CMAKE_C_FLAGS}"
74
75#define LCB_CLIENT_ID "libcouchbase/" LCB_VERSION_STRING " (" LCB_SYSTEM "; " LCB_SYSTEM_PROCESSOR "; " LCB_C_COMPILER ")"
76