cmake: do not bind to any particular POSIX C standard
[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_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
19 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
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
34 // test binaries
35 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
36 #define DBUS_EXEEXT "@EXEEXT@"
37
38 /* Full path to test file test/test-exit in builddir */
39 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
40
41 /* Some dbus features */
42 #cmakedefine DBUS_ENABLE_ANSI 1
43 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
44 #cmakedefine DBUS_DISABLE_ASSERT 1
45 #ifndef DBUS_DISABLE_ASSERT
46 #  define DBUS_ENABLE_ASSERT 1
47 #endif
48 #cmakedefine DBUS_DISABLE_CHECKS 1
49 #ifndef DBUS_DISABLE_CHECKS
50 #  define DBUS_ENABLE_CHECKS 1
51 #endif
52 /* xmldocs */
53 /* doxygen */
54 #cmakedefine DBUS_GCOV_ENABLED 1
55
56 /* abstract-sockets */
57
58 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
59
60 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
61
62 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
63 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
64 #endif
65
66 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
67 #undef DBUS_PATH_OR_ABSTRACT_VALUE
68 #endif
69
70 /* selinux */
71 /* kqueue */
72 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
73 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
74
75 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
76 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
77 #if (defined(__i386__) || defined(__x86_64__))
78 # define DBUS_HAVE_ATOMIC_INT 1
79 # define DBUS_USE_ATOMIC_INT_486 1
80 #endif
81
82 #cmakedefine DBUS_BUILD_X11 1
83 /* For the moment, the cmake build system doesn't have an equivalent of
84  * the autoconf build system's --disable-x11-autolaunch */
85 #ifdef DBUS_BUILD_X11
86 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
87 #endif
88
89 #define DBUS_DEFAULT_MESSAGE_UNIX_FDS @DEFAULT_MESSAGE_UNIX_FDS@
90
91 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
92
93 #cmakedefine DBUS_VA_COPY_FUNC
94 #if (defined DBUS_VA_COPY_FUNC)
95 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
96 #endif
97
98 #ifdef DBUS_VA_COPY_FUNC
99 #undef DBUS_VA_COPY_FUNC
100 #endif
101
102 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
103
104 // headers
105 /* Define to 1 if you have dirent.h */
106 #cmakedefine   HAVE_DIRENT_H 1
107
108 /* Define to 1 if you have io.h */
109 #cmakedefine   HAVE_IO_H 1
110
111 /* Define to 1 if you have grp.h */
112 #cmakedefine   HAVE_GRP_H 1
113
114 /* Define to 1 if you have sys/poll.h */
115 #cmakedefine    HAVE_POLL 1
116
117 /* Define to 1 if you have sys/time.h */
118 #cmakedefine    HAVE_SYS_TIME 1
119
120 /* Define to 1 if you have sys/wait.h */
121 #cmakedefine    HAVE_SYS_WAIT 1
122
123 /* Define to 1 if you have time.h */
124 #cmakedefine   HAVE_TIME_H 1
125
126 /* Define to 1 if you have ws2tcpip.h */
127 #cmakedefine   HAVE_WS2TCPIP_H
128
129 /* Define to 1 if you have wspiapi.h */
130 #cmakedefine   HAVE_WSPIAPI_H 1
131
132 /* Define to 1 if you have unistd.h */
133 #cmakedefine   HAVE_UNISTD_H 1
134
135 /* Define to 1 if you have stdio.h */
136 #cmakedefine   HAVE_STDIO_H 1
137
138 /* Define to 1 if you have sys/syslimits.h */
139 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
140
141 /* Define to 1 if you have errno.h */
142 #cmakedefine   HAVE_ERRNO_H 1
143
144 /* Define to 1 if you have signal.h */
145 #cmakedefine   HAVE_SIGNAL_H 1
146
147 /* Define to 1 if you have locale.h */
148 #cmakedefine   HAVE_LOCALE_H 1
149
150 /* Define to 1 if you have inttypes.h */
151 #cmakedefine   HAVE_INTTYPES_H 1
152
153 /* Define to 1 if you have stdint.h */
154 #cmakedefine   HAVE_STDINT_H 1
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 // structs
203 /* Define to 1 if you have struct cmsgred */
204 #cmakedefine    HAVE_CMSGCRED 1
205
206 // system type defines
207 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
208 # define DBUS_WIN
209 # define DBUS_WIN_FIXME 1
210 # ifdef _WIN32_WCE
211 #  define DBUS_WINCE
212 # else
213 #  define DBUS_WIN32
214 # endif
215 #else
216 # define DBUS_UNIX
217 #endif 
218
219 #if defined(_WIN32) || defined(_WIN64)
220 // mingw mode_t
221 # ifdef HAVE_STDIO_H
222 #  include <stdio.h>
223 # endif
224 # ifndef _MSC_VER
225 #  define uid_t int
226 #  define gid_t int
227 # else
228 #  define snprintf _snprintf
229    typedef int mode_t;
230 #  if !defined(_WIN32_WCE)
231 #    define strtoll _strtoi64
232 #    define strtoull _strtoui64
233 #    define HAVE_STRTOLL 1
234 #    define HAVE_STRTOULL 1
235 #  endif
236 # endif
237 #endif  // defined(_WIN32) || defined(_WIN64)
238
239 #ifdef interface
240 #undef interface
241 #endif
242
243 #ifndef SIGHUP
244 #define SIGHUP  1
245 #endif
246
247 #cmakedefine DBUS_VERBOSE_C_S 1
248 #ifdef DBUS_VERBOSE_C_S
249 #define _dbus_verbose_C_S printf
250 #else
251 #define _dbus_verbose_C_S _dbus_verbose
252 #endif 
253
254 # if defined(_MSC_VER) && !defined(inline)
255 #define inline __inline
256 #endif
257
258 #endif  // _DBUS_CONFIG_H