Merge branch 'dbus-1.4' of ssh://git.freedesktop.org/git/dbus/dbus into dbus-1.4
[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 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
37 #define DBUS_EXEEXT "@EXEEXT@"
38
39 /* Full path to test file test/test-exit in builddir */
40 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
41
42 /* Some dbus features */
43 #cmakedefine DBUS_BUILD_TESTS 1
44 #cmakedefine DBUS_ENABLE_ANSI 1
45 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
46 #cmakedefine DBUS_DISABLE_ASSERTS 1
47 #cmakedefine DBUS_DISABLE_CHECKS 1
48 /* xmldocs */
49 /* doxygen */
50 #cmakedefine DBUS_GCOV_ENABLED 1
51
52 /* abstract-sockets */
53
54 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
55
56 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
57
58 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
59 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
60 #endif
61
62 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
63 #undef DBUS_PATH_OR_ABSTRACT_VALUE
64 #endif
65
66 /* selinux */
67 #cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
68 /* kqueue */
69 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
70 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
71
72 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
73 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
74 #if (defined(__i386__) || defined(__x86_64__))
75 # define DBUS_HAVE_ATOMIC_INT 1
76 # define DBUS_USE_ATOMIC_INT_486 1
77 #endif
78
79 #cmakedefine DBUS_BUILD_X11 1
80 /* For the moment, the cmake build system doesn't have an equivalent of
81  * the autoconf build system's --disable-x11-autolaunch */
82 #ifdef DBUS_BUILD_X11
83 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
84 #endif
85
86 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
87
88 #cmakedefine DBUS_VA_COPY_FUNC
89 #if (defined DBUS_VA_COPY_FUNC)
90 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
91 #endif
92
93 #ifdef DBUS_VA_COPY_FUNC
94 #undef DBUS_VA_COPY_FUNC
95 #endif
96
97 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
98
99 // headers
100 /* Define to 1 if you have dirent.h */
101 #cmakedefine   HAVE_DIRENT_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 grp.h */
107 #cmakedefine   HAVE_GRP_H 1
108
109 /* Define to 1 if you have sys/poll.h */
110 #cmakedefine    HAVE_POLL 1
111
112 /* Define to 1 if you have sys/time.h */
113 #cmakedefine    HAVE_SYS_TIME 1
114
115 /* Define to 1 if you have sys/wait.h */
116 #cmakedefine    HAVE_SYS_WAIT 1
117
118 /* Define to 1 if you have time.h */
119 #cmakedefine   HAVE_TIME_H 1
120
121 /* Define to 1 if you have ws2tcpip.h */
122 #cmakedefine   HAVE_WS2TCPIP_H
123
124 /* Define to 1 if you have wspiapi.h */
125 #cmakedefine   HAVE_WSPIAPI_H 1
126
127 /* Define to 1 if you have unistd.h */
128 #cmakedefine   HAVE_UNISTD_H 1
129
130 /* Define to 1 if you have stdio.h */
131 #cmakedefine   HAVE_STDIO_H 1
132
133 /* Define to 1 if you have sys/syslimits.h */
134 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
135
136 /* Define to 1 if you have errno.h */
137 #cmakedefine   HAVE_ERRNO_H 1
138
139 /* Define to 1 if you have signal.h */
140 #cmakedefine   HAVE_SIGNAL_H 1
141
142 /* Define to 1 if you have locale.h */
143 #cmakedefine   HAVE_LOCALE_H 1
144
145 /* Define to 1 if you have inttypes.h */
146 #cmakedefine   HAVE_INTTYPES_H 1
147
148 /* Define to 1 if you have stdint.h */
149 #cmakedefine   HAVE_STDINT_H 1
150
151 // symbols
152 /* Define to 1 if you have backtrace */
153 #cmakedefine   HAVE_BACKTRACE 1
154
155 /* Define to 1 if you have getgrouplist */
156 #cmakedefine   HAVE_GETGROUPLIST 1
157
158 /* Define to 1 if you have getpeerucred */
159 #cmakedefine   HAVE_GETPEERUCRED 1
160
161 /* Define to 1 if you have nanosleep */
162 #cmakedefine   HAVE_NANOSLEEP 1
163
164 /* Define to 1 if you have getpwnam_r */
165 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
166
167 /* Define to 1 if you have socketpair */
168 #cmakedefine   HAVE_SOCKETPAIR 1
169
170 /* Define to 1 if you have setenv */
171 #cmakedefine   HAVE_SETENV 1
172
173 /* Define to 1 if you have unsetenv */
174 #cmakedefine   HAVE_UNSETENV 1
175
176 /* Define to 1 if you have clearenv */
177 #cmakedefine   HAVE_CLEARENV 1
178
179 /* Define to 1 if you have writev */
180 #cmakedefine   HAVE_WRITEV 1
181
182 /* Define to 1 if you have socklen_t */
183 #cmakedefine   HAVE_SOCKLEN_T 1
184
185 /* Define to 1 if you have setlocale */
186 #cmakedefine   HAVE_SETLOCALE 1
187
188 /* Define to 1 if you have localeconv */
189 #cmakedefine   HAVE_LOCALECONV 1
190
191 /* Define to 1 if you have strtoll */
192 #cmakedefine   HAVE_STRTOLL 1
193
194 /* Define to 1 if you have strtoull */
195 #cmakedefine   HAVE_STRTOULL 1
196
197 // structs
198 /* Define to 1 if you have struct cmsgred */
199 #cmakedefine    HAVE_CMSGCRED 1
200
201 // system type defines
202 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
203 # define DBUS_WIN
204 # define DBUS_WIN_FIXME 1
205 # ifdef _WIN32_WCE
206 #  define DBUS_WINCE
207 # else
208 #  define DBUS_WIN32
209 # endif
210 #else
211 # define DBUS_UNIX
212 #endif 
213
214 #if defined(_WIN32) || defined(_WIN64)
215 // mingw mode_t
216 # ifdef HAVE_STDIO_H
217 #  include <stdio.h>
218 # endif
219 # ifndef _MSC_VER
220 #  define uid_t int
221 #  define gid_t int
222 # else
223 #  define snprintf _snprintf
224    typedef int mode_t;
225 #  if !defined(_WIN32_WCE)
226 #    define strtoll _strtoi64
227 #    define strtoull _strtoui64
228 #    define HAVE_STRTOLL 1
229 #    define HAVE_STRTOULL 1
230 #  endif
231 # endif
232 #endif  // defined(_WIN32) || defined(_WIN64)
233
234 #ifdef interface
235 #undef interface
236 #endif
237
238 #ifndef SIGHUP
239 #define SIGHUP  1
240 #endif
241
242 #cmakedefine DBUS_VERBOSE_C_S 1
243 #ifdef DBUS_VERBOSE_C_S
244 #define _dbus_verbose_C_S printf
245 #else
246 #define _dbus_verbose_C_S _dbus_verbose
247 #endif 
248
249 # if defined(_MSC_VER) && !defined(inline)
250 #define inline __inline
251 #endif
252
253 #endif  // _DBUS_CONFIG_H