blob: 9083eb4b73e2c29eb31700ddd54fd3da114ee45c [file] [log] [blame]
Ralf Habacker36ebfd42007-03-03 14:32:17 +00001/* config.h. Generated by cmake from config.h.cmake */
2
3#ifndef _DBUS_CONFIG_H
4#define _DBUS_CONFIG_H
5/****************************/
Ralf Habacker9ba15172010-04-11 01:34:20 +02006/* indicate that we are building with cmake */
7#define DBUS_CMAKE 1
Ralf Habacker36ebfd42007-03-03 14:32:17 +00008
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@"
Romain Pokrzywka27a46ea2010-02-05 09:54:16 +010016#cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
Ralf Habacker36ebfd42007-03-03 14:32:17 +000017#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@"
Ralf Habackerdee80a22007-06-03 14:15:57 +000020#cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
Ralf Habacker36ebfd42007-03-03 14:32:17 +000021#cmakedefine PACKAGE "@PACKAGE@"
22/* Version number of package */
Ralf Habacker492e0ae2009-12-07 00:49:42 +010023#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@"
Christian Ehrlicher46684802009-04-24 11:36:50 +020028
Ralf Habackerb43d3422010-02-03 14:14:03 +010029#define VERSION DBUS_VERSION_STRING
30
Ralf Habacker0ed7d772010-04-09 23:34:28 +020031#define TEST_LISTEN "@TEST_LISTEN@"
32#define TEST_CONNECTION "@TEST_CONNECTION@"
33
Ralf Habacker36ebfd42007-03-03 14:32:17 +000034// test binaries
35/* Full path to test file test/test-exit in builddir */
Ralf Habackerdee80a22007-06-03 14:15:57 +000036#define TEST_BUS_BINARY "@TEST_BUS_BINARY@"
37/* Full path to test file test/test-exit in builddir */
Ralf Habacker36ebfd42007-03-03 14:32:17 +000038#define TEST_EXIT_BINARY "@TEST_EXIT_BINARY@"
39/* Full path to test file test/test-segfault in builddir */
40#define TEST_SEGFAULT_BINARY "@TEST_SEGFAULT_BINARY@"
41/* Full path to test file test/test-service in builddir */
42#define TEST_SERVICE_BINARY "@TEST_SERVICE_BINARY@"
43/* Full path to test file test/test-shell-service in builddir */
44#define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@"
45/* Full path to test file test/test-sleep-forever in builddir */
46#define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_BINARY@"
47
48/* Some dbus features */
49#cmakedefine DBUS_BUILD_TESTS 1
50#cmakedefine DBUS_ENABLE_ANSI 1
51#cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
52#cmakedefine DBUS_DISABLE_ASSERTS 1
53#cmakedefine DBUS_DISABLE_CHECKS 1
54/* xmldocs */
55/* doxygen */
56#cmakedefine DBUS_GCOV_ENABLED 1
Frank Osterfeld2feb3e22009-04-22 11:49:58 +020057
Ralf Habacker36ebfd42007-03-03 14:32:17 +000058/* abstract-sockets */
Frank Osterfeld2feb3e22009-04-22 11:49:58 +020059
60#cmakedefine HAVE_ABSTRACT_SOCKETS 1
61
62#cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
63
64#if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
65#define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
66#endif
67
68#ifdef DBUS_PATH_OR_ABSTRACT_VALUE
69#undef DBUS_PATH_OR_ABSTRACT_VALUE
70#endif
71
Ralf Habacker36ebfd42007-03-03 14:32:17 +000072/* selinux */
73#cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
74/* kqueue */
75#cmakedefine HAVE_CONSOLE_OWNER_FILE 1
76#define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
77
78#cmakedefine DBUS_HAVE_ATOMIC_INT 1
79#cmakedefine DBUS_USE_ATOMIC_INT_486 1
80#if (defined(__i386__) || defined(__x86_64__))
81# define DBUS_HAVE_ATOMIC_INT 1
82# define DBUS_USE_ATOMIC_INT_486 1
83#endif
84
85#cmakedefine DBUS_BUILD_X11 1
86
Frank Osterfeld48065042009-07-24 10:39:54 +010087#define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
88
Frank Osterfeldff92d152009-04-28 17:10:46 +020089#cmakedefine DBUS_VA_COPY_FUNC
90#if (defined DBUS_VA_COPY_FUNC)
91# define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
92#endif
93
Frank Osterfeld2feb3e22009-04-22 11:49:58 +020094#ifdef DBUS_VA_COPY_FUNC
95#undef DBUS_VA_COPY_FUNC
96#endif
97
Ralf Habacker8ab7f052009-11-30 16:01:19 +010098#cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
Ralf Habacker36ebfd42007-03-03 14:32:17 +000099
100// headers
101/* Define to 1 if you have dirent.h */
102#cmakedefine HAVE_DIRENT_H 1
103
104/* Define to 1 if you have io.h */
105#cmakedefine HAVE_IO_H 1
106
107/* Define to 1 if you have grp.h */
108#cmakedefine HAVE_GRP_H 1
109
110/* Define to 1 if you have sys/poll.h */
111#cmakedefine HAVE_POLL 1
112
113/* Define to 1 if you have sys/time.h */
114#cmakedefine HAVE_SYS_TIME 1
115
116/* Define to 1 if you have sys/wait.h */
117#cmakedefine HAVE_SYS_WAIT 1
118
119/* Define to 1 if you have time.h */
120#cmakedefine HAVE_TIME_H 1
121
Christian Ehrlicher452ff682008-05-09 16:17:13 +0000122/* Define to 1 if you have wspiapi.h */
123#cmakedefine HAVE_WSPIAPI_H 1
124
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000125/* Define to 1 if you have unistd.h */
126#cmakedefine HAVE_UNISTD_H 1
127
128/* Define to 1 if you have stdio.h */
129#cmakedefine HAVE_STDIO_H 1
130
Ralf Habackerdee80a22007-06-03 14:15:57 +0000131/* Define to 1 if you have sys/syslimits.h */
132#cmakedefine HAVE_SYS_SYSLIMITS_H 1
133
Ralf Habackera8dad422010-03-22 15:49:30 +0100134/* Define to 1 if you have errno.h */
135#cmakedefine HAVE_ERRNO_H 1
136
137/* Define to 1 if you have signal.h */
138#cmakedefine HAVE_SIGNAL_H 1
139
140/* Define to 1 if you have locale.h */
141#cmakedefine HAVE_LOCALE_H 1
142
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000143// symbols
144/* Define to 1 if you have backtrace */
145#cmakedefine HAVE_BACKTRACE 1
146
147/* Define to 1 if you have getgrouplist */
148#cmakedefine HAVE_GETGROUPLIST 1
149
150/* Define to 1 if you have getpeerucred */
151#cmakedefine HAVE_GETPEERUCRED 1
152
153/* Define to 1 if you have nanosleep */
154#cmakedefine HAVE_NANOSLEEP 1
155
156/* Define to 1 if you have getpwnam_r */
157#cmakedefine HAVE_POSIX_GETPWNAM_R 1
158
159/* Define to 1 if you have socketpair */
160#cmakedefine HAVE_SOCKETPAIR 1
161
162/* Define to 1 if you have setenv */
163#cmakedefine HAVE_SETENV 1
164
165/* Define to 1 if you have unsetenv */
166#cmakedefine HAVE_UNSETENV 1
167
Romain Pokrzywka9e034bd2010-04-13 16:16:27 +0200168/* Define to 1 if you have clearenv */
169#cmakedefine HAVE_CLEARENV 1
170
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000171/* Define to 1 if you have writev */
172#cmakedefine HAVE_WRITEV 1
173
Ralf Habackerdee80a22007-06-03 14:15:57 +0000174/* Define to 1 if you have socklen_t */
175#cmakedefine HAVE_SOCKLEN_T 1
176
Romain Pokrzywka9e034bd2010-04-13 16:16:27 +0200177/* Define to 1 if you have setlocale */
178#cmakedefine HAVE_SETLOCALE 1
179
180/* Define to 1 if you have localeconv */
181#cmakedefine HAVE_LOCALECONV 1
182
183/* Define to 1 if you have strtoll */
184#cmakedefine HAVE_STRTOLL 1
185
186/* Define to 1 if you have strtoull */
187#cmakedefine HAVE_STRTOULL 1
188
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000189// structs
190/* Define to 1 if you have struct cmsgred */
191#cmakedefine HAVE_CMSGCRED 1
192
Ralf Habackerd38034c2007-03-08 20:10:09 +0000193// system type defines
Ralf Habackerd6387f42007-03-14 18:01:01 +0000194#if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000195# define DBUS_WIN
196# define DBUS_WIN_FIXME 1
Ralf Habackerd6387f42007-03-14 18:01:01 +0000197# ifdef _WIN32_WCE
198# define DBUS_WINCE
199# else
200# define DBUS_WIN32
201# endif
202#else
203# define DBUS_UNIX
204#endif
Ralf Habackerd38034c2007-03-08 20:10:09 +0000205
206#if defined(_WIN32) || defined(_WIN64)
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000207// mingw mode_t
208# ifdef HAVE_STDIO_H
209# include <stdio.h>
210# endif
211# ifndef _MSC_VER
212# define uid_t int
213# define gid_t int
214# else
215# define snprintf _snprintf
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000216 typedef int mode_t;
Romain Pokrzywka9e034bd2010-04-13 16:16:27 +0200217# if !defined(_WIN32_WCE)
218# define strtoll _strtoi64
219# define strtoull _strtoui64
220# define HAVE_STRTOLL 1
221# define HAVE_STRTOULL 1
222# endif
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000223# endif
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000224#endif // defined(_WIN32) || defined(_WIN64)
225
Ralf Habacker36ebfd42007-03-03 14:32:17 +0000226#ifdef interface
227#undef interface
228#endif
229
230#ifndef SIGHUP
231#define SIGHUP 1
232#endif
233
234#cmakedefine DBUS_VERBOSE_C_S 1
235#ifdef DBUS_VERBOSE_C_S
236#define _dbus_verbose_C_S printf
237#else
238#define _dbus_verbose_C_S _dbus_verbose
239#endif
240
241#endif // _DBUS_CONFIG_H