0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 01:29:11 +00:00
netdata_netdata/packaging/cmake/config.cmake.h.in
Costa Tsaousis b75958a4ab
initial implementation of libbacktrace ()
* initial implementation of libbacktrace

* in buildinfo show the parameters of libbacktrace

* do not disable libbacktrace if threading is not supported

* Don’t install libbacktrace, only build it.

* Disable libbacktrace for 32-bit ARM builds.

* Make libunwind and libbacktrace mutually exclusive at configure time.

Instead of relying on it being mutually exclusive at build time. This
ensures we don’t waste time on libunwind when using libbacktrace.

* Only use libbacktrace on Linux and Windows

* Work around broken logic in openSUSE rpmbuild.

* Fix handling of libbacktrace for 32-bit ARM static builds.

---------

Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
2025-03-21 17:44:17 +00:00

223 lines
6 KiB
C

/* This file was generated by CMAKE from config.cmake.h.in */
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define __always_unused __attribute__((unused))
#define __maybe_unused __attribute__((unused))
#cmakedefine SIZEOF_VOID_P ${SIZEOF_VOID_P}
// platform
#cmakedefine OS_FREEBSD
#cmakedefine OS_LINUX
#cmakedefine OS_MACOS
#cmakedefine OS_WINDOWS
#cmakedefine STATIC_BUILD
// required compilation options
#cmakedefine HAVE_FEXCEPTIONS
// checked headers
#cmakedefine HAVE_NETINET_IN_H
#cmakedefine HAVE_RESOLV_H
#cmakedefine HAVE_NETDB_H
#cmakedefine HAVE_SYS_PRCTL_H
#cmakedefine HAVE_SYS_STAT_H
#cmakedefine HAVE_SYS_VFS_H
#cmakedefine HAVE_SYS_STATFS_H
#cmakedefine HAVE_LINUX_MAGIC_H
#cmakedefine HAVE_SYS_MOUNT_H
#cmakedefine HAVE_SYS_STATVFS_H
#cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_STDINT_H
#cmakedefine HAVE_SYS_CAPABILITY_H
#cmakedefine HAVE_ARPA_INET_H
#cmakedefine HAVE_NETINET_TCP_H
#cmakedefine HAVE_SYS_IOCTL_H
#cmakedefine HAVE_GRP_H
#cmakedefine HAVE_PWD_H
#cmakedefine HAVE_NET_IF_H
#cmakedefine HAVE_POLL_H
#cmakedefine HAVE_SYSLOG_H
#cmakedefine HAVE_SYS_MMAN_H
#cmakedefine HAVE_SYS_RESOURCE_H
#cmakedefine HAVE_SYS_SOCKET_H
#cmakedefine HAVE_SYS_WAIT_H
#cmakedefine HAVE_SYS_UN_H
#cmakedefine HAVE_SPAWN_H
#cmakedefine HAVE_CAPABILITY
#cmakedefine HAVE_PROTOBUF
#cmakedefine BUNDLED_PROTOBUF
#cmakedefine HAVE_MONGOC
#cmakedefine HAVE_LIBDATACHANNEL
// checked symbols
#cmakedefine MAJOR_IN_SYSMACROS
#cmakedefine MAJOR_IN_MKDEV
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_STRERROR_R
#cmakedefine HAVE_FINITE
#cmakedefine HAVE_ISFINITE
#cmakedefine HAVE_RECVMMSG
#cmakedefine HAVE_PTHREAD_GETTHREADID_NP
#cmakedefine HAVE_PTHREAD_THREADID_NP
#cmakedefine HAVE_GETTID
#cmakedefine HAVE_WAITID
#cmakedefine HAVE_NICE
#cmakedefine HAVE_GETPRIORITY
#cmakedefine HAVE_SETENV
#cmakedefine HAVE_DLSYM
#cmakedefine HAVE_LIBCURL
#cmakedefine HAVE_LIBICONV
#cmakedefine HAVE_ARC4RANDOM_BUF
#cmakedefine HAVE_ARC4RANDOM_UNIFORM
#cmakedefine HAVE_RAND_S
#cmakedefine HAVE_GETRANDOM
#cmakedefine HAVE_SYSINFO
#cmakedefine HAVE_TIMEGM
#cmakedefine HAVE_TM_GMTOFF
#cmakedefine HAVE_LIBBACKTRACE
#cmakedefine HAVE_LIBUNWIND
#cmakedefine HAVE_BACKTRACE
#cmakedefine HAVE_CLOSE_RANGE
#cmakedefine HAVE_SCHED_GETSCHEDULER
#cmakedefine HAVE_SCHED_SETSCHEDULER
#cmakedefine HAVE_SCHED_GET_PRIORITY_MIN
#cmakedefine HAVE_SCHED_GET_PRIORITY_MAX
#cmakedefine HAVE_SYSTEMD
#cmakedefine HAVE_SD_JOURNAL_OS_ROOT
#cmakedefine HAVE_SD_JOURNAL_OPEN_FILES_FD
#cmakedefine HAVE_SD_JOURNAL_RESTART_FIELDS
#cmakedefine HAVE_SD_JOURNAL_GET_SEQNUM
#cmakedefine ENABLE_SYSTEMD_DBUS
// checked source compilation
#cmakedefine HAVE_PTHREAD_GETNAME_NP
#cmakedefine HAVE_ACCEPT4
#cmakedefine STRERROR_R_CHAR_P
#cmakedefine HAVE_C__GENERIC
#cmakedefine HAVE_C_MALLOPT
#cmakedefine HAVE_C_MALLOC_TRIM
#cmakedefine HAVE_C_MALLOC_INFO
#cmakedefine HAVE_C_MALLINFO2
#cmakedefine HAVE_SETNS
#cmakedefine HAVE_STRNDUP
#cmakedefine SSL_HAS_PENDING
#cmakedefine HAVE_FUNC_ATTRIBUTE_FORMAT_GNU_PRINTF
#cmakedefine HAVE_FUNC_ATTRIBUTE_FORMAT_PRINTF
#cmakedefine HAVE_FUNC_ATTRIBUTE_MALLOC
#cmakedefine HAVE_FUNC_ATTRIBUTE_NOINLINE
#cmakedefine HAVE_FUNC_ATTRIBUTE_NORETURN
#cmakedefine HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL
#cmakedefine HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT
#cmakedefine HAVE_JEMALLOC_ARENA_API
// enabled features
#cmakedefine ENABLE_ML
#cmakedefine ENABLE_EXPORTING_MONGODB
#cmakedefine ENABLE_H2O
#cmakedefine ENABLE_DBENGINE
#cmakedefine ENABLE_LZ4
#cmakedefine ENABLE_ZSTD
#cmakedefine ENABLE_BROTLI
#cmakedefine ENABLE_LOGSMANAGEMENT
#cmakedefine ENABLE_LOGSMANAGEMENT_TESTS
#cmakedefine ENABLE_PROMETHEUS_REMOTE_WRITE
// enabled plugins
#cmakedefine ENABLE_PLUGIN_DEBUGFS
#cmakedefine ENABLE_PLUGIN_APPS
#cmakedefine ENABLE_PLUGIN_FREEIPMI
#cmakedefine ENABLE_PLUGIN_NFACCT
#cmakedefine ENABLE_PLUGIN_XENSTAT
#cmakedefine ENABLE_PLUGIN_PERF
#cmakedefine ENABLE_PLUGIN_SLABINFO
#cmakedefine ENABLE_PLUGIN_CUPS
#cmakedefine ENABLE_PLUGIN_CGROUP_NETWORK
#cmakedefine ENABLE_PLUGIN_EBPF
#cmakedefine ENABLE_PLUGIN_SYSTEMD_JOURNAL
#cmakedefine ENABLE_PLUGIN_NETWORK_VIEWER
// enabled sentry
#cmakedefine ENABLE_SENTRY
#cmakedefine NETDATA_SENTRY_ENVIRONMENT "@NETDATA_SENTRY_ENVIRONMENT@"
#cmakedefine NETDATA_SENTRY_DIST "@NETDATA_SENTRY_DIST@"
#cmakedefine NETDATA_SENTRY_DSN "@NETDATA_SENTRY_DSN@"
// enabled bundling
#cmakedefine ENABLE_BUNDLED_JSONC
#cmakedefine ENABLE_BUNDLED_YAML
#cmakedefine ENABLE_BUNDLED_PROTOBUF
#cmakedefine ENABLE_MIMALLOC
// directory paths
#define NETDATA_RUNTIME_PREFIX "@NETDATA_RUNTIME_PREFIX@"
#cmakedefine CACHE_DIR "@CACHE_DIR@"
#cmakedefine CONFIG_DIR "@CONFIG_DIR@"
#cmakedefine LIBCONFIG_DIR "@LIBCONFIG_DIR@"
#cmakedefine LOG_DIR "@LOG_DIR@"
#cmakedefine PLUGINS_DIR "@PLUGINS_DIR@"
#cmakedefine WEB_DIR "@WEB_DIR@"
#cmakedefine VARLIB_DIR "@VARLIB_DIR@"
// config command, user and version
#cmakedefine CONFIGURE_COMMAND "@CONFIGURE_COMMAND@"
#cmakedefine BUILD_INFO_CMAKE_CACHE_ARCHIVE_NAME "@BUILD_INFO_CMAKE_CACHE_ARCHIVE_NAME@"
#cmakedefine BUILD_INFO_CMAKE_CACHE_ARCHIVE_PATH "@BUILD_INFO_CMAKE_CACHE_ARCHIVE_PATH@"
#cmakedefine NETDATA_USER "@NETDATA_USER@"
#define NETDATA_VERSION_MAJOR "@NETDATA_VERSION_MAJOR@"
#define NETDATA_VERSION_MINOR "@NETDATA_VERSION_MINOR@"
#define NETDATA_VERSION_PATCH "@NETDATA_VERSION_PATCH@"
#define NETDATA_VERSION_TWEAK "@NETDATA_VERSION_TWEAK@"
#define NETDATA_VERSION_DESCR "@NETDATA_VERSION_DESCR@"
#define NETDATA_VERSION "@NETDATA_VERSION_STRING@"
#define ENABLE_JSONC 1
#cmakedefine HAVE_LIBYAML
#cmakedefine HAVE_LIBMNL
#cmakedefine HAVE_WEL
#cmakedefine HAVE_ETW
#cmakedefine RUN_UNDER_CLION
// /* Enable GNU extensions on systems that have them. */
// #ifndef _GNU_SOURCE
// # define _GNU_SOURCE 1
// #endif
// #cmakedefine HAVE_CRYPTO
// #cmakedefine ENABLE_PROMETHEUS_REMOTE_WRITE
// /* NSA spy stuff */
// #cmakedefine01 HAVE_X509_VERIFY_PARAM_set1_host
#define HAVE_CRYPTO
#define HAVE_X509_VERIFY_PARAM_set1_host 1
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif