* cmake: added cygwin compile support
[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 // test binaries
23 /* Full path to test file test/test-exit in builddir */
24 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
25 /* Full path to test file test/test-exit in builddir */
26 #define TEST_EXIT_BINARY          "@TEST_EXIT_BINARY@"
27 /* Full path to test file test/test-segfault in builddir */
28 #define TEST_SEGFAULT_BINARY      "@TEST_SEGFAULT_BINARY@"
29 /* Full path to test file test/test-service in builddir */
30 #define TEST_SERVICE_BINARY       "@TEST_SERVICE_BINARY@"
31 /* Full path to test file test/test-shell-service in builddir */
32 #define TEST_SHELL_SERVICE_BINARY "@TEST_SHELL_SERVICE_BINARY@"
33 /* Full path to test file test/test-sleep-forever in builddir */
34 #define TEST_SLEEP_FOREVER_BINARY "@TEST_SLEEP_FOREVER_BINARY@"
35
36 /* Some dbus features */
37 #cmakedefine DBUS_BUILD_TESTS 1
38 #cmakedefine DBUS_ENABLE_ANSI 1
39 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
40 #cmakedefine DBUS_DISABLE_ASSERTS 1
41 #cmakedefine DBUS_DISABLE_CHECKS 1
42 /* xmldocs */
43 /* doxygen */
44 #cmakedefine DBUS_GCOV_ENABLED 1
45 /* abstract-sockets */
46 /* selinux */
47 #cmakedefine DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX 1
48 /* kqueue */
49 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
50 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
51
52 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
53 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
54 #if (defined(__i386__) || defined(__x86_64__))
55 # define DBUS_HAVE_ATOMIC_INT 1
56 # define DBUS_USE_ATOMIC_INT_486 1
57 #endif
58
59 #cmakedefine DBUS_BUILD_X11 1
60
61 #cmakedefine DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
62
63 // headers
64 /* Define to 1 if you have dirent.h */
65 #cmakedefine   HAVE_DIRENT_H 1
66
67 /* Define to 1 if you have io.h */
68 #cmakedefine   HAVE_IO_H 1
69
70 /* Define to 1 if you have grp.h */
71 #cmakedefine   HAVE_GRP_H 1
72
73 /* Define to 1 if you have sys/poll.h */
74 #cmakedefine    HAVE_POLL 1
75
76 /* Define to 1 if you have sys/time.h */
77 #cmakedefine    HAVE_SYS_TIME 1
78
79 /* Define to 1 if you have sys/wait.h */
80 #cmakedefine    HAVE_SYS_WAIT 1
81
82 /* Define to 1 if you have time.h */
83 #cmakedefine   HAVE_TIME_H 1
84
85 /* Define to 1 if you have unistd.h */
86 #cmakedefine   HAVE_UNISTD_H 1
87
88 /* Define to 1 if you have stdio.h */
89 #cmakedefine   HAVE_STDIO_H 1
90
91 /* Define to 1 if you have sys/syslimits.h */
92 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
93
94 // symbols
95 /* Define to 1 if you have backtrace */
96 #cmakedefine   HAVE_BACKTRACE 1
97
98 /* Define to 1 if you have getgrouplist */
99 #cmakedefine   HAVE_GETGROUPLIST 1
100
101 /* Define to 1 if you have getpeerucred */
102 #cmakedefine   HAVE_GETPEERUCRED 1
103
104 /* Define to 1 if you have nanosleep */
105 #cmakedefine   HAVE_NANOSLEEP 1
106
107 /* Define to 1 if you have getpwnam_r */
108 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
109
110 /* Define to 1 if you have socketpair */
111 #cmakedefine   HAVE_SOCKETPAIR 1
112
113 /* Define to 1 if you have setenv */
114 #cmakedefine   HAVE_SETENV 1
115
116 /* Define to 1 if you have unsetenv */
117 #cmakedefine   HAVE_UNSETENV 1
118
119 /* Define to 1 if you have writev */
120 #cmakedefine   HAVE_WRITEV 1
121
122 /* Define to 1 if you have socklen_t */
123 #cmakedefine   HAVE_SOCKLEN_T 1
124
125 // structs
126 /* Define to 1 if you have struct cmsgred */
127 #cmakedefine    HAVE_CMSGCRED 1
128
129 // system type defines
130 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
131 # define DBUS_WIN
132 # define DBUS_WIN_FIXME 1
133 # ifdef _WIN32_WCE
134 #  define DBUS_WINCE
135 # else
136 #  define DBUS_WIN32
137 # endif
138 #else
139 # define DBUS_UNIX
140 #endif 
141
142 #if defined(_WIN32) || defined(_WIN64)
143 // mingw mode_t
144 # ifdef HAVE_STDIO_H
145 #  include <stdio.h>
146 # endif
147 # ifndef _MSC_VER
148 #  define uid_t int
149 #  define gid_t int
150 # else
151 #  define snprintf _snprintf
152 #  define strtoll _strtoi64
153 #  define strtoull _strtoui64
154    typedef int mode_t;
155 # endif
156 # ifdef DBUS_VA_COPY
157 #  undef DBUS_VA_COPY // DBUS_VA_COPY kills mingw's bus-test
158 # endif
159 #endif  // defined(_WIN32) || defined(_WIN64)
160
161 #ifdef interface
162 #undef interface
163 #endif
164
165 #ifndef SIGHUP
166 #define SIGHUP  1
167 #endif
168
169 #cmakedefine DBUS_VERBOSE_C_S 1
170 #ifdef DBUS_VERBOSE_C_S
171 #define _dbus_verbose_C_S printf
172 #else
173 #define _dbus_verbose_C_S _dbus_verbose
174 #endif 
175
176 #endif  // _DBUS_CONFIG_H