config.h.cmake 6.47 KB
Newer Older
1 2 3 4 5
/* config.h. Generated by cmake from config.h.cmake */

#ifndef _DBUS_CONFIG_H
#define _DBUS_CONFIG_H
/****************************/
6 7
/* indicate that we are building with cmake */
#define DBUS_CMAKE 1
8

9 10 11 12 13 14
@AUTOPACKAGE_CONFIG_H_TEMPLATE@

/*
 * Variables defined by AC_DEFINE in ../configure.ac
 * should be placed in this file
*/
15 16 17 18 19
#cmakedefine HAVE_GNUC_VARARGS 1

#cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
#cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
#cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
20
#cmakedefine DBUS_PREFIX "@DBUS_PREFIX@"
21 22
#cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
#cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
23
#cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
24
#cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
25
#cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
26
#cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
27
#cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
28
#cmakedefine DBUS_RUNSTATEDIR "@DBUS_RUNSTATEDIR@"
29

30
#cmakedefine DBUS_ENABLE_STATS
31
#cmakedefine DBUS_ENABLE_CONTAINERS
32

33 34
#define TEST_LISTEN       "@TEST_LISTEN@"

35
// test binaries
36 37
#define DBUS_EXEEXT "@EXEEXT@"

38 39 40
/* Some dbus features */
#cmakedefine DBUS_ENABLE_ANSI 1
#cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
41
#cmakedefine DBUS_DISABLE_ASSERT 1
42 43 44
#ifndef DBUS_DISABLE_ASSERT
#  define DBUS_ENABLE_ASSERT 1
#endif
45
#cmakedefine DBUS_DISABLE_CHECKS 1
46 47 48
#ifndef DBUS_DISABLE_CHECKS
#  define DBUS_ENABLE_CHECKS 1
#endif
49 50 51
/* xmldocs */
/* doxygen */
#cmakedefine DBUS_GCOV_ENABLED 1
52

53 54 55 56 57 58
/* selinux */
/* kqueue */
#cmakedefine HAVE_CONSOLE_OWNER_FILE 1
#define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"

#cmakedefine DBUS_BUILD_X11 1
59 60 61 62 63
/* For the moment, the cmake build system doesn't have an equivalent of
 * the autoconf build system's --disable-x11-autolaunch */
#ifdef DBUS_BUILD_X11
# define DBUS_ENABLE_X11_AUTOLAUNCH 1
#endif
64

65 66
#define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }

67 68 69 70 71
#cmakedefine DBUS_VA_COPY_FUNC
#if (defined DBUS_VA_COPY_FUNC)
# define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
#endif

72 73 74 75
#ifdef DBUS_VA_COPY_FUNC
#undef DBUS_VA_COPY_FUNC
#endif

Ralf Habacker's avatar
Ralf Habacker committed
76
#cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
77

78 79 80 81
#cmakedefine DBUS_WITH_GLIB 1
#cmakedefine GLIB_VERSION_MIN_REQUIRED @GLIB_VERSION_MIN_REQUIRED@
#cmakedefine GLIB_VERSION_MAX_ALLOWED  @GLIB_VERSION_MAX_ALLOWED@

82
// headers
83 84 85 86
#cmakedefine HAVE_ALLOCA_H
#cmakedefine HAVE_BYTESWAP_H
#cmakedefine HAVE_CRT_EXTERNS_H

87 88 89
/* Define to 1 if you have dirent.h */
#cmakedefine   HAVE_DIRENT_H 1

90 91 92 93 94 95 96
#cmakedefine HAVE_DLFCN_H

/* Define to 1 if you have errno.h */
#cmakedefine   HAVE_ERRNO_H 1

#cmakedefine HAVE_EXECINFO_H
#cmakedefine HAVE_EXPAT_H
97 98 99 100

/* Define to 1 if you have grp.h */
#cmakedefine   HAVE_GRP_H 1

101 102
/* Define to 1 if you have inttypes.h */
#cmakedefine   HAVE_INTTYPES_H 1
103

104 105
/* Define to 1 if you have io.h */
#cmakedefine   HAVE_IO_H 1
106

107 108
/* Define to 1 if you have locale.h */
#cmakedefine   HAVE_LOCALE_H 1
109

110
#cmakedefine HAVE_MEMORY_H
111

112 113
/* Define to 1 if you have sys/poll.h */
#cmakedefine    HAVE_POLL 1
114

115 116 117 118 119 120 121
/* Define to 1 if you have signal.h */
#cmakedefine   HAVE_SIGNAL_H 1

/* Define to 1 if you have stdint.h */
#cmakedefine   HAVE_STDINT_H 1

#cmakedefine HAVE_STDLIB_H
122 123 124 125

/* Define to 1 if you have stdio.h */
#cmakedefine   HAVE_STDIO_H 1

126 127 128 129 130 131 132 133 134
#cmakedefine HAVE_STRINGS_H
#cmakedefine HAVE_STRING_H
#cmakedefine HAVE_SYSLOG_H
#cmakedefine HAVE_SYS_EVENTS_H
#cmakedefine HAVE_SYS_INOTIFY_H
#cmakedefine HAVE_SYS_PRCTL_H
#cmakedefine HAVE_SYS_RESOURCE_H
#cmakedefine HAVE_SYS_STAT_H

