2007-03-03 14:32:17 +00:00
|
|
|
/* config.h. Generated by cmake from config.h.cmake */
|
|
|
|
|
|
|
|
|
|
#ifndef _DBUS_CONFIG_H
|
|
|
|
|
#define _DBUS_CONFIG_H
|
|
|
|
|
|
2022-02-25 16:06:59 +00:00
|
|
|
/* On Windows, we expect to be using msvcrt.dll-compatible printf
|
|
|
|
|
* (%I64u instead of %llu) unless otherwise specified. This must be
|
|
|
|
|
* done near the beginning of config.h, before we have included any
|
|
|
|
|
* system headers that might check the value of this macro. */
|
|
|
|
|
#ifndef __USE_MINGW_ANSI_STDIO
|
|
|
|
|
# define __USE_MINGW_ANSI_STDIO 0
|
|
|
|
|
#endif
|
|
|
|
|
|
2013-08-28 14:16:21 +02:00
|
|
|
@AUTOPACKAGE_CONFIG_H_TEMPLATE@
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Variables defined by AC_DEFINE in ../configure.ac
|
|
|
|
|
* should be placed in this file
|
|
|
|
|
*/
|
2018-10-22 17:03:52 +02:00
|
|
|
|
2022-03-02 11:00:06 +01:00
|
|
|
/* AC_C_BIGENDIAN */
|
|
|
|
|
#cmakedefine WORDS_BIGENDIAN
|
|
|
|
|
|
2018-10-25 11:14:45 +01:00
|
|
|
/* Opt-in to modern APIs and thread-safety for Solaris. In the Autotools
|
|
|
|
|
* build system we do the equivalent of this by appending to CFLAGS
|
|
|
|
|
* in configure.ac */
|
|
|
|
|
#ifdef __sun
|
|
|
|
|
# define __EXTENSIONS__
|
|
|
|
|
# define _POSIX_PTHREAD_SEMANTICS
|
|
|
|
|
# define _REENTRANT
|
|
|
|
|
# define _XOPEN_SOURCE 500
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
#cmakedefine DBUS_DATADIR "@DBUS_DATADIR@"
|
|
|
|
|
#cmakedefine DBUS_BINDIR "@DBUS_BINDIR@"
|
2015-02-11 18:09:14 +01:00
|
|
|
#cmakedefine DBUS_PREFIX "@DBUS_PREFIX@"
|
2007-03-03 14:32:17 +00:00
|
|
|
#cmakedefine DBUS_SYSTEM_CONFIG_FILE "@DBUS_SYSTEM_CONFIG_FILE@"
|
|
|
|
|
#cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
|
2020-04-22 15:03:30 +02:00
|
|
|
#cmakedefine DBUS_SESSION_SOCKET_DIR "@DBUS_SESSION_SOCKET_DIR@"
|
2010-02-05 09:54:16 +01:00
|
|
|
#cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
|
2007-03-03 14:32:17 +00:00
|
|
|
#cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
|
2012-08-13 19:57:13 +01:00
|
|
|
#cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
|
2007-03-03 14:32:17 +00:00
|
|
|
#cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
|
2007-06-03 14:15:57 +00:00
|
|
|
#cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
|
build: Introduce ${runstatedir} and use it for the pid file
By default ${runstatedir} is the same as ${localstatedir}/run, but many
Linux distributions configure it to be /run and mount a tmpfs in that
location. All other factors being equal, it is preferable to use /run
where available because it is guaranteed to be local, whereas traversing
/var might involve automounting a networked filesystem (even though
/var/run itself is very likely to be a tmpfs).
/run or /var/run is currently only used in a few places in dbus, but
I plan to make more use of it during the development of
<https://bugs.freedesktop.org/show_bug.cgi?id=100344>.
The pid file is not part of the API between dbus and other software
(other than distribution init scripts for dbus itself), so we do not
need to keep it strictly compatible; so it is OK to move it.
We do not yet use /run for the system bus socket, because that is
part of the API between D-Bus clients and servers, and has always been
"officially" /var/run/dbus/system_bus_socket.
<https://bugs.freedesktop.org/show_bug.cgi?id=101628> tracks the
possibility of changing that.
Similarly, we do not replace /var/run/console with /run/console, because
that path is part of the API between dbus-daemon and the obsolete PAM
modules pam_console and pam_foreground that used /var/run/console.
<https://bugs.freedesktop.org/show_bug.cgi?id=101629> tracks the possible
future removal of that code path.
In the CMake build system, the equivalent of ${runstatedir} remains
hard-coded to the equivalent of ${localstatedir}/run for simplicity. For
the sort of system-wide installations that would consider redefining
${runstatedir} to /run, the Autotools build system is strongly
recommended: in particular this is what Linux distributions are expected
to use.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101569
2017-06-20 13:08:06 +01:00
|
|
|
#cmakedefine DBUS_RUNSTATEDIR "@DBUS_RUNSTATEDIR@"
|
2009-04-24 11:36:50 +02:00
|
|
|
|
2013-06-29 12:45:22 +02:00
|
|
|
#cmakedefine DBUS_ENABLE_STATS
|
2020-09-23 16:32:54 +02:00
|
|
|
#cmakedefine ENABLE_TRADITIONAL_ACTIVATION
|
2010-02-03 14:14:03 +01:00
|
|
|
|
2010-04-09 23:34:28 +02:00
|
|
|
#define TEST_LISTEN "@TEST_LISTEN@"
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
// test binaries
|
2011-09-16 17:03:37 +01:00
|
|
|
#define DBUS_EXEEXT "@EXEEXT@"
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* Some dbus features */
|
|
|
|
|
#cmakedefine DBUS_ENABLE_ANSI 1
|
|
|
|
|
#cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
|
2013-06-25 15:37:27 +08:00
|
|
|
#cmakedefine DBUS_DISABLE_ASSERT 1
|
2013-06-25 15:42:23 +08:00
|
|
|
#ifndef DBUS_DISABLE_ASSERT
|
|
|
|
|
# define DBUS_ENABLE_ASSERT 1
|
|
|
|
|
#endif
|
2007-03-03 14:32:17 +00:00
|
|
|
#cmakedefine DBUS_DISABLE_CHECKS 1
|
2013-06-25 15:42:23 +08:00
|
|
|
#ifndef DBUS_DISABLE_CHECKS
|
|
|
|
|
# define DBUS_ENABLE_CHECKS 1
|
|
|
|
|
#endif
|
2018-10-16 12:43:16 +02:00
|
|
|
#cmakedefine DBUS_ENABLE_EMBEDDED_TESTS 1
|
|
|
|
|
#cmakedefine DBUS_ENABLE_MODULAR_TESTS 1
|
2018-10-16 13:58:27 +02:00
|
|
|
#cmakedefine DBUS_USE_OUTPUT_DEBUG_STRING 1
|
2018-10-16 12:43:16 +02:00
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* xmldocs */
|
|
|
|
|
/* doxygen */
|
|
|
|
|
#cmakedefine DBUS_GCOV_ENABLED 1
|
2009-04-22 11:49:58 +02:00
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* selinux */
|
|
|
|
|
/* kqueue */
|
|
|
|
|
#cmakedefine HAVE_CONSOLE_OWNER_FILE 1
|
|
|
|
|
#define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
|
|
|
|
|
|
|
|
|
|
#cmakedefine DBUS_BUILD_X11 1
|
2011-02-25 12:49:54 +00:00
|
|
|
/* 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
|
2007-03-03 14:32:17 +00:00
|
|
|
|
2015-03-03 13:17:27 +01:00
|
|
|
#cmakedefine DBUS_WITH_GLIB 1
|
|
|
|
|
#cmakedefine GLIB_VERSION_MIN_REQUIRED @GLIB_VERSION_MIN_REQUIRED@
|
|
|
|
|
#cmakedefine GLIB_VERSION_MAX_ALLOWED @GLIB_VERSION_MAX_ALLOWED@
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
// headers
|
2022-02-09 14:48:43 +04:00
|
|
|
#cmakedefine HAVE_AFUNIX_H 1
|
2018-10-16 12:21:55 +02:00
|
|
|
#cmakedefine HAVE_ALLOCA_H 1
|
|
|
|
|
#cmakedefine HAVE_BYTESWAP_H 1
|
|
|
|
|
#cmakedefine HAVE_CRT_EXTERNS_H 1
|
2015-03-05 13:07:55 +01:00
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* Define to 1 if you have dirent.h */
|
|
|
|
|
#cmakedefine HAVE_DIRENT_H 1
|
|
|
|
|
|
2015-03-05 13:07:55 +01:00
|
|
|
/* Define to 1 if you have errno.h */
|
|
|
|
|
#cmakedefine HAVE_ERRNO_H 1
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have inttypes.h */
|
|
|
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
2007-03-03 14:32:17 +00:00
|
|
|
|
2015-03-05 13:07:55 +01:00
|
|
|
/* Define to 1 if you have io.h */
|
|
|
|
|
#cmakedefine HAVE_IO_H 1
|
2007-03-03 14:32:17 +00:00
|
|
|
|
2015-03-05 13:07:55 +01:00
|
|
|
/* Define to 1 if you have locale.h */
|
|
|
|
|
#cmakedefine HAVE_LOCALE_H 1
|
2007-03-03 14:32:17 +00:00
|
|
|
|
2020-03-24 12:04:24 +01:00
|
|
|
/* Define to 1 if you have poll */
|
2015-03-05 13:07:55 +01:00
|
|
|
#cmakedefine HAVE_POLL 1
|
2010-04-14 03:20:44 +02:00
|
|
|
|
2015-03-05 13:07:55 +01:00
|
|
|
/* Define to 1 if you have signal.h */
|
|
|
|
|
#cmakedefine HAVE_SIGNAL_H 1
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* Define to 1 if you have stdio.h */
|
|
|
|
|
#cmakedefine HAVE_STDIO_H 1
|
|
|
|
|
|
2018-10-16 12:21:55 +02:00
|
|
|
#cmakedefine HAVE_SYSLOG_H 1
|
|
|
|
|
#cmakedefine HAVE_SYS_EVENTS_H 1
|
|
|
|
|
#cmakedefine HAVE_SYS_INOTIFY_H 1
|
|
|
|
|
#cmakedefine HAVE_SYS_PRCTL_H 1
|
2020-03-24 11:31:41 +01:00
|
|
|
#cmakedefine HAVE_SYS_RANDOM_H 1
|
2018-10-16 12:21:55 +02:00
|
|
|
#cmakedefine HAVE_SYS_RESOURCE_H 1
|
2023-03-20 13:37:08 +00:00
|
|
|
#cmakedefine HAVE_SYS_SYSCALL_H 1
|
2015-03-05 13:07:55 +01:00
|
|
|
|
|
|
|
|
/* Define to 1 if you have sys/time.h */
|
|
|
|
|
#cmakedefine HAVE_SYS_TIME_H 1
|
2010-03-22 15:49:30 +01:00
|
|
|
|
2015-03-05 13:07:55 +01:00
|
|
|
/* Define to 1 if you have unistd.h */
|
|
|
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have ws2tcpip.h */
|
2018-10-16 12:21:55 +02:00
|
|
|
#cmakedefine HAVE_WS2TCPIP_H 1
|
2010-05-04 15:41:35 +02:00
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
// 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 */
|
2018-10-22 14:52:01 +01:00
|
|
|
#cmakedefine HAVE_GETPWNAM_R 1
|
2007-03-03 14:32:17 +00:00
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
2010-04-13 16:16:27 +02:00
|
|
|
/* Define to 1 if you have clearenv */
|
|
|
|
|
#cmakedefine HAVE_CLEARENV 1
|
|
|
|
|
|
2019-09-13 15:58:55 +00:00
|
|
|
/* Define to 1 if you have closefrom */
|
|
|
|
|
#cmakedefine HAVE_CLOSEFROM 1
|
|
|
|
|
|
2022-03-01 19:33:06 +00:00
|
|
|
/* Define to 1 if you have close_range */
|
|
|
|
|
#cmakedefine HAVE_CLOSE_RANGE 1
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
/* Define to 1 if you have writev */
|
|
|
|
|
#cmakedefine HAVE_WRITEV 1
|
|
|
|
|
|
2007-06-03 14:15:57 +00:00
|
|
|
/* Define to 1 if you have socklen_t */
|
|
|
|
|
#cmakedefine HAVE_SOCKLEN_T 1
|
|
|
|
|
|
2010-04-13 16:16:27 +02:00
|
|
|
/* Define to 1 if you have setlocale */
|
|
|
|
|
#cmakedefine HAVE_SETLOCALE 1
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have localeconv */
|
|
|
|
|
#cmakedefine HAVE_LOCALECONV 1
|
|
|
|
|
|
2014-10-14 16:18:54 +02:00
|
|
|
/* Define to 1 if you have pip2 */
|
2018-10-16 12:21:55 +02:00
|
|
|
#cmakedefine HAVE_PIPE2 1
|
2014-10-14 16:18:54 +02:00
|
|
|
|
2014-10-17 15:42:06 +02:00
|
|
|
#cmakedefine HAVE_ACCEPT4 1
|
2018-10-22 13:27:46 +02:00
|
|
|
|
2014-10-17 15:42:06 +02:00
|
|
|
#cmakedefine HAVE_INOTIFY_INIT1 1
|
2020-03-24 11:31:41 +01:00
|
|
|
#cmakedefine HAVE_GETRANDOM 1
|
2018-02-20 12:20:35 +00:00
|
|
|
#cmakedefine HAVE_GETRLIMIT 1
|
2018-09-04 07:38:12 -07:00
|
|
|
#cmakedefine HAVE_PRCTL 1
|
2018-02-20 11:45:39 +00:00
|
|
|
#cmakedefine HAVE_PRLIMIT 1
|
2018-09-04 07:38:12 -07:00
|
|
|
#cmakedefine HAVE_RAISE 1
|
2018-02-20 12:20:35 +00:00
|
|
|
#cmakedefine HAVE_SETRLIMIT 1
|
2014-10-17 15:42:06 +02:00
|
|
|
#cmakedefine HAVE_UNIX_FD_PASSING 1
|
2020-05-18 12:44:37 +02:00
|
|
|
#cmakedefine HAVE_SYSTEMD
|
2014-10-17 15:42:06 +02:00
|
|
|
|
2018-10-20 22:22:20 +02:00
|
|
|
/* Define to use epoll(4) on Linux */
|
|
|
|
|
#cmakedefine DBUS_HAVE_LINUX_EPOLL 1
|
|
|
|
|
|
2018-10-21 11:34:13 +02:00
|
|
|
/* Use the gcc __sync extension */
|
2022-05-15 11:28:51 +01:00
|
|
|
#cmakedefine01 DBUS_USE_SYNC
|
2018-10-21 11:34:13 +02:00
|
|
|
|
2022-05-25 22:00:08 +00:00
|
|
|
#cmakedefine HAVE_SETRESUID 1
|
|
|
|
|
#cmakedefine HAVE_GETRESUID 1
|
2018-10-21 15:18:50 +02:00
|
|
|
/* whether -export-dynamic was passed to libtool */
|
|
|
|
|
#cmakedefine DBUS_BUILT_R_DYNAMIC 1
|
|
|
|
|
|
2018-10-16 22:47:18 +02:00
|
|
|
/* Enable GNU extensions on systems that have them. */
|
|
|
|
|
#ifndef _GNU_SOURCE
|
|
|
|
|
#cmakedefine _GNU_SOURCE 1
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
// structs
|
|
|
|
|
/* Define to 1 if you have struct cmsgred */
|
|
|
|
|
#cmakedefine HAVE_CMSGCRED 1
|
|
|
|
|
|
2014-01-27 11:58:37 +01:00
|
|
|
#cmakedefine FD_SETSIZE @FD_SETSIZE@
|
|
|
|
|
|
2015-02-04 13:50:03 +01:00
|
|
|
#cmakedefine DBUS_USER "@DBUS_USER@"
|
|
|
|
|
#cmakedefine DBUS_TEST_USER "@DBUS_TEST_USER@"
|
2015-11-18 23:35:46 +01:00
|
|
|
#cmakedefine DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
|
2022-05-29 10:02:53 +00:00
|
|
|
/* Where to put test sockets */
|
|
|
|
|
#define DBUS_TEST_SOCKET_DIR "@TEST_SOCKET_DIR@"
|
2015-02-04 13:50:03 +01:00
|
|
|
|
2007-03-08 20:10:09 +00:00
|
|
|
// system type defines
|
2007-03-14 18:01:01 +00:00
|
|
|
#if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
|
2007-03-03 14:32:17 +00:00
|
|
|
# define DBUS_WIN
|
2007-03-14 18:01:01 +00:00
|
|
|
# ifdef _WIN32_WCE
|
|
|
|
|
# define DBUS_WINCE
|
|
|
|
|
# else
|
|
|
|
|
# define DBUS_WIN32
|
2018-03-08 19:14:38 +00:00
|
|
|
/* Define to the minimum supported Windows version (0x0600 is Vista) */
|
|
|
|
|
# define _WIN32_WINNT 0x0600
|
2007-03-14 18:01:01 +00:00
|
|
|
# endif
|
|
|
|
|
#else
|
|
|
|
|
# define DBUS_UNIX
|
|
|
|
|
#endif
|
2007-03-08 20:10:09 +00:00
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
2007-03-03 14:32:17 +00:00
|
|
|
// mingw mode_t
|
|
|
|
|
# ifdef HAVE_STDIO_H
|
|
|
|
|
# include <stdio.h>
|
|
|
|
|
# endif
|
|
|
|
|
# ifndef _MSC_VER
|
|
|
|
|
# define uid_t int
|
|
|
|
|
# define gid_t int
|
|
|
|
|
# else
|
|
|
|
|
typedef int mode_t;
|
|
|
|
|
# endif
|
|
|
|
|
#endif // defined(_WIN32) || defined(_WIN64)
|
|
|
|
|
|
|
|
|
|
#ifdef interface
|
|
|
|
|
#undef interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef SIGHUP
|
|
|
|
|
#define SIGHUP 1
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-01-27 11:58:37 +01:00
|
|
|
#ifdef DBUS_WIN
|
|
|
|
|
#define FD_SETSIZE @FD_SETSIZE@
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-01-08 09:33:41 +01:00
|
|
|
#cmakedefine01 HAVE_DECL_ENVIRON
|
|
|
|
|
#cmakedefine01 HAVE_DECL_LOG_PERROR
|
|
|
|
|
#cmakedefine01 HAVE_DECL_MSG_NOSIGNAL
|
2022-02-25 16:06:59 +00:00
|
|
|
|
2007-03-03 14:32:17 +00:00
|
|
|
#endif // _DBUS_CONFIG_H
|