aa2343cab4ed09dadc8f0e061648435f5e723980
[platform/upstream/dbus.git] / cmake / config.h.cmake
1 /* config.h. Generated by cmake from config.h.cmake */
2
3 #ifndef _DBUS_CONFIG_H
4 #define _DBUS_CONFIG_H
5 /****************************/
6 /* indicate that we are building with cmake */
7 #define DBUS_CMAKE 1
8
9 #cmakedefine HAVE_GNUC_VARARGS 1
10
11 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
12 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
13 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
14 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
15 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
16 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
17 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
18 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
19 #cmakedefine DBUS_SESSION_BUS_DEFAULT_ADDRESS "@DBUS_SESSION_BUS_DEFAULT_ADDRESS@"
20 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
21 #cmakedefine PACKAGE "@PACKAGE@"
22 /* Version number of package */
23 #cmakedefine DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@
24 #cmakedefine DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@
25 #cmakedefine DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@
26 #cmakedefine DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@))
27 #cmakedefine DBUS_VERSION_STRING "@DBUS_VERSION_STRING@"
28 #cmakedefine DBUS_ENABLE_STATS
29
30 #define VERSION DBUS_VERSION_STRING
31
32 #define TEST_LISTEN       "@TEST_LISTEN@"
33 #define TEST_CONNECTION   "@TEST_CONNECTION@"
34
35 // test binaries
36 /* Full path to test file test/test-exit in builddir */
37 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
38 /* Full path to test file test/test-exit in builddir */
39 #define TEST_EXIT_BINARY          "@TEST_EXIT_BINARY@"
40 /* Full path to test file test/test-segfault in builddir */
41 #define TEST_SEGFAULT_BINARY      "@TEST_SEGFAULT_BINARY@"
42 /* Full path to test file test/test-service in builddir */
43 #define TEST_SERVICE_BINARY       "@TEST_SERVICE_BINARY@"
44 /* Full path to test file test/test-shell-service in builddir */
45 #define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@"
46 /* Full path to test file test/test-sleep-forever in builddir */
47 #define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_BINARY@"
48
49 /* Some dbus features */
50 #cmakedefine DBUS_BUILD_TESTS 1
51 #cmakedefine DBUS_ENABLE_ANSI 1
52 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
53 #cmakedefine DBUS_DISABLE_ASSERTS 1
54 #cmakedefine DBUS_DISABLE_CHECKS 1
55 /* xmldocs */
56 /* doxygen */
57 #cmakedefine DBUS_GCOV_ENABLED 1
58
59 /* abstract-sockets */
60
61 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
62
63 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
64
65 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
66 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
67 #endif
68
69 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
70 #undef DBUS_PATH_OR_ABSTRACT_VALUE
71 #endif
72
73 /* selinux */
74 #cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
75 /* kqueue */
76 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
77 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
78
79 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
80 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
81 #if (defined(__i386__) || defined(__x86_64__))
82 # define DBUS_HAVE_ATOMIC_INT 1
83 # define DBUS_USE_ATOMIC_INT_486 1
84 #endif
85
86 #cmakedefine DBUS_BUILD_X11 1
87 /* For the moment, the cmake build system doesn't have an equivalent of
88  * the autoconf build system's --disable-x11-autolaunch */
89 #ifdef DBUS_BUILD_X11
90 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
91 #endif
92
93 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
94
95 #cmakedefine DBUS_VA_COPY_FUNC
96 #if (defined DBUS_VA_COPY_FUNC)
97 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
98 #endif
99
100 #ifdef DBUS_VA_COPY_FUNC
101 #undef DBUS_VA_COPY_FUNC
102 #endif
103
104 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
105
106 // headers
107 /* Define to 1 if you have dirent.h */
108 #cmakedefine   HAVE_DIRENT_H 1
109
110 /* Define to 1 if you have io.h */
111 #cmakedefine   HAVE_IO_H 1
112
113 /* Define to 1 if you have grp.h */
114 #cmakedefine   HAVE_GRP_H 1
115
116 /* Define to 1 if you have sys/poll.h */
117 #cmakedefine    HAVE_POLL 1
118
119 /* Define to 1 if you have sys/time.h */
120 #cmakedefine    HAVE_SYS_TIME 1
121
122 /* Define to 1 if you have sys/wait.h */
123 #cmakedefine    HAVE_SYS_WAIT 1
124
125 /* Define to 1 if you have time.h */
126 #cmakedefine   HAVE_TIME_H 1
127
128 /* Define to 1 if you have ws2tcpip.h */
129 #cmakedefine   HAVE_WS2TCPIP_H
130
131 /* Define to 1 if you have wspiapi.h */
132 #cmakedefine   HAVE_WSPIAPI_H 1
133
134 /* Define to 1 if you have unistd.h */
135 #cmakedefine   HAVE_UNISTD_H 1
136
137 /* Define to 1 if you have stdio.h */
138 #cmakedefine   HAVE_STDIO_H 1
139
140 /* Define to 1 if you have sys/syslimits.h */
141 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
142
143 /* Define to 1 if you have errno.h */
144 #cmakedefine   HAVE_ERRNO_H 1
145
146 /* Define to 1 if you have signal.h */
147 #cmakedefine   HAVE_SIGNAL_H 1
148
149 /* Define to 1 if you have locale.h */
150 #cmakedefine   HAVE_LOCALE_H 1
151
152 /* Define to 1 if you have inttypes.h */
153 #cmakedefine   HAVE_INTTYPES_H 1
154
155 /* Define to 1 if you have stdint.h */
156 #cmakedefine   HAVE_STDINT_H 1
157
158 // symbols
159 /* Define to 1 if you have backtrace */
160 #cmakedefine   HAVE_BACKTRACE 1
161
162 /* Define to 1 if you have getgrouplist */
163 #cmakedefine   HAVE_GETGROUPLIST 1
164
165 /* Define to 1 if you have getpeerucred */
166 #cmakedefine   HAVE_GETPEERUCRED 1
167
168 /* Define to 1 if you have nanosleep */
169 #cmakedefine   HAVE_NANOSLEEP 1
170
171 /* Define to 1 if you have getpwnam_r */
172 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
173
174 /* Define to 1 if you have socketpair */
175 #cmakedefine   HAVE_SOCKETPAIR 1
176
177 /* Define to 1 if you have setenv */
178 #cmakedefine   HAVE_SETENV 1
179
180 /* Define to 1 if you have unsetenv */
181 #cmakedefine   HAVE_UNSETENV 1
182
183 /* Define to 1 if you have clearenv */
184 #cmakedefine   HAVE_CLEARENV 1
185
186 /* Define to 1 if you have writev */
187 #cmakedefine   HAVE_WRITEV 1
188
189 /* Define to 1 if you have socklen_t */
190 #cmakedefine   HAVE_SOCKLEN_T 1
191
192 /* Define to 1 if you have setlocale */
193 #cmakedefine   HAVE_SETLOCALE 1
194
195 /* Define to 1 if you have localeconv */
196 #cmakedefine   HAVE_LOCALECONV 1
197
198 /* Define to 1 if you have strtoll */
199 #cmakedefine   HAVE_STRTOLL 1
200
201 /* Define to 1 if you have strtoull */
202 #cmakedefine   HAVE_STRTOULL 1
203
204 // structs
205 /* Define to 1 if you have struct cmsgred */
206 #cmakedefine    HAVE_CMSGCRED 1
207
208 // system type defines
209 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
210 # define DBUS_WIN
211 # define DBUS_WIN_FIXME 1
212 # ifdef _WIN32_WCE
213 #  define DBUS_WINCE
214 # else
215 #  define DBUS_WIN32
216 # endif
217 #else
218 # define DBUS_UNIX
219 #endif 
220
221 #if defined(_WIN32) || defined(_WIN64)
222 // mingw mode_t
223 # ifdef HAVE_STDIO_H
224 #  include <stdio.h>
225 # endif
226 # ifndef _MSC_VER
227 #  define uid_t int
228 #  define gid_t int
229 # else
230 #  define snprintf _snprintf
231    typedef int mode_t;
232 #  if !defined(_WIN32_WCE)
233 #    define strtoll _strtoi64
234 #    define strtoull _strtoui64
235 #    define HAVE_STRTOLL 1
236 #    define HAVE_STRTOULL 1
237 #  endif
238 # endif
239 #endif  // defined(_WIN32) || defined(_WIN64)
240
241 #ifdef interface
242 #undef interface
243 #endif
244
245 #ifndef SIGHUP
246 #define SIGHUP  1
247 #endif
248
249 #cmakedefine DBUS_VERBOSE_C_S 1
250 #ifdef DBUS_VERBOSE_C_S
251 #define _dbus_verbose_C_S printf
252 #else
253 #define _dbus_verbose_C_S _dbus_verbose
254 #endif 
255
256 #ifdef _MSC_VER
257 #define DBUS_INLINE __inline
258 #else
259 #define DBUS_INLINE inline
260 #endif
261
262 #endif  // _DBUS_CONFIG_H