pg_config.h.in 21.4 KB
Newer Older
1 2 3
/*
 * PostgreSQL configuration-settings file.
 *
4
 * pg_config.h.in is processed by configure to produce pg_config.h.
5
 *
6
 * If you want to modify any of the tweakable settings in Part 2
7 8
 * of this file, you can do it in pg_config.h.in before running configure,
 * or in pg_config.h afterwards.  Of course, if you edit pg_config.h, then your
9 10
 * changes will be overwritten the next time you run configure.
 *
11
 * $Id: pg_config.h.in,v 1.13 2001/11/15 16:35:19 momjian Exp $
12 13
 */

14 15
#ifndef PG_CONFIG_H
#define PG_CONFIG_H
16

17

18
/*
19 20 21 22 23 24 25 26 27 28 29 30
 *------------------------------------------------------------------------
 * Part 1: feature symbols and limits that are set by configure based on
 * user-supplied switches.  This is first so that stuff in Part 2 can
 * depend on these values.
 *
 * Beware of "fixing" configure-time mistakes by editing these values,
 * since configure may have inserted the settings in other files as well
 * as here.  Best to rerun configure if you forgot --enable-multibyte
 * or whatever.
 *------------------------------------------------------------------------
 */

31 32 33 34 35
/* The version number is actually hard-coded into configure.in */
#undef PG_VERSION
/* A canonical string containing the version number, platform, and C compiler */
#undef PG_VERSION_STR

36 37 38 39 40 41 42 43 44
/* Set to 1 if you want LOCALE support (--enable-locale) */
#undef USE_LOCALE

/* Set to 1 if you want cyrillic recode (--enable-recode) */
#undef CYR_RECODE

/* Set to 1 if you want to use multibyte characters (--enable-multibyte) */
#undef MULTIBYTE

45 46 47 48
#ifdef MULTIBYTE
/* --enable-multibyte implies UNICODE_CONVERSION */
#define UNICODE_CONVERSION
#endif
49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
/* Set to 1 if you want ASSERT checking (--enable-cassert) */
#undef USE_ASSERT_CHECKING

/* Set to 1 to use syslog() to write postmaster log (--enable-syslog) */
#undef ENABLE_SYSLOG

/* Define to build with Kerberos 4 support (--with-krb4[=DIR]) */
#undef KRB4

/* Define to build with Kerberos 5 support (--with-krb5[=DIR]) */
#undef KRB5

/* Kerberos name of the Postgres service principal (--with-krb-srvnam=NAME) */
#undef PG_KRB_SRVNAM

65 66
/* Define to build with (Open)SSL support (--with-openssl[=DIR]) */
#undef USE_SSL
67

B
Bruce Momjian 已提交
68 69 70
/* Define to build with PAM Support */
#undef USE_PAM

71 72 73 74 75 76 77 78 79 80 81 82 83
/* 
 * DEF_PGPORT is the TCP port number on which the Postmaster listens and
 * which clients will try to connect to.  This is just a default value;
 * it can be overridden at postmaster or client startup.  It's awfully
 * convenient if your clients have the right default compiled in, though.
 * (--with-pgport=PORTNUM)
 */ 
#undef DEF_PGPORT
/* ... and once more as a string constant instead */
#undef DEF_PGPORT_STR

/*
 * Default soft limit on number of backend server processes per postmaster;
84
 * this is just the default setting for the postmaster's -N switch.
85
 * (--with-maxbackends=N)
86
 */
87 88
#undef DEF_MAXBACKENDS

P
Peter Eisentraut 已提交
89 90 91 92 93
/* --enable-nls */
#undef ENABLE_NLS

/* location of locale files */
#undef LOCALEDIR
94

95 96 97 98 99 100 101
/* Define to build the ODBC driver for unixODBC */
#undef WITH_UNIXODBC

/* Define to build the ODBC driver for iODBC */
#undef WITH_IODBC


102 103 104 105 106 107 108 109 110 111
/*
 *------------------------------------------------------------------------
 * Part 2: feature symbols and limits that are user-configurable, but
 * only by editing this file ... there's no configure support for them.
 *
 * Editing this file and doing a full rebuild (and an initdb if noted)
 * should be sufficient to change any of these.
 *------------------------------------------------------------------------
 */

112 113 114 115 116 117 118 119 120
/*
 * Default number of buffers in shared buffer pool (each of size BLCKSZ).
 * This is just the default setting for the postmaster's -B switch.
 * Perhaps it ought to be configurable from a configure switch.
 * NOTE: default setting corresponds to the minimum number of buffers
 * that postmaster.c will allow for the default MaxBackends value.
 */
#define DEF_NBUFFERS (DEF_MAXBACKENDS > 8 ? DEF_MAXBACKENDS * 2 : 16)

121
/*
122 123 124 125
 * Size of a disk block --- this also limits the size of a tuple.
 * You can set it bigger if you need bigger tuples (although TOAST
 * should reduce the need to have large tuples, since fields can now
 * be spread across multiple tuples).
126
 *
127 128 129
 * The maximum possible value of BLCKSZ is currently 2^15 (32768).
 * This is determined by the 15-bit widths of the lp_off and lp_len
 * fields in ItemIdData (see include/storage/itemid.h).
130
 *
131
 * CAUTION: changing BLCKSZ requires an initdb.
132
 */
133 134
#define BLCKSZ	8192

135 136 137 138 139
/*
 * RELSEG_SIZE is the maximum number of blocks allowed in one disk file.
 * Thus, the maximum size of a single file is RELSEG_SIZE * BLCKSZ;
 * relations bigger than that are divided into multiple files.
 *
140 141 142
 * CAUTION: RELSEG_SIZE * BLCKSZ must be less than your OS' limit on file
 * size.  This is typically 2Gb or 4Gb in a 32-bit operating system.  By
 * default, we make the limit 1Gb to avoid any possible integer-overflow
143
 * problems within the OS.  A limit smaller than necessary only means we
144 145 146
 * divide a large relation into more chunks than necessary, so it seems
 * best to err in the direction of a small limit.  (Besides, a power-of-2
 * value saves a few cycles in md.c.)
147
 *
148
 * CAUTION: changing RELSEG_SIZE requires an initdb.
149
 */
150
#define RELSEG_SIZE	(0x40000000 / BLCKSZ)
151

152
/*
153
 * Maximum number of columns in an index and maximum number of arguments
154
 * to a function. They must be the same value.
155
 *
156 157 158
 * The minimum value is 8 (index creation uses 8-argument functions).
 * There is no specific upper limit, although large values will waste
 * system-table space and processing time.
159
 *
160 161 162 163 164 165
 * CAUTION: changing these requires an initdb.
 *
 * BTW: if you need to call dynamically-loaded old-style C functions that
 * have more than 16 arguments, you will also need to add cases to the
 * switch statement in fmgr_oldstyle() in src/backend/utils/fmgr/fmgr.c.
 * But consider converting such functions to new-style instead...
166
 */
167
#define INDEX_MAX_KEYS		16
168
#define FUNC_MAX_ARGS		INDEX_MAX_KEYS
169

170 171 172 173 174
/*
 * System default value for pg_attribute.attstattarget
 */
#define DEFAULT_ATTSTATTARGET	10

B
Bruce Momjian 已提交
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
/*
 * Define this to make libpgtcl's "pg_result -assign" command process C-style
 * backslash sequences in returned tuple data and convert Postgres array
 * attributes into Tcl lists.  CAUTION: this conversion is *wrong* unless
 * you install the routines in contrib/string/string_io to make the backend
 * produce C-style backslash sequences in the first place.
 */
/* #define TCL_ARRAYS */

/*
 * User locks are handled totally on the application side as long term
 * cooperative locks which extend beyond the normal transaction boundaries.
 * Their purpose is to indicate to an application that someone is `working'
 * on an item.  Define this flag to enable user locks.  You will need the
 * loadable module user-locks.c to use this feature.
 */
#define USER_LOCKS

/*
 * Define this if you want psql to _always_ ask for a username and a password
 * for password authentication.
 */
/* #define PSQL_ALWAYS_GET_PASSWORDS */

