merge changes done to the cmake-buildsystem from the sf.net windbus-svn trunk. tested...
[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
7 #cmakedefine HAVE_GNUC_VARARGS 1
8
9 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
10 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
11 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
12 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
13 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
14 #cmakedefine DAEMON_NAME "@DAEMON_NAME@"
15 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
16 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
17 //#cmakedefine DBUS_SESSION_BUS_DEFAULT_ADDRESS "@DBUS_SESSION_BUS_DEFAULT_ADDRESS@"
18 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
19 #cmakedefine PACKAGE "@PACKAGE@"
20 /* Version number of package */
21 #cmakedefine VERSION "@VERSION@"
22 #cmakedefine DBUS_MAJOR_VERSION ${VERSION_MAJOR}
23 #cmakedefine DBUS_MINOR_VERSION ${VERSION_MINOR}
24 #cmakedefine DBUS_MICRO_VERSION ${VERSION_RELEASE}
25 #cmakedefine DBUS_VERSION ((@VERSION_MAJOR@ << 16) | (@VERSION_MINOR@ << 8) | (@VERSION_RELEASE@))
26 #cmakedefine DBUS_VERSION_STRING "@VERSION@"
27
28 // test binaries
29 /* Full path to test file test/test-exit in builddir */
30 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
31 /* Full path to test file test/test-exit in builddir */
32 #define TEST_EXIT_BINARY          "@TEST_EXIT_BINARY@"
33 /* Full path to test file test/test-segfault in builddir */
34 #define TEST_SEGFAULT_BINARY      "@TEST_SEGFAULT_BINARY@"
35 /* Full path to test file test/test-service in builddir */
36 #define TEST_SERVICE_BINARY       "@TEST_SERVICE_BINARY@"
37 /* Full path to test file test/test-shell-service in builddir */
38 #define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@"
39 /* Full path to test file test/test-sleep-forever in builddir */
40 #define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_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 /* abstract-sockets */
52 /* selinux */
53 #cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
54 /* kqueue */
55 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
56 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
57
58 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
59 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
60 #if (defined(__i386__) || defined(__x86_64__))
61 # define DBUS_HAVE_ATOMIC_INT 1
62 # define DBUS_USE_ATOMIC_INT_486 1
63 #endif
64
65 #cmakedefine DBUS_BUILD_X11 1
66
67 #cmakedefine DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
68
69 // headers
70 /* Define to 1 if you have dirent.h */
71 #cmakedefine   HAVE_DIRENT_H 1
72
73 /* Define to 1 if you have io.h */
74 #cmakedefine   HAVE_IO_H 1
75
76 /* Define to 1 if you have grp.h */
77 #cmakedefine   HAVE_GRP_H 1
78
79 /* Define to 1 if you have sys/poll.h */
80 #cmakedefine    HAVE_POLL 1
81
82 /* Define to 1 if you have sys/time.h */
83 #cmakedefine    HAVE_SYS_TIME 1
84
85 /* Define to 1 if you have sys/wait.h */
86 #cmakedefine    HAVE_SYS_WAIT 1
87
88 /* Define to 1 if you have time.h */
89 #cmakedefine   HAVE_TIME_H 1
90
91 /* Define to 1 if you have wspiapi.h */
92 #cmakedefine   HAVE_WSPIAPI_H 1
93
94 /* Define to 1 if you have unistd.h */
95 #cmakedefine   HAVE_UNISTD_H 1
96
97 /* Define to 1 if you have errno.h */
98 #cmakedefine   HAVE_ERRNO_H 1
99
100 /* Define to 1 if you have stdio.h */
101 #cmakedefine   HAVE_STDIO_H 1
102
103 /* Define to 1 if you have sys/syslimits.h */
104 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
105
106 // symbols
107 /* Define to 1 if you have backtrace */
108 #cmakedefine   HAVE_BACKTRACE 1
109
110 /* Define to 1 if you have getgrouplist */
111 #cmakedefine   HAVE_GETGROUPLIST 1
112
113 /* Define to 1 if you have getpeerucred */
114 #cmakedefine   HAVE_GETPEERUCRED 1
115
116 /* Define to 1 if you have nanosleep */
117 #cmakedefine   HAVE_NANOSLEEP 1
118
119 /* Define to 1 if you have getpwnam_r */
120 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
121
122 /* Define to 1 if you have socketpair */
123 #cmakedefine   HAVE_SOCKETPAIR 1
124
125 /* Define to 1 if you have setenv */
126 #cmakedefine   HAVE_SETENV 1
127
128 /* Define to 1 if you have unsetenv */
129 #cmakedefine   HAVE_UNSETENV 1
130
131 /* Define to 1 if you have writev */
132 #cmakedefine   HAVE_WRITEV 1
133
134 /* Define to 1 if you have socklen_t */
135 #cmakedefine   HAVE_SOCKLEN_T 1
136
137 // structs
138 /* Define to 1 if you have struct cmsgred */
139 #cmakedefine    HAVE_CMSGCRED 1
140
141 // system type defines
142 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
143 # define DBUS_WIN
144 # define DBUS_WIN_FIXME 1
145 # ifdef _WIN32_WCE
146 #  define DBUS_WINCE
147 # else
148 #  define DBUS_WIN32
149 # endif
150 #else
151 # define DBUS_UNIX
152 #endif 
153
154 #if defined(_WIN32) || defined(_WIN64)
155 // mingw mode_t
156 # ifdef HAVE_STDIO_H
157 #  include <stdio.h>
158 # endif
159 # ifndef _MSC_VER
160 #  define uid_t int
161 #  define gid_t int
162 # else
163 #  define snprintf _snprintf
164 #  define strtoll _strtoi64
165 #  define strtoull _strtoui64
166    typedef int mode_t;
167 # endif
168 # ifdef DBUS_VA_COPY
169 #  undef DBUS_VA_COPY // DBUS_VA_COPY kills mingw's bus-test
170 # endif
171 #endif  // defined(_WIN32) || defined(_WIN64)
172
173 #ifdef interface
174 #undef interface
175 #endif
176
177 #ifndef SIGHUP
178 #define SIGHUP  1
179 #endif
180
181 #cmakedefine DBUS_VERBOSE_C_S 1
182 #ifdef DBUS_VERBOSE_C_S
183 #define _dbus_verbose_C_S printf
184 #else
185 #define _dbus_verbose_C_S _dbus_verbose
186 #endif 
187
188 #endif  // _DBUS_CONFIG_H