Commit e736ca31 authored by Marc G. Fournier's avatar Marc G. Fournier

Slowly building up config.h so that it is pretty much generated by

configure, thereby reducing the ports dependencies in it :)
parent ef239de0
This diff is collapsed.
dnl Process this file with autoconf to produce a configure script.
AC_INIT(backend/access/common/heaptuple.c)
AC_CONFIG_HEADER(include/config.h)
dnl Checks for programs.
AC_PROG_CC
......@@ -75,6 +76,7 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h unistd.h)
AC_CHECK_HEADERS(termios.h values.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
......@@ -92,7 +94,8 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(ftime getcwd gethostname gettimeofday putenv regcomp select socket strcspn strdup strerror strftime strspn strtod strtol)
AC_CHECK_FUNCS(isinf tzset cbrt)
#AC_OUTPUT(backend/optimizer/path/Makefile libpq++/man/Makefile backend/port/sparc_solaris/Makefile backend/utils/misc/Makefile backend/port/ultrix4/Makefile bin/psql/Makefile backend/utils/init/Makefile tutorial/C-code/Makefile test/examples/Makefile backend/utils/adt/Makefile bin/destroyuser/Makefile Makefile tutorial/Makefile bin/pg_dump/Makefile bin/cleardbdir/Makefile backend/optimizer/plan/Makefile backend/access/heap/Makefile backend/storage/page/Makefile backend/port/svr4/Makefile backend/optimizer/Makefile backend/utils/hash/Makefile backend/storage/large_object/Makefile backend/access/hash/Makefile test/Makefile backend/optimizer/prep/Makefile bin/initdb/Makefile bin/pg_version/Makefile bin/ipcclean/Makefile bin/pg4_dump/Makefile backend/postmaster/Makefile backend/access/Makefile test/regress/Makefile backend/storage/Makefile backend/port/bsdi/Makefile libpq++/Makefile backend/lib/Makefile backend/libpq/Makefile backend/access/gist/Makefile backend/nodes/Makefile libpgtcl/Makefile libpq/Makefile bin/destroydb/Makefile backend/access/nbtree/Makefile bin/Makefile bin/createuser/Makefile backend/port/Makefile backend/port/irix5/Makefile backend/utils/sort/Makefile backend/utils/error/Makefile backend/utils/time/Makefile backend/Makefile backend/utils/Makefile backend/commands/Makefile bin/pg_id/Makefile backend/tioga/Makefile backend/utils/cache/Makefile backend/port/aix/Makefile backend/storage/lmgr/Makefile test/bench/Makefile bin/monitor/Makefile backend/access/index/Makefile backend/port/hpux/Makefile utils/Makefile backend/port/i386_solaris/Makefile backend/catalog/Makefile backend/storage/smgr/Makefile backend/bootstrap/Makefile backend/storage/buffer/Makefile backend/storage/ipc/Makefile backend/rewrite/Makefile backend/access/rtree/Makefile backend/port/linux/Makefile backend/storage/file/Makefile man/Makefile libpq++/examples/Makefile backend/main/Makefile bin/pgtclsh/Makefile backend/access/common/Makefile bin/createdb/Makefile backend/port/dgux/Makefile backend/utils/fmgr/Makefile backend/parser/Makefile backend/port/sparc/Makefile backend/executor/Makefile backend/optimizer/util/Makefile tools/mkldexport/Makefile backend/utils/mmgr/Makefile backend/tcop/Makefile backend/port/BSD44_derived/Makefile backend/access/transam/Makefile backend/port/alpha/Makefile backend/regex/Makefile)
AC_OUTPUT(GNUmakefile Makefile.global include/config.h)
AC_OUTPUT(GNUmakefile Makefile.global)
......@@ -8,25 +8,63 @@
#define BLCKSZ 8192
#if defined(aix)
#define TERMIOS_H_LOCATION <termios.h>
/*
* The following is set using configure.
*/
/* Set to 1 if you have <termios.h> */
#define HAVE_TERMIOS_H 0
/* Set to 1 if you have <limits.h> */
#define HAVE_LIMITS_H 0
/* Set to 1 if you have <values.h> */
#define HAVE_VALUES_H 0
/* Set to 1 if you have isinf() */
#define HAVE_ISINF 0
/* Set to 1 if you have tzset() */
#define HAVE_TZSET 0
/* Set to 1 if you have cbrt() */
#define HAVE_CBRT 0
/*
* Code below this point should not require changes
*/
#if defined(HAVE_TERMIOS_H)
# define TERMIOS_H_LOCATION <termios.h>
#else
#define TERMIOS_H_LOCATION <sys/termios.h>
# define TERMIOS_H_LOCATION <sys/termios.h>
#endif
#if !defined(nextstep)
/* Temporary: Need to change source files from USE_VALUES_H to HAVE_VALUES_H */
#if defined(HAVE_VALUES_H)
#define USE_VALUES_H
#endif
/* Temporary: Need to change source files from USE_LIMITS_H to HAVE_LIMITS_H */
#if defined(HAVE_LIMITS_H)
# define USE_LIMITS_H
#endif
#if !defined(HAVE_ISINF)
# define NEED_ISINF
#endif
#if !defined(HAVE_CBRT)
# define NEED_CBRT
#endif
#define HAVE_MEMMOVE
#if defined(aix)
# define CLASS_CONFLICT
# define DISABLE_XOPEN_NLS
# define NEED_ISINF
# define NEED_UNION_SEMUN
# define NEED_SYS_SELECT_H
# define HAVE_TZSET
# define HAVE_ANSI_CPP
# define HAS_TEST_AND_SET
typedef unsigned int slock_t;
......@@ -36,7 +74,6 @@
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define DISABLE_XOPEN_NLS
# define NEED_ISINF
# define HAS_LONG_LONG
# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
......@@ -45,9 +82,7 @@
#endif
#if defined(BSD44_derived)
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define NEED_CBRT
# define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET
# if defined(__mips__)
......@@ -66,9 +101,7 @@
# if defined(PRE_BSDI_2_1)
# define NEED_UNION_SEMUN
# endif
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define NEED_CBRT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#endif
......@@ -83,8 +116,6 @@
#if defined(hpux)
# define JMP_BUF
# define USE_POSIX_TIME
# define HAVE_TZSET
# define NEED_CBRT
# define NEED_RINT
# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
......@@ -92,13 +123,10 @@
#endif
#if defined(i386_solaris)
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define HAVE_TZSET
# define NEED_UNION_SEMUN
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
......@@ -108,10 +136,8 @@
#if defined(irix5)
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF
# define NO_EMPTY_STMTS
# define NO_VFORK
# define HAVE_TZSET
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
# include <abi_mutex.h>
......@@ -127,8 +153,6 @@
*/
# define JMP_BUF
# define USE_POSIX_TIME
# define HAVE_TZSET
# define NEED_CBRT
# define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
......@@ -152,7 +176,6 @@
# define NEED_SIG_JMP
# endif
# define USE_LIMITS_H
# define JMP_BUF
# define NO_WAITPID
typedef struct mutex slock_t;
......@@ -163,14 +186,11 @@
#endif
#if defined(sparc_solaris)
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define USE_POSIX_TIME
# define HAVE_TZSET
# define NEED_UNION_SEMUN
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
......@@ -185,10 +205,8 @@ typedef unsigned char slock_t;
#if defined(svr4)
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define HAVE_TZSET
# define NEED_UNION_SEMUN
# define SYSV_DIRENT
#endif
......@@ -200,16 +218,12 @@ typedef unsigned char slock_t;
# define USES_WINSOCK
# define NOFILE 100
# define NEED_UNION_SEMUN
# define HAVE_TZSET
# define NEED_CBRT
# define NEED_ISINF
# ifndef MAXPATHLEN
# define MAXPATHLEN 250
# endif
#endif /* WIN32 */
#if defined(ultrix4)
# define NEED_ISINF
# define USE_POSIX_TIME
# define NEED_UNION_SEMUN
# define NEED_STRDUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment