2000-03-17 06:29:07 +01:00
|
|
|
/*
|
|
|
|
* PostgreSQL configuration-settings file.
|
|
|
|
*
|
|
|
|
* config.h.in is processed by configure to produce config.h.
|
|
|
|
*
|
2000-06-29 07:50:29 +02:00
|
|
|
* If you want to modify any of the tweakable settings in Part 2
|
2000-03-17 06:29:07 +01:00
|
|
|
* of this file, you can do it in config.h.in before running configure,
|
|
|
|
* or in config.h afterwards. Of course, if you edit config.h, then your
|
|
|
|
* changes will be overwritten the next time you run configure.
|
|
|
|
*
|
2000-07-02 17:21:27 +02:00
|
|
|
* $Id: config.h.in,v 1.122 2000/07/02 15:21:18 petere Exp $
|
1997-02-04 09:54:47 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2000-05-31 02:28:42 +02:00
|
|
|
|
1999-02-19 07:06:39 +01:00
|
|
|
/*
|
2000-06-29 07:50:29 +02:00
|
|
|
*------------------------------------------------------------------------
|
|
|
|
* 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.
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2000-07-02 17:21:27 +02:00
|
|
|
/* 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
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* 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
|
|
|
|
|
|
|
|
/* 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) */
|
|
|
|
/* (CAUTION: large log entries confuse syslog on many platforms!) */
|
|
|
|
#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
|
|
|
|
|
|
|
|
/* Location of the Kerberos server's keytab file (--with-krb-srvtab=FILE) */
|
|
|
|
#undef PG_KRB_SRVTAB
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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;
|
1999-02-21 02:41:55 +01:00
|
|
|
* this is just the default setting for the postmaster's -N switch.
|
2000-06-29 07:50:29 +02:00
|
|
|
* (--with-maxbackends=N)
|
1999-02-19 07:06:39 +01:00
|
|
|
*/
|
1999-02-21 02:41:55 +01:00
|
|
|
#undef DEF_MAXBACKENDS
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
* 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.
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
1999-02-21 02:41:55 +01:00
|
|
|
/*
|
|
|
|
* Hard limit on number of backend server processes per postmaster.
|
|
|
|
* Increasing this costs about 32 bytes per process slot as of v 6.5.
|
|
|
|
*/
|
|
|
|
#define MAXBACKENDS (DEF_MAXBACKENDS > 1024 ? DEF_MAXBACKENDS : 1024)
|
1999-02-19 07:06:39 +01:00
|
|
|
|
1999-06-13 00:17:24 +02:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
|
1999-02-19 07:06:39 +01:00
|
|
|
/*
|
|
|
|
* Size of a disk block --- currently, this limits the size of a tuple.
|
|
|
|
* You can set it bigger if you need bigger tuples.
|
2000-06-29 07:50:29 +02:00
|
|
|
*
|
|
|
|
* CAUTION: changing BLCKSZ requires an initdb.
|
|
|
|
*
|
|
|
|
* currently must be <= 32k bjm
|
1999-02-19 07:06:39 +01:00
|
|
|
*/
|
1997-02-04 09:54:47 +01:00
|
|
|
#define BLCKSZ 8192
|
|
|
|
|
1999-04-06 00:25:11 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*
|
1999-04-06 05:04:22 +02:00
|
|
|
* 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
|
1999-04-06 00:25:11 +02:00
|
|
|
* problems within the OS. A limit smaller than necessary only means we
|
1999-04-06 05:04:22 +02:00
|
|
|
* 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.)
|
1999-04-06 00:25:11 +02:00
|
|
|
*
|
2000-06-29 07:50:29 +02:00
|
|
|
* CAUTION: changing RELSEG_SIZE requires an initdb.
|
1999-04-06 00:25:11 +02:00
|
|
|
*/
|
1999-04-06 05:04:22 +02:00
|
|
|
#define RELSEG_SIZE (0x40000000 / BLCKSZ)
|
1999-04-06 00:25:11 +02:00
|
|
|
|
2000-01-10 06:20:26 +01:00
|
|
|
/*
|
2000-01-10 19:18:30 +01:00
|
|
|
* Maximum number of columns in an index and maximum number of arguments
|
2000-01-10 18:14:46 +01:00
|
|
|
* to a function. They must be the same value.
|
2000-01-10 19:18:30 +01:00
|
|
|
*
|
2000-06-29 07:50:29 +02:00
|
|
|
* 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.
|
2000-01-11 06:58:55 +01:00
|
|
|
*
|
2000-06-29 07:50:29 +02:00
|
|
|
* 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...
|
2000-01-10 06:20:26 +01:00
|
|
|
*/
|
2000-01-11 03:30:06 +01:00
|
|
|
#define INDEX_MAX_KEYS 16
|
2000-01-11 06:58:55 +01:00
|
|
|
#define FUNC_MAX_ARGS INDEX_MAX_KEYS
|
2000-01-10 06:20:26 +01:00
|
|
|
|
1999-07-18 20:03:50 +02:00
|
|
|
/*
|
|
|
|
* 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 */
|
|
|
|
|
1999-10-25 05:08:03 +02:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2000-03-17 06:29:07 +01:00
|
|
|
/*
|
|
|
|
* DEFAULT_MAX_EXPR_DEPTH: default value of max_expr_depth SET variable.
|
|
|
|
*/
|
|
|
|
#define DEFAULT_MAX_EXPR_DEPTH 10000
|
|
|
|
|
1999-07-18 20:03:50 +02:00
|
|
|
/*
|
|
|
|
*------------------------------------------------------------------------
|
2000-06-29 07:50:29 +02:00
|
|
|
* These hand-configurable symbols are for enabling debugging code,
|
|
|
|
* not for controlling user-visible features or resource limits.
|
1999-07-18 20:03:50 +02:00
|
|
|
*------------------------------------------------------------------------
|
1997-02-04 09:54:47 +01:00
|
|
|
*/
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* 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
|
2000-04-14 05:05:35 +02:00
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* Define this to force all parse and plan trees to be passed through
|
|
|
|
* copyObject(), to facilitate catching errors and omissions in copyObject().
|
|
|
|
* 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 COPY_PARSE_PLAN_TREES
|
|
|
|
#endif
|
2000-04-14 05:05:35 +02:00
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* Enable debugging print statements in the date/time support routines. */
|
|
|
|
/* #define DATEDEBUG */
|
2000-04-14 05:05:35 +02:00
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/*
|
|
|
|
* Other debug #defines (documentation, anyone?)
|
|
|
|
*/
|
|
|
|
/* #define IPORTAL_DEBUG */
|
|
|
|
/* #define HEAPDEBUGALL */
|
|
|
|
/* #define ISTRATDEBUG */
|
|
|
|
/* #define FASTBUILD_DEBUG */
|
|
|
|
/* #define ACLDEBUG */
|
|
|
|
/* #define RTDEBUG */
|
|
|
|
/* #define GISTDEBUG */
|
|
|
|
/* #define OMIT_PARTIAL_INDEX */
|
|
|
|
/* #define NO_SECURITY */
|
|
|
|
/* #define LOCK_DEBUG */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* defining unsafe floats's will make float4 and float8
|
|
|
|
* ops faster at the cost of safety, of course!
|
|
|
|
*/
|
|
|
|
/* #define UNSAFE_FLOATS */
|
2000-04-14 05:05:35 +02:00
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
* 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...
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
*/
|
2000-04-14 05:05:35 +02:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
/* Define signed as empty if your compiler doesn't grok "signed char" etc */
|
|
|
|
#undef signed
|
|
|
|
|
|
|
|
/* Define volatile as empty if your compiler doesn't grok volatile. */
|
|
|
|
#undef volatile
|
|
|
|
|
|
|
|
/* Define if your cpp understands the ANSI stringizing operators in macros */
|
|
|
|
#undef HAVE_STRINGIZE
|
|
|
|
|
1998-01-23 20:13:22 +01:00
|
|
|
/* Set to 1 if you have <arpa/inet.h> */
|
|
|
|
#undef HAVE_ARPA_INET_H
|
|
|
|
|
1997-03-20 19:04:32 +01:00
|
|
|
/* Set to 1 if you have <crypt.h> */
|
|
|
|
#undef HAVE_CRYPT_H
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <dld.h> */
|
|
|
|
#undef HAVE_DLD_H
|
|
|
|
|
|
|
|
/* Set to 1 if you have <endian.h> */
|
|
|
|
#undef HAVE_ENDIAN_H
|
1997-02-04 09:54:47 +01:00
|
|
|
|
1997-03-25 21:02:42 +01:00
|
|
|
/* Set to 1 if you have <float.h> */
|
|
|
|
#undef HAVE_FLOAT_H
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <fp_class.h> */
|
|
|
|
#undef HAVE_FP_CLASS_H
|
|
|
|
|
1999-07-19 04:27:16 +02:00
|
|
|
/* Set to 1 if you have <getopt.h> */
|
|
|
|
#undef HAVE_GETOPT_H
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <history.h> */
|
|
|
|
#undef HAVE_HISTORY_H
|
|
|
|
|
|
|
|
/* Set to 1 if you have <ieeefp.h> */
|
|
|
|
#undef HAVE_IEEEFP_H
|
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have <limits.h> */
|
|
|
|
#undef HAVE_LIMITS_H
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <netdb.h> */
|
|
|
|
#undef HAVE_NETDB_H
|
1997-02-04 09:54:47 +01:00
|
|
|
|
1999-07-19 02:55:59 +02:00
|
|
|
/* Set to 1 if you have <netinet/in.h> */
|
|
|
|
#undef HAVE_NETINET_IN_H
|
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have <readline.h> */
|
|
|
|
#undef HAVE_READLINE_H
|
|
|
|
|
1997-08-17 02:48:51 +02:00
|
|
|
/* Set to 1 if you have <readline/history.h> */
|
|
|
|
#undef HAVE_READLINE_HISTORY_H
|
|
|
|
|
1998-04-05 23:29:49 +02:00
|
|
|
/* Set to 1 if you have <readline/readline.h> */
|
|
|
|
#undef HAVE_READLINE_READLINE_H
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <sys/select.h> */
|
|
|
|
#undef HAVE_SYS_SELECT_H
|
1998-05-13 01:05:12 +02:00
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have <termios.h> */
|
|
|
|
#undef HAVE_TERMIOS_H
|
|
|
|
|
|
|
|
/* Set to 1 if you have <values.h> */
|
|
|
|
#undef HAVE_VALUES_H
|
1997-02-06 09:40:16 +01:00
|
|
|
|
2000-06-04 03:44:38 +02:00
|
|
|
/* Set to 1 if you have <sys/exec.h> */
|
|
|
|
#undef HAVE_SYS_EXEC_H
|
|
|
|
|
|
|
|
/* Set to 1 if you have <sys/pstat.h> */
|
|
|
|
#undef HAVE_SYS_PSTAT_H
|
|
|
|
|
|
|
|
/* Set to 1 if you have <machine/vmparam.h> */
|
|
|
|
#undef HAVE_MACHINE_VMPARAM_H
|
|
|
|
|
1998-10-07 08:39:30 +02:00
|
|
|
/* Define if you have the ANSI C header files. */
|
|
|
|
#undef STDC_HEADERS
|
|
|
|
|
2000-05-12 15:58:25 +02:00
|
|
|
/* Define if you have the setproctitle function. */
|
|
|
|
#undef HAVE_SETPROCTITLE
|
|
|
|
|
2000-06-04 03:44:38 +02:00
|
|
|
/* Define if you have the pstat function. */
|
|
|
|
#undef HAVE_PSTAT
|
|
|
|
|
|
|
|
/* Define if the PS_STRINGS thing exists. */
|
|
|
|
#undef HAVE_PS_STRINGS
|
|
|
|
|
1998-10-07 08:39:30 +02:00
|
|
|
/* Define if you have the stricmp function. */
|
|
|
|
#undef HAVE_STRICMP
|
|
|
|
|
1999-07-18 16:48:30 +02:00
|
|
|
/* Set to 1 if you have libreadline and it includes history functions */
|
1999-11-04 22:46:40 +01:00
|
|
|
#undef HAVE_HISTORY_IN_READLINE
|
1999-07-18 16:48:30 +02:00
|
|
|
|
1998-10-07 08:39:30 +02:00
|
|
|
/* Set to 1 if you have <pwd.h> */
|
|
|
|
#undef HAVE_PWD_H
|
|
|
|
|
|
|
|
/* Define if you have the <sys/param.h> header file. */
|
|
|
|
#undef HAVE_SYS_PARAM_H
|
|
|
|
|
1998-03-31 04:59:07 +02:00
|
|
|
/* Set to 1 if you gettimeofday(a,b) vs gettimeofday(a) */
|
2000-06-11 13:40:09 +02:00
|
|
|
#undef GETTIMEOFDAY_1ARG
|
|
|
|
#ifdef GETTIMEOFDAY_1ARG
|
1998-03-31 04:59:07 +02:00
|
|
|
# define gettimeofday(a,b) gettimeofday(a)
|
|
|
|
#endif
|
|
|
|
|
1999-12-20 01:51:25 +01:00
|
|
|
/* Set to 1 if you have snprintf() in the C library */
|
1998-08-01 21:30:29 +02:00
|
|
|
#undef HAVE_SNPRINTF
|
|
|
|
|
1999-12-20 01:51:25 +01:00
|
|
|
/* Set to 1 if your standard system headers declare snprintf() */
|
|
|
|
#undef HAVE_SNPRINTF_DECL
|
1999-07-18 22:43:13 +02:00
|
|
|
|
1999-12-20 01:51:25 +01:00
|
|
|
/* Set to 1 if you have vsnprintf() in the C library */
|
1999-01-17 04:22:52 +01:00
|
|
|
#undef HAVE_VSNPRINTF
|
|
|
|
|
1999-12-20 01:51:25 +01:00
|
|
|
/* Set to 1 if your standard system headers declare vsnprintf() */
|
|
|
|
#undef HAVE_VSNPRINTF_DECL
|
|
|
|
|
|
|
|
/* Set to 1 if you have strerror() */
|
|
|
|
#undef HAVE_STRERROR
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* Set to 1 if you have isinf() */
|
|
|
|
#undef HAVE_ISINF
|
|
|
|
#ifndef HAVE_ISINF
|
|
|
|
extern int isinf(double x);
|
|
|
|
#endif
|
|
|
|
|
1999-07-18 22:43:13 +02:00
|
|
|
/*
|
1999-12-20 01:51:25 +01:00
|
|
|
* These are all related to port/isinf.c
|
1999-07-18 22:43:13 +02:00
|
|
|
*/
|
|
|
|
#undef HAVE_FPCLASS
|
|
|
|
#undef HAVE_FP_CLASS
|
|
|
|
#undef HAVE_FP_CLASS_H
|
|
|
|
#undef HAVE_FP_CLASS_D
|
|
|
|
#undef HAVE_CLASS
|
2000-04-14 05:05:35 +02:00
|
|
|
|
1997-12-19 03:09:10 +01:00
|
|
|
/* Set to 1 if you have gethostname() */
|
|
|
|
#undef HAVE_GETHOSTNAME
|
1997-12-20 05:26:27 +01:00
|
|
|
#ifndef HAVE_GETHOSTNAME
|
2000-06-29 07:50:29 +02:00
|
|
|
extern int gethostname(char *name, int namelen);
|
1997-12-19 23:47:00 +01:00
|
|
|
#endif
|
1997-12-19 03:09:10 +01:00
|
|
|
|
1998-12-13 21:03:07 +01:00
|
|
|
/* 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.
|
|
|
|
*/
|
1997-02-04 09:54:47 +01:00
|
|
|
#undef HAVE_INT_TIMEZONE
|
|
|
|
|
|
|
|
/* Set to 1 if you have cbrt() */
|
|
|
|
#undef HAVE_CBRT
|
|
|
|
|
1997-03-19 03:37:42 +01:00
|
|
|
/* Set to 1 if you have inet_aton() */
|
1997-02-04 23:39:56 +01:00
|
|
|
#undef HAVE_INET_ATON
|
1997-12-19 23:47:00 +01:00
|
|
|
#ifndef HAVE_INET_ATON
|
1998-01-23 20:13:22 +01:00
|
|
|
# ifdef HAVE_ARPA_INET_H
|
1998-02-14 20:56:21 +01:00
|
|
|
# ifdef HAVE_NETINET_IN_H
|
1998-02-24 04:12:55 +01:00
|
|
|
# include <sys/types.h>
|
1998-02-14 20:56:21 +01:00
|
|
|
# include <netinet/in.h>
|
|
|
|
# endif
|
1998-01-23 20:13:22 +01:00
|
|
|
# include <arpa/inet.h>
|
|
|
|
# endif
|
2000-06-29 07:50:29 +02:00
|
|
|
extern int inet_aton(const char *cp, struct in_addr * addr);
|
1997-12-19 23:47:00 +01:00
|
|
|
#endif
|
1997-02-04 23:39:56 +01:00
|
|
|
|
1997-04-22 19:47:42 +02:00
|
|
|
/* Set to 1 if you have fcvt() */
|
|
|
|
#undef HAVE_FCVT
|
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have rint() */
|
|
|
|
#undef HAVE_RINT
|
|
|
|
|
1999-10-02 19:45:31 +02:00
|
|
|
/* Set to 1 if you have finite() */
|
|
|
|
#undef HAVE_FINITE
|
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have memmove() */
|
|
|
|
#undef HAVE_MEMMOVE
|
|
|
|
|
|
|
|
/* Set to 1 if you have sigsetjmp() */
|
|
|
|
#undef HAVE_SIGSETJMP
|
|
|
|
|
2000-02-20 15:28:28 +01:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have sysconf() */
|
|
|
|
#undef HAVE_SYSCONF
|
|
|
|
|
|
|
|
/* Set to 1 if you have getrusage() */
|
|
|
|
#undef HAVE_GETRUSAGE
|
|
|
|
|
1997-02-09 04:33:38 +01:00
|
|
|
/* 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
|
|
|
|
|
1997-12-19 23:47:00 +01:00
|
|
|
/* Set to 1 if you have sigprocmask() */
|
|
|
|
#undef HAVE_STRCASECMP
|
|
|
|
#ifndef HAVE_STRCASECMP
|
2000-06-29 07:50:29 +02:00
|
|
|
extern int strcasecmp(char *s1, char *s2);
|
1997-12-19 23:47:00 +01:00
|
|
|
#endif
|
|
|
|
|
1997-12-20 04:41:06 +01:00
|
|
|
/* Set to 1 if you have strtol() */
|
|
|
|
#undef HAVE_STRTOL
|
|
|
|
|
1998-02-24 07:04:55 +01:00
|
|
|
/* Set to 1 if you have strtoul() */
|
|
|
|
#undef HAVE_STRTOUL
|
|
|
|
|
1997-02-13 09:33:28 +01:00
|
|
|
/* Set to 1 if you have strdup() */
|
|
|
|
#undef HAVE_STRDUP
|
1997-12-19 23:47:00 +01:00
|
|
|
#ifndef HAVE_STRDUP
|
|
|
|
extern char *strdup(char const *);
|
|
|
|
#endif
|
1997-02-13 09:33:28 +01:00
|
|
|
|
1997-09-18 18:09:41 +02:00
|
|
|
/* Set to 1 if you have random() */
|
|
|
|
#undef HAVE_RANDOM
|
1997-12-19 23:47:00 +01:00
|
|
|
#ifndef HAVE_RANDOM
|
|
|
|
extern long random(void);
|
|
|
|
#endif
|
1997-09-18 18:09:41 +02:00
|
|
|
|
|
|
|
/* Set to 1 if you have srandom() */
|
|
|
|
#undef HAVE_SRANDOM
|
1997-12-19 23:47:00 +01:00
|
|
|
#ifndef HAVE_SRANDOM
|
1999-02-07 23:04:57 +01:00
|
|
|
extern void srandom(unsigned int seed);
|
1997-12-19 23:47:00 +01:00
|
|
|
#endif
|
1997-09-18 18:09:41 +02:00
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/* Set to 1 if you have libreadline.a */
|
|
|
|
#undef HAVE_LIBREADLINE
|
|
|
|
|
|
|
|
/* Set to 1 if you have libhistory.a */
|
|
|
|
#undef HAVE_LIBHISTORY
|
|
|
|
|
2000-01-22 00:32:36 +01:00
|
|
|
/* Set to 1 if your libreadline defines rl_completion_append_character */
|
|
|
|
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
|
|
|
|
2000-03-05 14:30:20 +01:00
|
|
|
/* Set to 1 if your libreadline has filename_completion_function */
|
|
|
|
#undef HAVE_FILENAME_COMPLETION_FUNCTION
|
|
|
|
|
|
|
|
/* Set to 1 if your readline headers actually declare the above */
|
|
|
|
#undef HAVE_FILENAME_COMPLETION_FUNCTION_DECL
|
|
|
|
|
1999-11-04 22:46:40 +01:00
|
|
|
/* Set to 1 if you have getopt_long() (GNU long options) */
|
|
|
|
#undef HAVE_GETOPT_LONG
|
|
|
|
|
1997-02-06 06:30:50 +01:00
|
|
|
/* Set to 1 if you have union semun */
|
|
|
|
#undef HAVE_UNION_SEMUN
|
|
|
|
|
1998-10-06 04:31:42 +02:00
|
|
|
/* Set to 1 if you have F_SETLK option for fcntl() */
|
|
|
|
#undef HAVE_FCNTL_SETLK
|
|
|
|
|
1998-08-24 00:25:54 +02:00
|
|
|
/* 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 */
|
1998-09-11 19:16:11 +02:00
|
|
|
#undef HAVE_LONG_LONG_INT_64
|
1998-08-24 00:25:54 +02:00
|
|
|
|
1999-03-15 02:43:07 +01:00
|
|
|
/* Define this as the appropriate snprintf format for 64-bit ints, if any */
|
|
|
|
#undef INT64_FORMAT
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/*
|
|
|
|
* These must be defined as the alignment requirement (NOT the size) of
|
1999-03-25 20:05:19 +01:00
|
|
|
* 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
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/* Define as the type of the 3rd argument to accept() */
|
2000-06-11 13:40:09 +02:00
|
|
|
#undef ACCEPT_TYPE_ARG3
|
1998-10-13 22:44:49 +02:00
|
|
|
|
1998-11-29 06:30:25 +01:00
|
|
|
/* Define if POSIX signal interface is available */
|
2000-06-11 13:40:09 +02:00
|
|
|
#undef HAVE_POSIX_SIGNALS
|
1998-11-29 06:30:25 +01:00
|
|
|
|
2000-03-30 07:29:21 +02:00
|
|
|
/* Define if C++ compiler accepts "using namespace std" */
|
|
|
|
#undef HAVE_NAMESPACE_STD
|
|
|
|
|
|
|
|
/* Define if C++ compiler accepts "#include <string>" */
|
|
|
|
#undef HAVE_CXX_STRING_HEADER
|
|
|
|
|
2000-06-17 02:10:40 +02:00
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
/*
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
* Part 4: pull in system-specific declarations.
|
|
|
|
*
|
|
|
|
* This is still configure's responsibility, because it picks where
|
|
|
|
* the "os.h" symlink points...
|
|
|
|
*------------------------------------------------------------------------
|
|
|
|
*/
|
2000-03-30 07:29:21 +02:00
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
/*
|
1999-06-04 23:13:38 +02:00
|
|
|
* Pull in OS-specific declarations (using link created by configure)
|
1997-02-04 09:54:47 +01:00
|
|
|
*/
|
|
|
|
|
1997-02-09 05:34:07 +01:00
|
|
|
#include "os.h"
|
1997-02-04 09:54:47 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The following is used as the arg list for signal handlers. Any ports
|
2000-06-29 07:50:29 +02:00
|
|
|
* that take something other than an int argument should override this in
|
|
|
|
* the port-specific os.h file. Note that variable names are required
|
1997-02-04 09:54:47 +01:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2000-06-29 07:50:29 +02:00
|
|
|
#ifndef SIGNAL_ARGS
|
|
|
|
#define SIGNAL_ARGS int postgres_signal_arg
|
1997-02-04 09:54:47 +01:00
|
|
|
#endif
|
|
|
|
|
1999-01-17 21:58:03 +01:00
|
|
|
|
1997-02-04 09:54:47 +01:00
|
|
|
#endif /* CONFIG_H */
|