/*
 * Define this if you want to allow the lo_import and lo_export SQL functions
 * to be executed by ordinary users.  By default these functions are only
 * available to the Postgres superuser.  CAUTION: these functions are
 * SECURITY HOLES since they can read and write any file that the Postgres
 * backend has permission to access.  If you turn this on, don't say we
 * didn't warn you.
 */
/* #define ALLOW_DANGEROUS_LO_FUNCTIONS */

/*
 * Use btree bulkload code: 
 * this code is moderately slow (~10% slower) compared to the regular
 * btree (insertion) build code on sorted or well-clustered data.  on
 * random data, however, the insertion build code is unusable -- the
 * difference on a 60MB heap is a factor of 15 because the random
 * probes into the btree thrash the buffer pool.
 *
 * Great thanks to Paul M. Aoki (aoki@CS.Berkeley.EDU)
 */
#define FASTBUILD /* access/nbtree/nbtsort.c */

221 222 223 224 225 226 227 228 229 230 231 232
/*
 * MAXPGPATH: standard size of a pathname buffer in Postgres (hence,
 * maximum usable pathname length is one less).
 *
 * We'd use a standard system header symbol for this, if there weren't
 * so many to choose from: MAXPATHLEN, _POSIX_PATH_MAX, MAX_PATH, PATH_MAX
 * are all defined by different "standards", and often have different
 * values on the same platform!  So we just punt and use a reasonably
 * generous setting here.
 */
#define MAXPGPATH		1024

233 234 235 236 237
/*
 * DEFAULT_MAX_EXPR_DEPTH: default value of max_expr_depth SET variable.
 */
#define DEFAULT_MAX_EXPR_DEPTH	10000

238 239 240 241 242 243 244 245 246 247
/*
 * PG_SOMAXCONN: maximum accept-queue length limit passed to listen(2).
 * You'd think we should use SOMAXCONN from <sys/socket.h>, but on many
 * systems that symbol is much smaller than the kernel's actual limit.
 * In any case, this symbol need be twiddled only if you have a kernel
 * that refuses large limit values, rather than silently reducing the
 * value to what it can handle (which is what most if not all Unixen do).
 */
#define PG_SOMAXCONN	10000

248 249 250 251
/*
 * You can try changing this if you have a machine with bytes of another
 * size, but no guarantee...
 */
252
#define BITS_PER_BYTE		8
253

254
/*
255
 * Define this if your operating system supports AF_UNIX family sockets.
256
 */
257
#if !defined(__QNX__) && !defined(__BEOS__)
258 259 260
# define HAVE_UNIX_SOCKETS 1
#endif

261 262 263 264 265 266 267 268 269 270
/*
 * This is the default directory in which AF_UNIX socket files are placed.
 * Caution: changing this risks breaking your existing client applications,
 * which are likely to continue to look in the old directory.  But if you
 * just hate the idea of sockets in /tmp, here's where to twiddle it.
 * You can also override this at runtime with the postmaster's -k switch.
 */
#define DEFAULT_PGSOCKET_DIR  "/tmp"


B
Bruce Momjian 已提交
271 272
/*
 *------------------------------------------------------------------------
273 274
 * These hand-configurable symbols are for enabling debugging code,
 * not for controlling user-visible features or resource limits.
B
Bruce Momjian 已提交
275
 *------------------------------------------------------------------------
276 277
 */

278 279 280 281 282 283 284 285
/* Define this to cause pfree()'d memory to be cleared immediately,
 * to facilitate catching bugs that refer to already-freed values.
 * XXX For 7.1 development, define this automatically if --enable-cassert.
 * In the long term it probably doesn't need to be on by default.
 */
#ifdef USE_ASSERT_CHECKING
#define CLOBBER_FREED_MEMORY
#endif
286

287 288 289 290
/* Define this to check memory allocation errors (scribbling on more
 * bytes than were allocated).
 * XXX For 7.1 development, define this automatically if --enable-cassert.
 * In the long term it probably doesn't need to be on by default.
291 292 293 294 295
 */
#ifdef USE_ASSERT_CHECKING 
#define MEMORY_CONTEXT_CHECKING
#endif

296 297 298
/* Define this to force all parse and plan trees to be passed through
 * copyObject(), to facilitate catching errors and omissions in copyObject().
 */