135 136 137
/* Define to 1 if you have sys/syslimits.h */
#cmakedefine   HAVE_SYS_SYSLIMITS_H 1

138 139
/* Define to 1 if you have sys/time.h */
#cmakedefine    HAVE_SYS_TIME_H 1
140

141
#cmakedefine HAVE_SYS_TYPES_H
142

143
#cmakedefine HAVE_SYS_UIO_H
144

145 146
/* Define to 1 if you have sys/wait.h */
#cmakedefine    HAVE_SYS_WAIT_H 1
147

148 149 150 151 152 153 154 155
/* Define to 1 if you have time.h */
#cmakedefine   HAVE_TIME_H 1

/* Define to 1 if you have unistd.h */
#cmakedefine   HAVE_UNISTD_H 1

/* Define to 1 if you have ws2tcpip.h */
#cmakedefine   HAVE_WS2TCPIP_H
156

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
// symbols
/* Define to 1 if you have backtrace */
#cmakedefine   HAVE_BACKTRACE 1

/* Define to 1 if you have getgrouplist */
#cmakedefine   HAVE_GETGROUPLIST 1

/* Define to 1 if you have getpeerucred */
#cmakedefine   HAVE_GETPEERUCRED 1

/* Define to 1 if you have nanosleep */
#cmakedefine   HAVE_NANOSLEEP 1

/* Define to 1 if you have getpwnam_r */
#cmakedefine   HAVE_POSIX_GETPWNAM_R 1

/* Define to 1 if you have socketpair */
#cmakedefine   HAVE_SOCKETPAIR 1

/* Define to 1 if you have setenv */
#cmakedefine   HAVE_SETENV 1

/* Define to 1 if you have unsetenv */
#cmakedefine   HAVE_UNSETENV 1

182 183 184
/* Define to 1 if you have clearenv */
#cmakedefine   HAVE_CLEARENV 1

185 186 187
/* Define to 1 if you have writev */
#cmakedefine   HAVE_WRITEV 1

188 189 190
/* Define to 1 if you have socklen_t */
#cmakedefine   HAVE_SOCKLEN_T 1

191 192 193 194 195 196 197 198 199 200 201 202
/* Define to 1 if you have setlocale */
#cmakedefine   HAVE_SETLOCALE 1

/* Define to 1 if you have localeconv */
#cmakedefine   HAVE_LOCALECONV 1

/* Define to 1 if you have strtoll */
#cmakedefine   HAVE_STRTOLL 1

/* Define to 1 if you have strtoull */
#cmakedefine   HAVE_STRTOULL 1

203 204 205
/* Define to 1 if you have pip2 */
#cmakedefine   HAVE_PIPE2

206 207 208 209 210
#cmakedefine HAVE_ACCEPT4 1
#cmakedefine HAVE_DIRFD 1
#cmakedefine HAVE_INOTIFY_INIT1 1
#cmakedefine HAVE_UNIX_FD_PASSING 1

211 212 213 214
// structs
/* Define to 1 if you have struct cmsgred */
#cmakedefine    HAVE_CMSGCRED 1

215 216
#cmakedefine FD_SETSIZE @FD_SETSIZE@

217 218 219
#cmakedefine DBUS_USER "@DBUS_USER@"
#cmakedefine DBUS_TEST_USER "@DBUS_TEST_USER@"

220
// system type defines
221
#if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
222 223
# define DBUS_WIN
# define DBUS_WIN_FIXME 1
224 225 226 227 228 229 230 231
# ifdef _WIN32_WCE
#  define DBUS_WINCE
# else
#  define DBUS_WIN32
# endif
#else
# define DBUS_UNIX
#endif 
232 233

#if defined(_WIN32) || defined(_WIN64)
234 235 236 237 238 239 240 241 242 243
// mingw mode_t
# ifdef HAVE_STDIO_H
#  include <stdio.h>
# endif
# ifndef _MSC_VER
#  define uid_t int
#  define gid_t int
# else
#  define snprintf _snprintf
   typedef int mode_t;
244 245 246 247 248 249
#  if !defined(_WIN32_WCE)
#    define strtoll _strtoi64
#    define strtoull _strtoui64
#    define HAVE_STRTOLL 1
#    define HAVE_STRTOULL 1
#  endif
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
# endif
#endif	// defined(_WIN32) || defined(_WIN64)

#ifdef interface
#undef interface
#endif

#ifndef SIGHUP
#define SIGHUP	1
#endif

#cmakedefine DBUS_VERBOSE_C_S 1
#ifdef DBUS_VERBOSE_C_S
#define _dbus_verbose_C_S printf
#else
#define _dbus_verbose_C_S _dbus_verbose
#endif 

268 269 270 271
# if defined(_MSC_VER) && !defined(inline)
#define inline __inline
#endif

272 273 274 275
#ifdef DBUS_WIN
#define FD_SETSIZE @FD_SETSIZE@
#endif

276
#endif  // _DBUS_CONFIG_H