8 #define BUILD_VERSION "77db578727"
11 #define CRM_BLACKBOX_DIR "/var/lib/pacemaker/blackbox"
14 #define CRM_BUNDLE_DIR "/var/log/pacemaker/bundles"
17 #define CRM_CONFIG_CTS "/var/lib/pacemaker/cts"
20 #define CRM_CONFIG_DIR "/var/lib/pacemaker/cib"
23 #define CRM_CORE_DIR "/var/lib/pacemaker/cores"
26 #define CRM_DAEMON_DIR "/usr/lib/pacemaker"
29 #define CRM_DAEMON_GROUP "haclient"
32 #define CRM_DAEMON_USER "hacluster"
35 #define CRM_FEATURES "agent-manpages ascii-docs books cibsecrets corosync-ge-2 generated-manpages lha monotonic nagios ncurses remote systemd"
38 #define CRM_LOG_DIR "/var/log/pacemaker"
41 #define CRM_PACEMAKER_DIR "/var/lib/pacemaker"
44 #define CRM_RSCTMP_DIR "/run/resource-agents"
47 #define CRM_SCHEMA_DIRECTORY "/usr/share/pacemaker"
50 #define CRM_STATE_DIR "/run/crm"
53 #define ENABLE_VERSIONED_ATTRS 0
56 #define GCC_FORMAT_NONLITERAL_CHECKING_ENABLED
59 #define HAVE_ALPHASORT 1
62 #define HAVE_ARGZ_ADD 1
65 #define HAVE_ARGZ_APPEND 1
68 #define HAVE_ARGZ_COUNT 1
71 #define HAVE_ARGZ_CREATE_SEP 1
77 #define HAVE_ARGZ_INSERT 1
80 #define HAVE_ARGZ_NEXT 1
83 #define HAVE_ARGZ_STRINGIFY 1
86 #define HAVE_ARPA_INET_H 1
89 #define HAVE_BYTESWAP_H 1
92 #define HAVE_BZLIB_H 1
95 #define HAVE_CLOSEDIR 1
98 #define HAVE_COROSYNC_CFG_TRACKSTART 1
101 #define HAVE_CTYPE_H 1
107 #define HAVE_CURSES_H 1
110 #define HAVE_DBUSBASICVALUE 1
114 #define HAVE_DECL_CLOCK_MONOTONIC 1
122 #define HAVE_DECL_PRIU32 1
126 #define HAVE_DECL_PRIU64 1
130 #define HAVE_DECL_PRIX32 1
134 #define HAVE_DECL_SCNU64 1
137 #define HAVE_DIRENT_H 1
146 #define HAVE_DLERROR 1
149 #define HAVE_DLFCN_H 1
158 #define HAVE_ERRNO_H 1
161 #define HAVE_ERROR_T 1
164 #define HAVE_GETOPT_H 1
167 #define HAVE_GLIB_H 1
170 #define HAVE_GNUTLS_GNUTLS_H 1
179 #define HAVE_INTTYPES_H 1
182 #define HAVE_IPCC_AUTH_GET 1
188 #define HAVE_LIBBZ2 1
200 #define HAVE_LIBDLLOADER 1
206 #define HAVE_LIBGNUTLS 1
209 #define HAVE_LIBNCURSES 1
212 #define HAVE_LIBPAM 1
215 #define HAVE_LIBPILS 1
218 #define HAVE_LIBPLUMB 1
233 #define HAVE_LIBXML_XPATH_H 1
236 #define HAVE_LIBXSLT 1
239 #define HAVE_LIBXSLT_XSLT_H 1
242 #define HAVE_LIMITS_H 1
245 #define HAVE_LINUX_SWAB_H 1
257 #define HAVE_NANOSLEEP 1
260 #define HAVE_NCURSES_H 1
266 #define HAVE_NETDB_H 1
269 #define HAVE_NETINET_IN_H 1
272 #define HAVE_NETINET_IP_H 1
278 #define HAVE_OPENDIR 1
290 #define HAVE_PRELOADED_SYMBOLS 1
296 #define HAVE_QB_IPCC_AUTH_GET 1
299 #define HAVE_READDIR 1
302 #define HAVE_SCANDIR 1
305 #define HAVE_SCHED_SETSCHEDULER 1
308 #define HAVE_SECURITY_PAM_APPL_H 1
317 #define HAVE_SIGNAL_H 1
320 #define HAVE_STDDEF_H 1
323 #define HAVE_STDINT_H 1
326 #define HAVE_STDIO_H 1
329 #define HAVE_STDLIB_H 1
332 #define HAVE_STONITH_STONITH_H 1
335 #define HAVE_STRCHRNUL 1
338 #define HAVE_STRERROR 1
341 #define HAVE_STRINGS_H 1
344 #define HAVE_STRING_H 1
353 #define HAVE_STRNDUP 1
356 #define HAVE_STRNLEN 1
359 #define HAVE_STRUCT_DIRENT_D_TYPE 1
362 #define HAVE_STRUCT_TM_TM_GMTOFF 1
368 #define HAVE_SYS_IOCTL_H 1
371 #define HAVE_SYS_PARAM_H 1
374 #define HAVE_SYS_REBOOT_H 1
377 #define HAVE_SYS_RESOURCE_H 1
380 #define HAVE_SYS_SIGNALFD_H 1
383 #define HAVE_SYS_SOCKET_H 1
386 #define HAVE_SYS_STAT_H 1
389 #define HAVE_SYS_TIME_H 1
392 #define HAVE_SYS_TYPES_H 1
395 #define HAVE_SYS_UTSNAME_H 1
398 #define HAVE_SYS_WAIT_H 1
401 #define HAVE_TIME_H 1
404 #define HAVE_UNISTD_H 1
407 #define HAVE_USLEEP 1
410 #define HAVE_UUID_UNPARSE 1
413 #define HAVE_UUID_UUID_H 1
416 #define HAVE_WORKING_ARGZ 1
422 #define HAVE_qb_log_conf_QB_LOG_CONF_ELLIPSIS 1
425 #define HAVE_qb_log_conf_QB_LOG_CONF_MAX_LINE_LEN 1
428 #define LRM_CIBSECRETS_DIR "/var/lib/pacemaker/lrm/secrets"
434 #define LT_DLSEARCH_PATH "/lib:/usr/lib:/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/local/lib:/usr/local/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu"
437 #define LT_LIBEXT "a"
440 #define LT_LIBPREFIX "lib"
443 #define LT_MODULE_EXT ".so"
447 #define LT_MODULE_PATH_VAR "LD_LIBRARY_PATH"
450 #define LT_OBJDIR ".libs/"
459 #define NAGIOS_METADATA_DIR "/usr/share/nagios/plugins-metadata"
462 #define NAGIOS_PLUGIN_DIR "/usr/lib/nagios/plugins"
468 #define OCF_RA_PATH "/usr/lib/ocf/resource.d"
471 #define OCF_ROOT_DIR "/usr/lib/ocf"
474 #define PACEMAKER_CONFIG_DIR "/etc/pacemaker"
477 #define PACEMAKER_VERSION "2.1.1"
480 #define PACKAGE "pacemaker"
483 #define PACKAGE_BUGREPORT "users@clusterlabs.org"
486 #define PACKAGE_NAME "pacemaker"
489 #define PACKAGE_STRING "pacemaker 2.1.1"
492 #define PACKAGE_TARNAME "pacemaker"
495 #define PACKAGE_URL "https://ClusterLabs.org/pacemaker/"
498 #define PACKAGE_VERSION "2.1.1"
501 #define PCMK_GNUTLS_PRIORITIES "NORMAL"
504 #define PCMK_RUN_DIR "/run"
510 #define PCMK__CONCURRENT_FENCING_DEFAULT "false"
513 #define PCMK__FENCE_BINDIR "/usr/sbin"
516 #define PCMK__RESOURCE_STICKINESS_DEFAULT 0
519 #define PCMK__SBD_SYNC_DEFAULT false
522 #define PE_STATE_DIR "/var/lib/pacemaker/pengine"
525 #define SBIN_DIR "/usr/sbin"
528 #define SIZEOF_CHAR 1
534 #define SIZEOF_LONG 8
537 #define SIZEOF_LONG_LONG 8
540 #define SIZEOF_SHORT 2
543 #define SSCANF_HAS_M 1
548 #define STDC_HEADERS 1
551 #define SUPPORT_CIBSECRETS 1
554 #define SUPPORT_COROSYNC 1
557 #define SUPPORT_DBUS 1
560 #define SUPPORT_NAGIOS 1
563 #define SUPPORT_PROCFS 1
566 #define SUPPORT_PROFILING 0
569 #define SUPPORT_SYSTEMD 1
572 #define SUPPORT_UPSTART 0
595 #define US_AUTH_PEERCRED_UCRED 1
598 #define VALGRIND_BIN "/usr/bin/valgrind"
601 #define VERSION "2.1.1"
605 #if defined AC_APPLE_UNIVERSAL_BUILD
606 # if defined __BIG_ENDIAN__
607 # define WORDS_BIGENDIAN 1
610 # ifndef WORDS_BIGENDIAN
619 #if defined __GNUC__ && defined __GNUC_MINOR__
620 # define _GL_GNUC_PREREQ(major, minor) \
621 ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__))
623 # define _GL_GNUC_PREREQ(major, minor) 0
629 # if (defined __cplusplus \
630 && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
631 || (defined _MSC_VER && 1900 <= _MSC_VER)) \
639 # define _Noreturn [[noreturn]]
640 # elif ((!defined __cplusplus || defined __clang__) \
641 && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
642 || _GL_GNUC_PREREQ (4, 7) \
643 || (defined __apple_build_version__ \
644 ? 6000000 <= __apple_build_version__ \
645 : 3 < __clang_major__ + (5 <= __clang_minor__))))
647 # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C
648 # define _Noreturn __attribute__ ((__noreturn__))
649 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
650 # define _Noreturn __declspec (noreturn)
684 #define _GL_ASYNC_SAFE
688 #ifdef __has_attribute
689 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
691 # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
692 # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
693 # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
694 # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
695 # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3)
696 # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95)
697 # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1)
698 # define _GL_ATTR_diagnose_if 0
699 # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3)
700 # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1)
701 # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0)
702 # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7)
703 # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6)
705 # define _GL_ATTR_may_alias 0
707 # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3)
709 # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0)
710 # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1)
711 # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3)
712 # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0)
713 # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
714 # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
715 # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
716 # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
717 # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
718 # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
719 # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
723 #if _GL_HAS_ATTRIBUTE (alloc_size)
724 # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
726 # define _GL_ATTRIBUTE_ALLOC_SIZE(args)
729 #if _GL_HAS_ATTRIBUTE (always_inline)
730 # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
732 # define _GL_ATTRIBUTE_ALWAYS_INLINE
735 #if _GL_HAS_ATTRIBUTE (artificial)
736 # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
738 # define _GL_ATTRIBUTE_ARTIFICIAL
744 #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
746 # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
748 # define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
751 # define _GL_ATTRIBUTE_COLD
754 #if _GL_HAS_ATTRIBUTE (const)
755 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
757 # define _GL_ATTRIBUTE_CONST
760 #if 201710L < __STDC_VERSION__
761 # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
762 #elif _GL_HAS_ATTRIBUTE (deprecated)
763 # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
765 # define _GL_ATTRIBUTE_DEPRECATED
768 #if _GL_HAS_ATTRIBUTE (error)
769 # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
770 # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
771 #elif _GL_HAS_ATTRIBUTE (diagnose_if)
772 # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
773 # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
775 # define _GL_ATTRIBUTE_ERROR(msg)
776 # define _GL_ATTRIBUTE_WARNING(msg)
779 #if _GL_HAS_ATTRIBUTE (externally_visible)
780 # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
782 # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
786 #if 201710L < __STDC_VERSION__
787 # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
788 #elif _GL_HAS_ATTRIBUTE (fallthrough)
789 # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
791 # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
794 #if _GL_HAS_ATTRIBUTE (format)
795 # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
797 # define _GL_ATTRIBUTE_FORMAT(spec)
800 #if _GL_HAS_ATTRIBUTE (leaf)
801 # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
803 # define _GL_ATTRIBUTE_LEAF
807 #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
808 # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
810 # define _GL_ATTRIBUTE_MAY_ALIAS
813 #if 201710L < __STDC_VERSION__
814 # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
815 #elif _GL_HAS_ATTRIBUTE (unused)
816 # define _GL_ATTRIBUTE_MAYBE_UNUSED __attribute__ ((__unused__))
818 # define _GL_ATTRIBUTE_MAYBE_UNUSED
821 #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
822 #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED
824 #if _GL_HAS_ATTRIBUTE (malloc)
825 # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
827 # define _GL_ATTRIBUTE_MALLOC
830 #if 201710L < __STDC_VERSION__
831 # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
832 #elif _GL_HAS_ATTRIBUTE (warn_unused_result)
833 # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
835 # define _GL_ATTRIBUTE_NODISCARD
838 #if _GL_HAS_ATTRIBUTE (noinline)
839 # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
841 # define _GL_ATTRIBUTE_NOINLINE
844 #if _GL_HAS_ATTRIBUTE (nonnull)
845 # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
847 # define _GL_ATTRIBUTE_NONNULL(args)
850 #if _GL_HAS_ATTRIBUTE (nonstring)
851 # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
853 # define _GL_ATTRIBUTE_NONSTRING
858 #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus
859 # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
861 # define _GL_ATTRIBUTE_NOTHROW
864 #if _GL_HAS_ATTRIBUTE (packed)
865 # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
867 # define _GL_ATTRIBUTE_PACKED
870 #if _GL_HAS_ATTRIBUTE (pure)
871 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
873 # define _GL_ATTRIBUTE_PURE
876 #if _GL_HAS_ATTRIBUTE (returns_nonnull)
877 # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
879 # define _GL_ATTRIBUTE_RETURNS_NONNULL
882 #if _GL_HAS_ATTRIBUTE (sentinel)
883 # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
885 # define _GL_ATTRIBUTE_SENTINEL(pos)
890 #if !defined __cplusplus || _GL_GNUC_PREREQ (4, 5)
891 # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_MAYBE_UNUSED
893 # define _GL_UNUSED_LABEL
943 #if (((defined __APPLE__ && defined __MACH__) \
944 || defined __DragonFly__ || defined __FreeBSD__) \
945 && (defined __header_inline \
946 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
947 && ! defined __clang__) \
948 : ((! defined _DONT_USE_CTYPE_INLINE_ \
949 && (defined __GNUC__ || defined __cplusplus)) \
950 || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
951 && defined __GNUC__ && ! defined __cplusplus))))
952 # define _GL_EXTERN_INLINE_STDHEADER_BUG
955 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
956 : (199901L <= __STDC_VERSION__ \
957 && !defined __HP_cc \
959 && !(defined __SUNPRO_C && __STDC__))) \
960 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
961 # define _GL_INLINE inline
962 # define _GL_EXTERN_INLINE extern inline
963 # define _GL_EXTERN_INLINE_IN_USE
964 #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
965 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
966 # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
968 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
970 # define _GL_INLINE extern inline
972 # define _GL_EXTERN_INLINE extern
973 # define _GL_EXTERN_INLINE_IN_USE
975 # define _GL_INLINE static _GL_UNUSED
976 # define _GL_EXTERN_INLINE static _GL_UNUSED
985 #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
986 # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
987 # define _GL_INLINE_HEADER_CONST_PRAGMA
989 # define _GL_INLINE_HEADER_CONST_PRAGMA \
990 _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
992 # define _GL_INLINE_HEADER_BEGIN \
993 _Pragma ("GCC diagnostic push") \
994 _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
995 _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
996 _GL_INLINE_HEADER_CONST_PRAGMA
997 # define _GL_INLINE_HEADER_END \
998 _Pragma ("GCC diagnostic pop")
1000 # define _GL_INLINE_HEADER_BEGIN
1001 # define _GL_INLINE_HEADER_END
1010 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
1011 # define __GNUC_STDC_INLINE__ 1
1027 #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
1033 #define restrict __restrict
1040 #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
1042 # define __restrict__