299
/* #define COPY_PARSE_PLAN_TREES */
300

301 302
/* Enable debugging print statements in the date/time support routines. */
/* #define DATEDEBUG */
303

304 305 306
/* Enable debugging print statements for lock-related operations. */
/* #define LOCK_DEBUG */

307 308 309 310 311 312 313 314 315 316 317
/*
 * Other debug #defines (documentation, anyone?)
 */
/* #define IPORTAL_DEBUG  */
/* #define HEAPDEBUGALL  */
/* #define ISTRATDEBUG  */
/* #define ACLDEBUG */
/* #define RTDEBUG */
/* #define GISTDEBUG */

/*
318 319
 * defining unsafe floats will make float4 and float8 ops faster
 * by suppressing overflow/underflow checks.
320 321
 */
/* #define UNSAFE_FLOATS */
322

323 324 325 326 327 328 329 330

/*
 *------------------------------------------------------------------------
 * Part 3: system configuration information that is auto-detected by
 * configure.  In theory you shouldn't have to touch any of this stuff
 * by hand.  In the real world, configure might get it wrong...
 *------------------------------------------------------------------------
 */
331 332 333 334 335 336 337

/* Define const as empty if your compiler doesn't grok const. */
#undef const

/* Define as your compiler's spelling of "inline", or empty if no inline. */
#undef inline

338 339 340 341 342 343
/* Define as empty if the C compiler doesn't understand "signed". */
#undef signed

/* Define as empty if the C compiler doesn't understand "volatile". */
#undef volatile

344 345 346
/* Define if your cpp understands the ANSI stringizing operators in macros */
#undef HAVE_STRINGIZE

347 348 349
/* Set to 1 if you have <crypt.h> */
#undef HAVE_CRYPT_H

B
Bruce Momjian 已提交
350 351 352 353 354
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H

/* Set to 1 if you have <endian.h> */
#undef HAVE_ENDIAN_H
355

B
Bruce Momjian 已提交
356 357 358
/* Set to 1 if you have <fp_class.h> */
#undef HAVE_FP_CLASS_H

359 360 361
/* Set to 1 if you have <getopt.h> */
#undef HAVE_GETOPT_H

B
Bruce Momjian 已提交
362 363 364 365 366 367
/* Set to 1 if you have <history.h> */
#undef HAVE_HISTORY_H

/* Set to 1 if you have <ieeefp.h> */
#undef HAVE_IEEEFP_H

368 369 370
/* Set to 1 if you have <netinet/tcp.h> */
#undef HAVE_NETINET_TCP_H

371 372 373
/* Set to 1 if you have <readline.h> */
#undef HAVE_READLINE_H

374 375 376
/* Set to 1 if you have <readline/history.h> */
#undef HAVE_READLINE_HISTORY_H

B
Bruce Momjian 已提交
377 378 379
/* Set to 1 if you have <readline/readline.h> */
#undef HAVE_READLINE_READLINE_H

380
/* Set to 1 if you have <sys/ipc.h> */
381 382
#undef HAVE_SYS_IPC_H

B
Bruce Momjian 已提交
383 384
/* Set to 1 if  you have <sys/select.h> */
#undef HAVE_SYS_SELECT_H
385

386
/* Set to 1 if you have <sys/un.h> */
387 388
#undef HAVE_SYS_UN_H

389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
/* Set to 1 if you have <sys/sem.h> */
#undef HAVE_SYS_SEM_H

/* Set to 1 if you have <sys/shm.h> */
#undef HAVE_SYS_SHM_H

/* Set to 1 if you have <kernel/OS.h> */
#undef HAVE_KERNEL_OS_H

/* Set to 1 if you have <SupportDefs.h> */
#undef HAVE_SUPPORTDEFS_H

/* Set to 1 if you have <kernel/image.h> */
#undef HAVE_KERNEL_IMAGE_H

B
Bruce Momjian 已提交
404 405 406
/* Set to 1 if you have <termios.h> */
#undef HAVE_TERMIOS_H

407 408 409
/* Set to 1 if you have <sys/pstat.h> */
#undef HAVE_SYS_PSTAT_H

410 411 412
/* Define if string.h and strings.h may both be included */
#undef STRING_H_WITH_STRINGS_H

