pacemaker
2.0.4-2deceaa
Scalable High-Availability cluster resource manager
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
config.h
Go to the documentation of this file.
1
/* include/config.h. Generated from config.h.in by configure. */
2
/* include/config.h.in. Generated from configure.ac by autoheader. */
3
4
/* Define if building universal (internal helper macro) */
5
/* #undef AC_APPLE_UNIVERSAL_BUILD */
6
7
/* Build version */
8
#define BUILD_VERSION "2deceaa"
9
10
/* Where to keep blackbox dumps */
11
#define CRM_BLACKBOX_DIR "/var/lib/pacemaker/blackbox"
12
13
/* Location for Pacemaker bundle logs */
14
#define CRM_BUNDLE_DIR "/var/log/pacemaker/bundles"
15
16
/* Where to keep cts stateful data */
17
#define CRM_CONFIG_CTS "/var/lib/pacemaker/cts"
18
19
/* Where to keep configuration files */
20
#define CRM_CONFIG_DIR "/var/lib/pacemaker/cib"
21
22
/* Location to store core files produced by Pacemaker daemons */
23
#define CRM_CORE_DIR "/var/lib/pacemaker/cores"
24
25
/* Location for Pacemaker daemons */
26
#define CRM_DAEMON_DIR "/usr/libexec/pacemaker"
27
28
/* Group to run Pacemaker daemons as */
29
#define CRM_DAEMON_GROUP "haclient"
30
31
/* User to run Pacemaker daemons as */
32
#define CRM_DAEMON_USER "hacluster"
33
34
/* Set of enabled features */
35
#define CRM_FEATURES " generated-manpages agent-manpages ascii-docs publican-docs ncurses libqb-logging libqb-ipc systemd nagios corosync-native atomic-attrd acls cibsecrets"
36
37
/* Location for Pacemaker log file */
38
#define CRM_LOG_DIR "/var/log/pacemaker"
39
40
/* Location to store directory produced by Pacemaker daemons */
41
#define CRM_PACEMAKER_DIR "/var/lib/pacemaker"
42
43
/* Where resource agents should keep state files */
44
#define CRM_RSCTMP_DIR "/var/run/resource-agents"
45
46
/* Location for the Pacemaker Relax-NG Schema */
47
#define CRM_SCHEMA_DIRECTORY "/usr/share/pacemaker"
48
49
/* Where to keep state files and sockets */
50
#define CRM_STATE_DIR "/var/run/crm"
51
52
/* Build in support for CIB ACL */
53
#define ENABLE_ACL 1
54
55
/* Enable versioned attributes */
56
#define ENABLE_VERSIONED_ATTRS 0
57
58
/* gcc can complain about nonliterals in format */
59
#define GCC_FORMAT_NONLITERAL_CHECKING_ENABLED
60
61
/* Define to 1 if you have the `alphasort' function. */
62
#define HAVE_ALPHASORT 1
63
64
/* Define to 1 if you have the `argz_add' function. */
65
#define HAVE_ARGZ_ADD 1
66
67
/* Define to 1 if you have the `argz_append' function. */
68
#define HAVE_ARGZ_APPEND 1
69
70
/* Define to 1 if you have the `argz_count' function. */
71
#define HAVE_ARGZ_COUNT 1
72
73
/* Define to 1 if you have the `argz_create_sep' function. */
74
#define HAVE_ARGZ_CREATE_SEP 1
75
76
/* Define to 1 if you have the <argz.h> header file. */
77
#define HAVE_ARGZ_H 1
78
79
/* Define to 1 if you have the `argz_insert' function. */
80
#define HAVE_ARGZ_INSERT 1
81
82
/* Define to 1 if you have the `argz_next' function. */
83
#define HAVE_ARGZ_NEXT 1
84
85
/* Define to 1 if you have the `argz_stringify' function. */
86
#define HAVE_ARGZ_STRINGIFY 1
87
88
/* Define to 1 if you have the <arpa/inet.h> header file. */
89
#define HAVE_ARPA_INET_H 1
90
91
/* Define to 1 if you have the <byteswap.h> header file. */
92
#define HAVE_BYTESWAP_H 1
93
94
/* Define to 1 if you have the <bzlib.h> header file. */
95
#define HAVE_BZLIB_H 1
96
97
/* Define to 1 if you have the `closedir' function. */
98
#define HAVE_CLOSEDIR 1
99
100
/* Define to 1 if you have the <ctype.h> header file. */
101
#define HAVE_CTYPE_H 1
102
103
/* Define to 1 if you have the <curses/curses.h> header file. */
104
/* #undef HAVE_CURSES_CURSES_H */
105
106
/* Define to 1 if you have the <curses.h> header file. */
107
#define HAVE_CURSES_H 1
108
109
/* Define to 1 if the system has the type `DBusBasicValue'. */
110
#define HAVE_DBUSBASICVALUE 1
111
112
/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC', and to 0 if
113
you don't. */
114
#define HAVE_DECL_CLOCK_MONOTONIC 1
115
116
/* Define to 1 if you have the declaration of `cygwin_conv_path', and to 0 if
117
you don't. */
118
/* #undef HAVE_DECL_CYGWIN_CONV_PATH */
119
120
/* Have getopt function */
121
#define HAVE_DECL_GETOPT 1
122
123
/* Have nanosleep function */
124
#define HAVE_DECL_NANOSLEEP 1
125
126
/* Define to 1 if you have the declaration of `PRIu32', and to 0 if you don't.
127
*/
128
#define HAVE_DECL_PRIU32 1
129
130
/* Define to 1 if you have the declaration of `PRIu64', and to 0 if you don't.
131
*/
132
#define HAVE_DECL_PRIU64 1
133
134
/* Define to 1 if you have the declaration of `PRIx32', and to 0 if you don't.
135
*/
136
#define HAVE_DECL_PRIX32 1
137
138
/* Define to 1 if you have the declaration of `SCNu64', and to 0 if you don't.
139
*/
140
#define HAVE_DECL_SCNU64 1
141
142
/* Define to 1 if you have the <dirent.h> header file. */
143
#define HAVE_DIRENT_H 1
144
145
/* Define if you have the GNU dld library. */
146
/* #undef HAVE_DLD */
147
148
/* Define to 1 if you have the <dld.h> header file. */
149
/* #undef HAVE_DLD_H */
150
151
/* Define to 1 if you have the `dlerror' function. */
152
#define HAVE_DLERROR 1
153
154
/* Define to 1 if you have the <dlfcn.h> header file. */
155
#define HAVE_DLFCN_H 1
156
157
/* Define to 1 if you have the <dl.h> header file. */
158
/* #undef HAVE_DL_H */
159
160
/* Define if you have the _dyld_func_lookup function. */
161
/* #undef HAVE_DYLD */
162
163
/* Define to 1 if you have the <errno.h> header file. */
164
#define HAVE_ERRNO_H 1
165
166
/* Define to 1 if the system has the type `error_t'. */
167
#define HAVE_ERROR_T 1
168
169
/* Define to 1 if you have the `getopt' function. */
170
#define HAVE_GETOPT 1
171
172
/* Define to 1 if you have the <getopt.h> header file. */
173
#define HAVE_GETOPT_H 1
174
175
/* Define to 1 if you have the <glib.h> header file. */
176
#define HAVE_GLIB_H 1
177
178
/* Define to 1 if you have the <gnutls/gnutls.h> header file. */
179
#define HAVE_GNUTLS_GNUTLS_H 1
180
181
/* Define to 1 if you have the `gnutls_sec_param_to_pk_bits' function. */
182
#define HAVE_GNUTLS_SEC_PARAM_TO_PK_BITS 1
183
184
/* Define to 1 if you have the <grp.h> header file. */
185
#define HAVE_GRP_H 1
186
187
/* Do we have incompatible printw() in curses library? */
188
/* #undef HAVE_INCOMPATIBLE_PRINTW */
189
190
/* Define to 1 if you have the <inttypes.h> header file. */
191
#define HAVE_INTTYPES_H 1
192
193
/* Have qb_ipcc_get_buffer_size function */
194
#define HAVE_IPCS_GET_BUFFER_SIZE 1
195
196
/* Define to 1 if you have the `bz2' library (-lbz2). */
197
#define HAVE_LIBBZ2 1
198
199
/* Define to 1 if you have the `c' library (-lc). */
200
#define HAVE_LIBC 1
201
202
/* have curses library */
203
/* #undef HAVE_LIBCURSES */
204
205
/* Define to 1 if you have the `dl' library (-ldl). */
206
#define HAVE_LIBDL 1
207
208
/* Define if libdlloader will be built on this platform */
209
#define HAVE_LIBDLLOADER 1
210
211
/* Define to 1 if you have the `gnugetopt' library (-lgnugetopt). */
212
/* #undef HAVE_LIBGNUGETOPT */
213
214
/* Define to 1 if you have the `gnutls' library (-lgnutls). */
215
#define HAVE_LIBGNUTLS 1
216
217
/* have ncurses library */
218
#define HAVE_LIBNCURSES 1
219
220
/* Define to 1 if you have the `pam' library (-lpam). */
221
#define HAVE_LIBPAM 1
222
223
/* Define to 1 if you have the `pils' library (-lpils). */
224
/* #undef HAVE_LIBPILS */
225
226
/* Define to 1 if you have the `plumb' library (-lplumb). */
227
/* #undef HAVE_LIBPLUMB */
228
229
/* Define to 1 if you have the `qb' library (-lqb). */
230
#define HAVE_LIBQB 1
231
232
/* Define to 1 if you have the `rt' library (-lrt). */
233
#define HAVE_LIBRT 1
234
235
/* Define to 1 if you have the `socket' library (-lsocket). */
236
/* #undef HAVE_LIBSOCKET */
237
238
/* Define to 1 if you have the `uuid' library (-luuid). */
239
#define HAVE_LIBUUID 1
240
241
/* Define to 1 if you have the <libxml/xpath.h> header file. */
242
#define HAVE_LIBXML_XPATH_H 1
243
244
/* Define to 1 if you have the `xslt' library (-lxslt). */
245
#define HAVE_LIBXSLT 1
246
247
/* Define to 1 if you have the <libxslt/xslt.h> header file. */
248
#define HAVE_LIBXSLT_XSLT_H 1
249
250
/* Define to 1 if you have the <limits.h> header file. */
251
#define HAVE_LIMITS_H 1
252
253
/* Define to 1 if you have the <linux/swab.h> header file. */
254
#define HAVE_LINUX_SWAB_H 1
255
256
/* Define this if a modern libltdl is already installed */
257
#define HAVE_LTDL 1
258
259
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
260
/* #undef HAVE_MACH_O_DYLD_H */
261
262
/* Define to 1 if you have the <malloc.h> header file. */
263
#define HAVE_MALLOC_H 1
264
265
/* Define to 1 if you have the <memory.h> header file. */
266
#define HAVE_MEMORY_H 1
267
268
/* Define to 1 if you have the `nanosleep' function. */
269
#define HAVE_NANOSLEEP 1
270
271
/* Define to 1 if you have the <ncurses.h> header file. */
272
#define HAVE_NCURSES_H 1
273
274
/* Define to 1 if you have the <ncurses/ncurses.h> header file. */
275
#define HAVE_NCURSES_NCURSES_H 1
276
277
/* Define to 1 if you have the <netdb.h> header file. */
278
#define HAVE_NETDB_H 1
279
280
/* Define to 1 if you have the <netinet/in.h> header file. */
281
#define HAVE_NETINET_IN_H 1
282
283
/* Define to 1 if you have the <netinet/ip.h> header file. */
284
#define HAVE_NETINET_IP_H 1
285
286
/* Define to 1 if you have the `NoSuchFunctionName' function. */
287
/* #undef HAVE_NOSUCHFUNCTIONNAME */
288
289
/* Define to 1 if you have the `opendir' function. */
290
#define HAVE_OPENDIR 1
291
292
/* Define to 1 if libcrypto is used for MD5. */
293
/* #undef HAVE_OPENSSL_MD5 */
294
295
/* Define to 1 if you have the <pam/pam_appl.h> header file. */
296
/* #undef HAVE_PAM_PAM_APPL_H */
297
298
/* Define if libtool can extract symbol lists from object files. */
299
#define HAVE_PRELOADED_SYMBOLS 1
300
301
/* Define to 1 if you have the <pwd.h> header file. */
302
#define HAVE_PWD_H 1
303
304
/* Define to 1 if you have the `qb_ipcs_connection_get_buffer_size' function.
305
*/
306
#define HAVE_QB_IPCS_CONNECTION_GET_BUFFER_SIZE 1
307
308
/* Define to 1 if you have the `readdir' function. */
309
#define HAVE_READDIR 1
310
311
/* Define to 1 if you have the `scandir' function. */
312
#define HAVE_SCANDIR 1
313
314
/* Define to 1 if you have the `sched_setscheduler' function. */
315
#define HAVE_SCHED_SETSCHEDULER 1
316
317
/* Define to 1 if you have the <security/pam_appl.h> header file. */
318
#define HAVE_SECURITY_PAM_APPL_H 1
319
320
/* Define to 1 if you have the `setenv' function. */
321
#define HAVE_SETENV 1
322
323
/* Define to 1 if you have the <sgtty.h> header file. */
324
#define HAVE_SGTTY_H 1
325
326
/* Define if you have the shl_load function. */
327
/* #undef HAVE_SHL_LOAD */
328
329
/* Define if sighandler_t available */
330
/* #undef HAVE_SIGHANDLER_T */
331
332
/* Define to 1 if you have the <signal.h> header file. */
333
#define HAVE_SIGNAL_H 1
334
335
/* Define to 1 if you have the <stdarg.h> header file. */
336
#define HAVE_STDARG_H 1
337
338
/* Define to 1 if you have the <stddef.h> header file. */
339
#define HAVE_STDDEF_H 1
340
341
/* Define to 1 if you have the <stdint.h> header file. */
342
#define HAVE_STDINT_H 1
343
344
/* Define to 1 if you have the <stdio.h> header file. */
345
#define HAVE_STDIO_H 1
346
347
/* Define to 1 if you have the <stdlib.h> header file. */
348
#define HAVE_STDLIB_H 1
349
350
/* Define to 1 if you have the <stonith/stonith.h> header file. */
351
/* #undef HAVE_STONITH_STONITH_H */
352
353
/* Define to 1 if you have the `strchrnul' function. */
354
#define HAVE_STRCHRNUL 1
355
356
/* Define to 1 if you have the `strerror' function. */
357
#define HAVE_STRERROR 1
358
359
/* Define to 1 if you have the <strings.h> header file. */
360
#define HAVE_STRINGS_H 1
361
362
/* Define to 1 if you have the <string.h> header file. */
363
#define HAVE_STRING_H 1
364
365
/* Define to 1 if you have the `strlcat' function. */
366
/* #undef HAVE_STRLCAT */
367
368
/* Define to 1 if you have the `strlcpy' function. */
369
/* #undef HAVE_STRLCPY */
370
371
/* Define to 1 if you have the `strndup' function. */
372
#define HAVE_STRNDUP 1
373
374
/* Define to 1 if you have the `strnlen' function. */
375
#define HAVE_STRNLEN 1
376
377
/* Define this if struct dirent has d_type */
378
#define HAVE_STRUCT_DIRENT_D_TYPE 1
379
380
/* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
381
#define HAVE_STRUCT_TM_TM_GMTOFF 1
382
383
/* Define to 1 if you have the <sys/dir.h> header file. */
384
#define HAVE_SYS_DIR_H 1
385
386
/* Define to 1 if you have the <sys/dl.h> header file. */
387
/* #undef HAVE_SYS_DL_H */
388
389
/* Define to 1 if you have the <sys/ioctl.h> header file. */
390
#define HAVE_SYS_IOCTL_H 1
391
392
/* Define to 1 if you have the <sys/param.h> header file. */
393
#define HAVE_SYS_PARAM_H 1
394
395
/* Define to 1 if you have the <sys/reboot.h> header file. */
396
#define HAVE_SYS_REBOOT_H 1
397
398
/* Define to 1 if you have the <sys/resource.h> header file. */
399
#define HAVE_SYS_RESOURCE_H 1
400
401
/* Define to 1 if you have the <sys/signalfd.h> header file. */
402
#define HAVE_SYS_SIGNALFD_H 1
403
404
/* Define to 1 if you have the <sys/socket.h> header file. */
405
#define HAVE_SYS_SOCKET_H 1
406
407
/* Define to 1 if you have the <sys/sockio.h> header file. */
408
/* #undef HAVE_SYS_SOCKIO_H */
409
410
/* Define to 1 if you have the <sys/stat.h> header file. */
411
#define HAVE_SYS_STAT_H 1
412
413
/* Define to 1 if you have the <sys/time.h> header file. */
414
#define HAVE_SYS_TIME_H 1
415
416
/* Define to 1 if you have the <sys/types.h> header file. */
417
#define HAVE_SYS_TYPES_H 1
418
419
/* Define to 1 if you have the <sys/utsname.h> header file. */
420
#define HAVE_SYS_UTSNAME_H 1
421
422
/* Define to 1 if you have the <sys/wait.h> header file. */
423
#define HAVE_SYS_WAIT_H 1
424
425
/* Define to 1 if you have the <time.h> header file. */
426
#define HAVE_TIME_H 1
427
428
/* Define to 1 if you have the <unistd.h> header file. */
429
#define HAVE_UNISTD_H 1
430
431
/* Define to 1 if you have the `unsetenv' function. */
432
#define HAVE_UNSETENV 1
433
434
/* Define to 1 if you have the `uuid_unparse' function. */
435
#define HAVE_UUID_UNPARSE 1
436
437
/* Define to 1 if you have the <uuid/uuid.h> header file. */
438
#define HAVE_UUID_UUID_H 1
439
440
/* This value is set to 1 to indicate that the system argz facility works */
441
#define HAVE_WORKING_ARGZ 1
442
443
/* */
444
#define HAVE___PROGNAME 1
445
446
/* Whether enum qb_log_conf supports QB_LOG_CONF_ELLIPSIS */
447
/* #undef HAVE_qb_log_conf_QB_LOG_CONF_ELLIPSIS */
448
449
/* Whether enum qb_log_conf supports QB_LOG_CONF_MAX_LINE_LEN */
450
/* #undef HAVE_qb_log_conf_QB_LOG_CONF_MAX_LINE_LEN */
451
452
/* Location for CIB secrets */
453
#define LRM_CIBSECRETS_DIR "/var/lib/pacemaker/lrm/secrets"
454
455
/* Define if the OS needs help to load dependent libraries for dlopen(). */
456
/* #undef LTDL_DLOPEN_DEPLIBS */
457
458
/* Define to the system default library search path. */
459
#define LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib64//bind9-export/:/usr/lib64/dyninst:/usr/lib64/iscsi:/usr/lib64/llvm:/usr/lib64/mysql"
460
461
/* The archive extension */
462
#define LT_LIBEXT "a"
463
464
/* The archive prefix */
465
#define LT_LIBPREFIX "lib"
466
467
/* Define to the extension used for runtime loadable modules, say, ".so". */
468
#define LT_MODULE_EXT ".so"
469
470
/* Define to the name of the environment variable that determines the run-time
471
module search path. */
472
#define LT_MODULE_PATH_VAR "LD_LIBRARY_PATH"
473
474
/* Define to the sub-directory in which libtool stores uninstalled libraries.
475
*/
476
#define LT_OBJDIR ".libs/"
477
478
/* Define to the shared library suffix, say, ".dylib". */
479
/* #undef LT_SHARED_EXT */
480
481
/* Directory for nagios plugins metadata */
482
#define NAGIOS_METADATA_DIR "/usr/share/nagios/plugins-metadata"
483
484
/* Directory for nagios plugins */
485
#define NAGIOS_PLUGIN_DIR "/usr/libexec/nagios/plugins"
486
487
/* Define if dlsym() requires a leading underscore in symbol names. */
488
/* #undef NEED_USCORE */
489
490
/* Location for OCF RAs */
491
#define OCF_RA_DIR "/usr/lib/ocf/resource.d"
492
493
/* Compiling for BSD platform */
494
/* #undef ON_BSD */
495
496
/* Compiling for Darwin platform */
497
/* #undef ON_DARWIN */
498
499
/* Compiling for Linux platform */
500
#define ON_LINUX 1
501
502
/* Compiling for Solaris platform */
503
/* #undef ON_SOLARIS */
504
505
/* Where to keep configuration files like authkey */
506
#define PACEMAKER_CONFIG_DIR "/etc/pacemaker"
507
508
/* Current pacemaker version */
509
#define PACEMAKER_VERSION "2.0.4"
510
511
/* Name of package */
512
#define PACKAGE "pacemaker"
513
514
/* Define to the address where bug reports for this package should be sent. */
515
#define PACKAGE_BUGREPORT "users@clusterlabs.org"
516
517
/* Define to the full name of this package. */
518
#define PACKAGE_NAME "pacemaker"
519
520
/* Define to the full name and version of this package. */
521
#define PACKAGE_STRING "pacemaker 2.0.4"
522
523
/* Define to the one symbol short name of this package. */
524
#define PACKAGE_TARNAME "pacemaker"
525
526
/* Define to the home page for this package. */
527
#define PACKAGE_URL "https://ClusterLabs.org/pacemaker/"
528
529
/* Define to the version of this package. */
530
#define PACKAGE_VERSION "2.0.4"
531
532
/* GnuTLS cipher priorities */
533
#define PCMK_GNUTLS_PRIORITIES "NORMAL"
534
535
/* Location for modifiable per-process data */
536
#define PCMK_RUN_DIR "/var/run"
537
538
/* Where to keep scheduler outputs */
539
#define PE_STATE_DIR "/var/lib/pacemaker/pengine"
540
541
/* Location for Red Hat Stonith agents */
542
#define RH_STONITH_DIR "/usr/sbin"
543
544
/* Prefix for Red Hat Stonith agents */
545
#define RH_STONITH_PREFIX "fence_"
546
547
/* Location for system binaries */
548
#define SBIN_DIR "/usr/sbin"
549
550
/* The size of `char', as computed by sizeof. */
551
#define SIZEOF_CHAR 1
552
553
/* The size of `int', as computed by sizeof. */
554
#define SIZEOF_INT 4
555
556
/* The size of `long', as computed by sizeof. */
557
#define SIZEOF_LONG 8
558
559
/* The size of `long long', as computed by sizeof. */
560
#define SIZEOF_LONG_LONG 8
561
562
/* The size of `short', as computed by sizeof. */
563
#define SIZEOF_SHORT 2
564
565
/* */
566
#define SSCANF_HAS_M 1
567
568
/* Define to 1 if you have the ANSI C header files. */
569
#define STDC_HEADERS 1
570
571
/* Support CIB secrets */
572
#define SUPPORT_CIBSECRETS 1
573
574
/* Support the Corosync messaging and membership layer */
575
#define SUPPORT_COROSYNC 1
576
577
/* Support dbus */
578
#define SUPPORT_DBUS 1
579
580
/* Support nagios plugins */
581
#define SUPPORT_NAGIOS 1
582
583
/* Support for profiling */
584
#define SUPPORT_PROFILING 0
585
586
/* Support systemd based system services */
587
#define SUPPORT_SYSTEMD 1
588
589
/* Support upstart based system services */
590
#define SUPPORT_UPSTART 0
591
592
/* Correct format specifier for U32T */
593
#define U32T PRIu32
594
595
/* Correct format specifier for U64T */
596
#define U64T PRIu64
597
598
/* Correct format specifier for U64TS */
599
#define U64TS SCNu64
600
601
/* Define if Unix socket auth method is getpeereid(s, &uid, &gid) */
602
/* #undef US_AUTH_GETPEEREID */
603
604
/* Define if Unix socket auth method is getpeercred(s, &ucred) */
605
/* #undef US_AUTH_GETPEERUCRED */
606
607
/* Define if Unix socket auth method is getsockopt(s, SO_PEERCRED,
608
&sockpeercred, ...) */
609
/* #undef US_AUTH_PEERCRED_SOCKPEERCRED */
610
611
/* Define if Unix socket auth method is getsockopt(s, SO_PEERCRED, &ucred,
612
...) */
613
#define US_AUTH_PEERCRED_UCRED 1
614
615
/* Valgrind command */
616
#define VALGRIND_BIN "/usr/bin/valgrind"
617
618
/* Version number of package */
619
#define VERSION "2.0.4"
620
621
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
622
significant byte first (like Motorola and SPARC, unlike Intel). */
623
#if defined AC_APPLE_UNIVERSAL_BUILD
624
# if defined __BIG_ENDIAN__
625
# define WORDS_BIGENDIAN 1
626
# endif
627
#else
628
# ifndef WORDS_BIGENDIAN
629
/* # undef WORDS_BIGENDIAN */
630
# endif
631
#endif
632
633
/* Correct format specifier for X32T */
634
#define X32T PRIx32
635
636
/* The _Noreturn keyword of C11. */
637
#ifndef _Noreturn
638
# if (defined __cplusplus \
639
&& ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
640
|| (defined _MSC_VER && 1900 <= _MSC_VER)) \
641
&& 0)
642
/* [[noreturn]] is not practically usable, because with it the syntax
643
extern _Noreturn void func (...);
644
would not be valid; such a declaration would only be valid with 'extern'
645
and '_Noreturn' swapped, or without the 'extern' keyword. However, some
646
AIX system header files and several gnulib header files use precisely
647
this syntax with 'extern'. */
648
# define _Noreturn [[noreturn]]
649
# elif ((!defined __cplusplus || defined __clang__) \
650
&& (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
651
|| 4 < __GNUC__ + (7 <= __GNUC_MINOR__) \
652
|| (defined __apple_build_version__ \
653
? 6000000 <= __apple_build_version__ \
654
: 3 < __clang_major__ + (5 <= __clang_minor__))))
655
/* _Noreturn works as-is. */
656
# elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C
657
# define _Noreturn __attribute__ ((__noreturn__))
658
# elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
659
# define _Noreturn __declspec (noreturn)
660
# else
661
# define _Noreturn
662
# endif
663
#endif
664
665
666
/* Define so that glibc/gnulib argp.h does not typedef error_t. */
667
/* #undef __error_t_defined */
668
669
/* The _GL_ASYNC_SAFE marker should be attached to functions that are
670
signal handlers (for signals other than SIGABRT, SIGPIPE) or can be
671
invoked from such signal handlers. Such functions have some restrictions:
672
* All functions that it calls should be marked _GL_ASYNC_SAFE as well,
673
or should be listed as async-signal-safe in POSIX
674
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04>
675
section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in
676
particular, are NOT async-signal-safe.
677
* All memory locations (variables and struct fields) that these functions
678
access must be marked 'volatile'. This holds for both read and write
679
accesses. Otherwise the compiler might optimize away stores to and
680
reads from such locations that occur in the program, depending on its
681
data flow analysis. For example, when the program contains a loop
682
that is intended to inspect a variable set from within a signal handler
683
while (!signal_occurred)
684
;
685
the compiler is allowed to transform this into an endless loop if the
686
variable 'signal_occurred' is not declared 'volatile'.
687
Additionally, recall that:
688
* A signal handler should not modify errno (except if it is a handler
689
for a fatal signal and ends by raising the same signal again, thus
690
provoking the termination of the process). If it invokes a function
691
that may clobber errno, it needs to save and restore the value of
692
errno. */
693
#define _GL_ASYNC_SAFE
694
695
696
/* Define to a type to use for `error_t' if it is not otherwise available. */
697
/* #undef error_t */
698
699
/* Please see the Gnulib manual for how to use these macros.
700
701
Suppress extern inline with HP-UX cc, as it appears to be broken; see
702
<https://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
703
704
Suppress extern inline with Sun C in standards-conformance mode, as it
705
mishandles inline functions that call each other. E.g., for 'inline void f
706
(void) { } inline void g (void) { f (); }', c99 incorrectly complains
707
'reference to static identifier "f" in extern inline function'.
708
This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
709
710
Suppress extern inline (with or without __attribute__ ((__gnu_inline__)))
711
on configurations that mistakenly use 'static inline' to implement
712
functions or macros in standard C headers like <ctype.h>. For example,
713
if isdigit is mistakenly implemented via a static inline function,
714
a program containing an extern inline function that calls isdigit
715
may not work since the C standard prohibits extern inline functions
716
from calling static functions (ISO C 99 section 6.7.4.(3).
717
This bug is known to occur on:
718
719
OS X 10.8 and earlier; see:
720
https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
721
722
DragonFly; see
723
http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log
724
725
FreeBSD; see:
726
https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
727
728
OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
729
for clang but remains for g++; see <https://trac.macports.org/ticket/41033>.
730
Assume DragonFly and FreeBSD will be similar.
731
732
GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
733
inline semantics, unless -fgnu89-inline is used. It defines a macro
734
__GNUC_STDC_INLINE__ to indicate this situation or a macro
735
__GNUC_GNU_INLINE__ to indicate the opposite situation.
736
GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline
737
semantics but warns, unless -fgnu89-inline is used:
738
warning: C99 inline functions are not supported; using GNU89
739
warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
740
It defines a macro __GNUC_GNU_INLINE__ to indicate this situation.
741
*/
742
#if (((defined __APPLE__ && defined __MACH__) \
743
|| defined __DragonFly__ || defined __FreeBSD__) \
744
&& (defined __header_inline \
745
? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
746
&& ! defined __clang__) \
747
: ((! defined _DONT_USE_CTYPE_INLINE_ \
748
&& (defined __GNUC__ || defined __cplusplus)) \
749
|| (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
750
&& defined __GNUC__ && ! defined __cplusplus))))
751
# define _GL_EXTERN_INLINE_STDHEADER_BUG
752
#endif
753
#if ((__GNUC__ \
754
? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
755
: (199901L <= __STDC_VERSION__ \
756
&& !defined __HP_cc \
757
&& !defined __PGI \
758
&& !(defined __SUNPRO_C && __STDC__))) \
759
&& !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
760
# define _GL_INLINE inline
761
# define _GL_EXTERN_INLINE extern inline
762
# define _GL_EXTERN_INLINE_IN_USE
763
#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
764
&& !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
765
# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
766
/* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
767
# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
768
# else
769
# define _GL_INLINE extern inline
770
# endif
771
# define _GL_EXTERN_INLINE extern
772
# define _GL_EXTERN_INLINE_IN_USE
773
#else
774
# define _GL_INLINE static _GL_UNUSED
775
# define _GL_EXTERN_INLINE static _GL_UNUSED
776
#endif
777
778
/* In GCC 4.6 (inclusive) to 5.1 (exclusive),
779
suppress bogus "no previous prototype for 'FOO'"
780
and "no previous declaration for 'FOO'" diagnostics,
781
when FOO is an inline function in the header; see
782
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and
783
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */
784
#if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
785
# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
786
# define _GL_INLINE_HEADER_CONST_PRAGMA
787
# else
788
# define _GL_INLINE_HEADER_CONST_PRAGMA \
789
_Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
790
# endif
791
# define _GL_INLINE_HEADER_BEGIN \
792
_Pragma ("GCC diagnostic push") \
793
_Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
794
_Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
795
_GL_INLINE_HEADER_CONST_PRAGMA
796
# define _GL_INLINE_HEADER_END \
797
_Pragma ("GCC diagnostic pop")
798
#else
799
# define _GL_INLINE_HEADER_BEGIN
800
# define _GL_INLINE_HEADER_END
801
#endif
802
803
/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
804
the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
805
earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
806
__APPLE__ && __MACH__ test for Mac OS X.
807
__APPLE_CC__ tests for the Apple compiler and its version.
808
__STDC_VERSION__ tests for the C99 mode. */
809
#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
810
# define __GNUC_STDC_INLINE__ 1
811
#endif
812
813
/* Define to the equivalent of the C99 'restrict' keyword, or to
814
nothing if this is not supported. Do not define if restrict is
815
supported directly. */
816
#define restrict __restrict
817
/* Work around a bug in older versions of Sun C++, which did not
818
#define __restrict__ or support _Restrict or __restrict__
819
even though the corresponding Sun C compiler ended up with
820
"#define restrict _Restrict" or "#define restrict __restrict__"
821
in the previous line. This workaround can be removed once
822
we assume Oracle Developer Studio 12.5 (2016) or later. */
823
#if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
824
# define _Restrict
825
# define __restrict__
826
#endif
827
828
/* Define to `unsigned int' if <sys/types.h> does not define. */
829
/* #undef size_t */
830
831
/* Define as a marker that can be attached to declarations that might not
832
be used. This helps to reduce warnings, such as from
833
GCC -Wunused-parameter. */
834
#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
835
# define _GL_UNUSED __attribute__ ((__unused__))
836
#else
837
# define _GL_UNUSED
838
#endif
839
/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
840
is a misnomer outside of parameter lists. */
841
#define _UNUSED_PARAMETER_ _GL_UNUSED
842
843
/* gcc supports the "unused" attribute on possibly unused labels, and
844
g++ has since version 4.5. Note to support C++ as well as C,
845
_GL_UNUSED_LABEL should be used with a trailing ; */
846
#if !defined __cplusplus || __GNUC__ > 4 \
847
|| (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
848
# define _GL_UNUSED_LABEL _GL_UNUSED
849
#else
850
# define _GL_UNUSED_LABEL
851
#endif
852
853
/* The __pure__ attribute was added in gcc 2.96. */
854
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
855
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
856
#else
857
# define _GL_ATTRIBUTE_PURE
/* empty */
858
#endif
859
860
/* The __const__ attribute was added in gcc 2.95. */
861
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
862
# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
863
#else
864
# define _GL_ATTRIBUTE_CONST
/* empty */
865
#endif
866
867
/* The __malloc__ attribute was added in gcc 3. */
868
#if 3 <= __GNUC__
869
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
870
#else
871
# define _GL_ATTRIBUTE_MALLOC
/* empty */
872
#endif
873
Generated on Mon Nov 23 2020 15:38:12 for pacemaker by
1.8.5