bus: Assign a serial number for messages from the driver
[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 @AUTOPACKAGE_CONFIG_H_TEMPLATE@
10
11 /*
12  * Variables defined by AC_DEFINE in ../configure.ac
13  * should be placed in this file
14 */
15 #cmakedefine HAVE_GNUC_VARARGS 1
16
17 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
18 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
19 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
20 #cmakedefine DBUS_PREFIX "@DBUS_PREFIX@"
21 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
22 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
23 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
24 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
25 #cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
26 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
27 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
28 #cmakedefine DBUS_RUNSTATEDIR "@DBUS_RUNSTATEDIR@"
29
30 #cmakedefine DBUS_ENABLE_STATS
31
32 #define TEST_LISTEN       "@TEST_LISTEN@"
33
34 // test binaries
35 #define DBUS_EXEEXT "@EXEEXT@"
36
37 /* Some dbus features */
38 #cmakedefine DBUS_ENABLE_ANSI 1
39 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
40 #cmakedefine DBUS_DISABLE_ASSERT 1
41 #ifndef DBUS_DISABLE_ASSERT
42 #  define DBUS_ENABLE_ASSERT 1
43 #endif
44 #cmakedefine DBUS_DISABLE_CHECKS 1
45 #ifndef DBUS_DISABLE_CHECKS
46 #  define DBUS_ENABLE_CHECKS 1
47 #endif
48 /* xmldocs */
49 /* doxygen */
50 #cmakedefine DBUS_GCOV_ENABLED 1
51
52 /* selinux */
53 /* kqueue */
54 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
55 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
56
57 #cmakedefine DBUS_BUILD_X11 1
58 /* For the moment, the cmake build system doesn't have an equivalent of
59  * the autoconf build system's --disable-x11-autolaunch */
60 #ifdef DBUS_BUILD_X11
61 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
62 #endif
63
64 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
65
66 #cmakedefine DBUS_VA_COPY_FUNC
67 #if (defined DBUS_VA_COPY_FUNC)
68 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
69 #endif
70
71 #ifdef DBUS_VA_COPY_FUNC
72 #undef DBUS_VA_COPY_FUNC
73 #endif
74
75 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
76
77 #cmakedefine DBUS_WITH_GLIB 1
78 #cmakedefine GLIB_VERSION_MIN_REQUIRED @GLIB_VERSION_MIN_REQUIRED@
79 #cmakedefine GLIB_VERSION_MAX_ALLOWED  @GLIB_VERSION_MAX_ALLOWED@
80
81 // headers
82 #cmakedefine HAVE_ALLOCA_H
83 #cmakedefine HAVE_BYTESWAP_H
84 #cmakedefine HAVE_CRT_EXTERNS_H
85
86 /* Define to 1 if you have dirent.h */
87 #cmakedefine   HAVE_DIRENT_H 1
88
89 #cmakedefine HAVE_DLFCN_H
90
91 /* Define to 1 if you have errno.h */
92 #cmakedefine   HAVE_ERRNO_H 1
93
94 #cmakedefine HAVE_EXECINFO_H
95 #cmakedefine HAVE_EXPAT_H
96
97 /* Define to 1 if you have grp.h */
98 #cmakedefine   HAVE_GRP_H 1
99
100 /* Define to 1 if you have inttypes.h */
101 #cmakedefine   HAVE_INTTYPES_H 1
102
103 /* Define to 1 if you have io.h */
104 #cmakedefine   HAVE_IO_H 1
105
106 /* Define to 1 if you have locale.h */
107 #cmakedefine   HAVE_LOCALE_H 1
108
109 #cmakedefine HAVE_MEMORY_H
110
111 /* Define to 1 if you have sys/poll.h */
112 #cmakedefine    HAVE_POLL 1
113
114 /* Define to 1 if you have signal.h */
115 #cmakedefine   HAVE_SIGNAL_H 1
116
117 /* Define to 1 if you have stdint.h */
118 #cmakedefine   HAVE_STDINT_H 1
119
120 #cmakedefine HAVE_STDLIB_H
121
122 /* Define to 1 if you have stdio.h */
123 #cmakedefine   HAVE_STDIO_H 1
124
125 #cmakedefine HAVE_STRINGS_H
126 #cmakedefine HAVE_STRING_H
127 #cmakedefine HAVE_SYSLOG_H
128 #cmakedefine HAVE_SYS_EVENTS_H
129 #cmakedefine HAVE_SYS_INOTIFY_H
130 #cmakedefine HAVE_SYS_PRCTL_H
131 #cmakedefine HAVE_SYS_RESOURCE_H
132 #cmakedefine HAVE_SYS_STAT_H
133
134 /* Define to 1 if you have sys/syslimits.h */
135 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
136
137 /* Define to 1 if you have sys/time.h */
138 #cmakedefine    HAVE_SYS_TIME_H 1
139
140 #cmakedefine HAVE_SYS_TYPES_H
141
142 #cmakedefine HAVE_SYS_UIO_H
143
144 /* Define to 1 if you have sys/wait.h */
145 #cmakedefine    HAVE_SYS_WAIT_H 1
146
147 /* Define to 1 if you have time.h */
148 #cmakedefine   HAVE_TIME_H 1
149
150 /* Define to 1 if you have unistd.h */
151 #cmakedefine   HAVE_UNISTD_H 1
152
153 /* Define to 1 if you have ws2tcpip.h */
154 #cmakedefine   HAVE_WS2TCPIP_H
155
156 // symbols
157 /* Define to 1 if you have backtrace */
158 #cmakedefine   HAVE_BACKTRACE 1
159
160 /* Define to 1 if you have getgrouplist */
161 #cmakedefine   HAVE_GETGROUPLIST 1
162
163 /* Define to 1 if you have getpeerucred */
164 #cmakedefine   HAVE_GETPEERUCRED 1
165
166 /* Define to 1 if you have nanosleep */
167 #cmakedefine   HAVE_NANOSLEEP 1
168
169 /* Define to 1 if you have getpwnam_r */
170 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
171
172 /* Define to 1 if you have socketpair */
173 #cmakedefine   HAVE_SOCKETPAIR 1
174
175 /* Define to 1 if you have setenv */
176 #cmakedefine   HAVE_SETENV 1
177
178 /* Define to 1 if you have unsetenv */
179 #cmakedefine   HAVE_UNSETENV 1
180
181 /* Define to 1 if you have clearenv */
182 #cmakedefine   HAVE_CLEARENV 1
183
184 /* Define to 1 if you have writev */
185 #cmakedefine   HAVE_WRITEV 1
186
187 /* Define to 1 if you have socklen_t */
188 #cmakedefine   HAVE_SOCKLEN_T 1
189
190 /* Define to 1 if you have setlocale */
191 #cmakedefine   HAVE_SETLOCALE 1
192
193 /* Define to 1 if you have localeconv */
194 #cmakedefine   HAVE_LOCALECONV 1
195
196 /* Define to 1 if you have strtoll */
197 #cmakedefine   HAVE_STRTOLL 1
198
199 /* Define to 1 if you have strtoull */
200 #cmakedefine   HAVE_STRTOULL 1
201
202 /* Define to 1 if you have pip2 */
203 #cmakedefine   HAVE_PIPE2
204
205 #cmakedefine HAVE_ACCEPT4 1
206 #cmakedefine HAVE_DIRFD 1
207 #cmakedefine HAVE_INOTIFY_INIT1 1
208 #cmakedefine HAVE_GETRLIMIT 1
209 #cmakedefine HAVE_PRLIMIT 1
210 #cmakedefine HAVE_SETRLIMIT 1
211 #cmakedefine HAVE_UNIX_FD_PASSING 1
212
213 // structs
214 /* Define to 1 if you have struct cmsgred */
215 #cmakedefine    HAVE_CMSGCRED 1
216
217 #cmakedefine FD_SETSIZE @FD_SETSIZE@
218
219 #cmakedefine DBUS_USER "@DBUS_USER@"
220 #cmakedefine DBUS_TEST_USER "@DBUS_TEST_USER@"
221
222 // system type defines
223 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
224 # define DBUS_WIN
225 # define DBUS_WIN_FIXME 1
226 # ifdef _WIN32_WCE
227 #  define DBUS_WINCE
228 # else
229 #  define DBUS_WIN32
230 # endif
231 #else
232 # define DBUS_UNIX
233 #endif 
234
235 #if defined(_WIN32) || defined(_WIN64)
236 // mingw mode_t
237 # ifdef HAVE_STDIO_H
238 #  include <stdio.h>
239 # endif
240 # ifndef _MSC_VER
241 #  define uid_t int
242 #  define gid_t int
243 # else
244 #  define snprintf _snprintf
245    typedef int mode_t;
246 #  if !defined(_WIN32_WCE)
247 #    define strtoll _strtoi64
248 #    define strtoull _strtoui64
249 #    define HAVE_STRTOLL 1
250 #    define HAVE_STRTOULL 1
251 #  endif
252 # endif
253 #endif  // defined(_WIN32) || defined(_WIN64)
254
255 #ifdef interface
256 #undef interface
257 #endif
258
259 #ifndef SIGHUP
260 #define SIGHUP  1
261 #endif
262
263 #cmakedefine DBUS_VERBOSE_C_S 1
264 #ifdef DBUS_VERBOSE_C_S
265 #define _dbus_verbose_C_S printf
266 #else
267 #define _dbus_verbose_C_S _dbus_verbose
268 #endif 
269
270 # if defined(_MSC_VER) && !defined(inline)
271 #define inline __inline
272 #endif
273
274 #ifdef DBUS_WIN
275 #define FD_SETSIZE @FD_SETSIZE@
276 #endif
277
278 #endif  // _DBUS_CONFIG_H