M
 
Marc G. Fournier 已提交
413 414 415
/* Define if you have the setproctitle function.  */
#undef HAVE_SETPROCTITLE

416 417 418 419 420 421
/* Define if you have the pstat function. */
#undef HAVE_PSTAT

/* Define if the PS_STRINGS thing exists. */
#undef HAVE_PS_STRINGS

422 423 424
/* Define if you have the stricmp function.  */
#undef HAVE_STRICMP

P
Peter Eisentraut 已提交
425 426
/* Set to 1 if you have history functions (either in libhistory or libreadline) */
#undef HAVE_HISTORY_FUNCTIONS
B
Bruce Momjian 已提交
427

428 429 430
/* Set to 1 if you have <pwd.h> */
#undef HAVE_PWD_H

431
/* Set to 1 if you have gettimeofday(a) instead of gettimeofday(a,b) */
432 433
#undef GETTIMEOFDAY_1ARG
#ifdef GETTIMEOFDAY_1ARG
434 435 436
# define gettimeofday(a,b) gettimeofday(a)
#endif

437
/* Set to 1 if you have snprintf() in the C library */
M
 
Marc G. Fournier 已提交
438 439
#undef HAVE_SNPRINTF

440 441
/* Set to 1 if your standard system headers declare snprintf() */
#undef HAVE_SNPRINTF_DECL
B
Bruce Momjian 已提交
442

443
/* Set to 1 if you have vsnprintf() in the C library */
444 445
#undef HAVE_VSNPRINTF

446 447 448 449 450 451
/* Set to 1 if your standard system headers declare vsnprintf() */
#undef HAVE_VSNPRINTF_DECL

/* Set to 1 if you have strerror() */
#undef HAVE_STRERROR

452 453 454 455 456 457
/* Set to 1 if you have isinf() */
#undef HAVE_ISINF
#ifndef HAVE_ISINF
extern int isinf(double x);
#endif

B
Bruce Momjian 已提交
458
/*
459
 *	These are all related to port/isinf.c 
B
Bruce Momjian 已提交
460 461 462 463 464 465
 */
#undef HAVE_FPCLASS
#undef HAVE_FP_CLASS
#undef HAVE_FP_CLASS_H
#undef HAVE_FP_CLASS_D
#undef HAVE_CLASS
466

467 468
/* Set to 1 if you have gethostname() */
#undef HAVE_GETHOSTNAME
M
Marc G. Fournier 已提交
469
#ifndef HAVE_GETHOSTNAME
470
extern int gethostname(char *name, int namelen);
471
#endif
472

473 474 475 476 477 478 479 480
/* Set to 1 if struct tm has a tm_zone member */
#undef HAVE_TM_ZONE

/* Set to 1 if you have int timezone.
 * NOTE: if both tm_zone and a global timezone variable exist,
 * using the tm_zone field should probably be preferred,
 * since global variables are inherently not thread-safe.
 */
481 482 483 484 485
#undef HAVE_INT_TIMEZONE

/* Set to 1 if you have cbrt() */
#undef HAVE_CBRT

486
/* Set to 1 if you have inet_aton() */
487
#undef HAVE_INET_ATON
488

489
#ifndef HAVE_INET_ATON
490 491 492
# include <sys/types.h>
# include <netinet/in.h>
# include <arpa/inet.h>
493
extern int inet_aton(const char *cp, struct in_addr * addr);
494
#endif
495

496 497 498
/* Set to 1 if you have fcvt() */
#undef HAVE_FCVT

499 500 501
/* Set to 1 if you have rint() */
#undef HAVE_RINT 

502 503 504
/* Set to 1 if you have finite() */
#undef HAVE_FINITE

505 506 507 508 509 510
/* Set to 1 if you have memmove() */
#undef HAVE_MEMMOVE

/* Set to 1 if you have sigsetjmp() */
#undef HAVE_SIGSETJMP

511 512 513 514 515 516 517 518 519 520 521
/*
 * When there is no sigsetjmp, its functionality is provided by plain
 * setjmp. Incidentally, nothing provides setjmp's functionality in
 * that case.
 */
#ifndef HAVE_SIGSETJMP
# define sigjmp_buf jmp_buf
# define sigsetjmp(x,y)	setjmp(x)
# define siglongjmp longjmp
#endif

522 523 524 525 526 527
/* Set to 1 if you have sysconf() */
#undef HAVE_SYSCONF

/* Set to 1 if you have getrusage() */
#undef HAVE_GETRUSAGE

528 529 530 531 532 533 534 535 536
/* Set to 1 if you have waitpid() */
#undef HAVE_WAITPID

/* Set to 1 if you have setsid() */
#undef HAVE_SETSID

/* Set to 1 if you have sigprocmask() */
#undef HAVE_SIGPROCMASK

537 538 539
/* Set to 1 if you have sigprocmask() */
#undef HAVE_STRCASECMP
#ifndef HAVE_STRCASECMP
540
extern int strcasecmp(char *s1, char *s2);
541 542
#endif

543 544 545
/* Set to 1 if you have strtol() */
#undef HAVE_STRTOL

M
Marc G. Fournier 已提交
546 547 548
/* Set to 1 if you have strtoul() */
#undef HAVE_STRTOUL

549 550
/* Set to 1 if you have strdup() */
#undef HAVE_STRDUP
551 552 553
#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif
554

555 556
/* Set to 1 if you have random() */
#undef HAVE_RANDOM
557 558 559
#ifndef HAVE_RANDOM
extern long random(void);
#endif
560 561 562

/* Set to 1 if you have srandom() */
#undef HAVE_SRANDOM
563
#ifndef HAVE_SRANDOM
564
extern void srandom(unsigned int seed);
565
#endif
566

567 568 569 570 571 572 573 574 575
/* The random() function is expected to yield values 0 .. MAX_RANDOM_VALUE */
/* Currently, all known implementations yield 0..2^31-1, so we just hardwire
 * this constant.  We could do a configure test if it proves to be necessary.
 * CAUTION: Think not to replace this with RAND_MAX.  RAND_MAX defines the
 * maximum value of the older rand() function, which is often different from
 * --- and considerably inferior to --- random().
 */
#define MAX_RANDOM_VALUE  (0x7FFFFFFF)

576 577 578 579 580 581 582 583 584 585 586 587 588
/* Define if you have dlopen() */
#undef HAVE_DLOPEN

/* Define if you have fdatasync() */
#undef HAVE_FDATASYNC

/* Define if the standard header unistd.h declares fdatasync() */
#undef HAVE_FDATASYNC_DECL

#if defined(HAVE_FDATASYNC) && !defined(HAVE_FDATASYNC_DECL)
extern int fdatasync(int fildes);
#endif

M
 
Marc G. Fournier 已提交
589 590 591
/* Set to 1 if you have libz.a */
#undef HAVE_LIBZ

592 593 594 595 596 597
/* Set to 1 if you have libreadline.a */
#undef HAVE_LIBREADLINE

/* Set to 1 if you have libhistory.a */
#undef HAVE_LIBHISTORY

598 599 600
/* Set to 1 if your libreadline defines rl_completion_append_character */
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER

P
Peter Eisentraut 已提交
601 602
/* Set to 1 if you have rl_completion_matches */
#undef HAVE_RL_COMPLETION_MATCHES
603

604 605 606
/* Set to 1 if you have rl_filename_completion_function */
#undef HAVE_RL_FILENAME_COMPLETION_FUNCTION

607 608 609
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG

610 611 612
/* Set to 1 if you have union semun */
#undef HAVE_UNION_SEMUN

613 614 615 616 617 618 619 620 621
/* Set to 1 if you have struct cmsgcred */
#undef HAVE_STRUCT_CMSGCRED

/* Set to 1 if you have struct fcred */
#undef HAVE_STRUCT_FCRED

/* Set to 1 if you have struct sockcred */
#undef HAVE_STRUCT_SOCKCRED

622 623 624
/* Set to 1 if you have struct sockaddr_un */
#undef HAVE_STRUCT_SOCKADDR_UN

625 626 627 628
/* Set to 1 if type "long int" works and is 64 bits */
#undef HAVE_LONG_INT_64

/* Set to 1 if type "long long int" works and is 64 bits */
B
Bruce Momjian 已提交
629
#undef HAVE_LONG_LONG_INT_64
630

631 632 633
/* Set to 1 if type "long long int" constants should be suffixed by LL */
#undef HAVE_LL_CONSTANTS

634 635 636
/* Define this as the appropriate snprintf format for 64-bit ints, if any */
#undef INT64_FORMAT

637 638 639 640 641
/*
 * We need a #define symbol for sizeof(Datum) for use in some #if tests.
 */
#undef SIZEOF_DATUM

642 643
/*
 * These must be defined as the alignment requirement (NOT the size) of
644 645 646 647 648 649 650 651 652 653 654
 * each of the basic C data types (except char, which we assume has align 1).
 * MAXIMUM_ALIGNOF is the largest alignment requirement for any C data type.
 * ALIGNOF_LONG_LONG_INT need only be defined if HAVE_LONG_LONG_INT_64 is.
 */
#undef ALIGNOF_SHORT
#undef ALIGNOF_INT
#undef ALIGNOF_LONG
#undef ALIGNOF_LONG_LONG_INT
#undef ALIGNOF_DOUBLE
#undef MAXIMUM_ALIGNOF

655
/* Define as the type of the 3rd argument to accept() */
656
#undef ACCEPT_TYPE_ARG3
M
 
Marc G. Fournier 已提交
657

658
/* Define if POSIX signal interface is available */
659
#undef HAVE_POSIX_SIGNALS
660

661 662 663 664 665 666
/* Define if C++ compiler accepts "using namespace std" */
#undef HAVE_NAMESPACE_STD

/* Define if C++ compiler accepts "#include <string>" */
#undef HAVE_CXX_STRING_HEADER

667 668
/* Define if you have the optreset variable */
#undef HAVE_INT_OPTRESET
669

670
/* Define if you have strtoll() */
671
#undef HAVE_STRTOLL
672 673

/* Define if you have strtoq() */
674 675
#undef HAVE_STRTOQ

676
/* If strtoq() exists, rename it to the more standard strtoll() */
677 678 679 680 681
#if defined(HAVE_LONG_LONG_INT_64) && !defined(HAVE_STRTOLL) && defined(HAVE_STRTOQ)
# define strtoll strtoq
# define HAVE_STRTOLL 1
#endif

682
/* Define if you have strtoull() */
683
#undef HAVE_STRTOULL
684 685

/* Define if you have strtouq() */
686 687
#undef HAVE_STRTOUQ

688
/* If strtouq() exists, rename it to the more standard strtoull() */
689 690 691 692 693
#if defined(HAVE_LONG_LONG_INT_64) && !defined(HAVE_STRTOULL) && defined(HAVE_STRTOUQ)
# define strtoull strtouq
# define HAVE_STRTOULL 1
#endif

T
Tatsuo Ishii 已提交
694 695 696 697 698
/* Define if you have atexit() */
#undef HAVE_ATEXIT

/* Define if you have on_exit() */
#undef HAVE_ON_EXIT
699

700 701
#undef SIZEOF_INT8
#undef SIZEOF_UINT8
702 703
#undef SIZEOF_INT64
#undef SIZEOF_UINT64
704

705 706 707 708 709
/*
 *------------------------------------------------------------------------
 * Part 4: pull in system-specific declarations.
 *
 * This is still configure's responsibility, because it picks where
710
 * the "pg_config_os.h" symlink points...
711 712
 *------------------------------------------------------------------------
 */
713

714
/*
715
 * Pull in OS-specific declarations (using link created by configure)
716 717
 */

718
#include "pg_config_os.h"
719

720 721 722
/*
 * The following is used as the arg list for signal handlers.  Any ports
 * that take something other than an int argument should override this in
723
 * the port-specific pg_config_os.h file.  Note that variable names are required
724 725 726 727 728 729 730 731 732 733
 * because it is used in both the prototypes as well as the definitions.
 * Note also the long name.  We expect that this won't collide with
 * other names causing compiler warnings.
 */ 

#ifndef SIGNAL_ARGS
#define SIGNAL_ARGS  int postgres_signal_arg
#endif


734
#endif /* PG_CONFIG_H */