|
|
| version 1.400, 2005/02/22 03:55:12 | version 1.401, 2005/02/24 02:12:15 |
|---|---|
| Line 1 | Line 1 |
| dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. |
| dnl $PostgreSQL: pgsql/configure.in,v 1.399 2005/01/18 05:23:36 momjian Exp $ | dnl $PostgreSQL: pgsql/configure.in,v 1.400 2005/02/22 03:55:12 momjian Exp $ |
| dnl | dnl |
| dnl Developers, please strive to achieve this order: | dnl Developers, please strive to achieve this order: |
| dnl | dnl |
| Line 841 PGAC_VAR_INT_TIMEZONE | Line 841 PGAC_VAR_INT_TIMEZONE |
| AC_FUNC_ACCEPT_ARGTYPES | AC_FUNC_ACCEPT_ARGTYPES |
| PGAC_FUNC_GETTIMEOFDAY_1ARG | PGAC_FUNC_GETTIMEOFDAY_1ARG |
| # SunOS doesn't handle negative byte comparisons properly with +/- return | |
| AC_FUNC_MEMCMP | |
| AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs]) | AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs]) |
| AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>]) | AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>]) |
| Line 875 fi | Line 872 fi |
| # We use our snprintf.c emulation if either snprintf() or vsnprintf() | # We use our snprintf.c emulation if either snprintf() or vsnprintf() |
| # is missing. Yes, there are machines that have only one. We may | # is missing. Yes, there are machines that have only one. We may |
| # also decide to use snprintf.c if snprintf() is present but does not | # also decide to use snprintf.c if snprintf() is present but does not |
| # have working "long long int" support -- see below. | # have all the features we need --- see below. |
| pgac_need_repl_snprintf=no | pgac_need_repl_snprintf=no |
| AC_CHECK_FUNCS(snprintf, [], pgac_need_repl_snprintf=yes) | AC_CHECK_FUNCS(snprintf, [], pgac_need_repl_snprintf=yes) |
| AC_CHECK_FUNCS(vsnprintf, [], pgac_need_repl_snprintf=yes) | AC_CHECK_FUNCS(vsnprintf, [], pgac_need_repl_snprintf=yes) |
| PGAC_FUNC_PRINTF_ARG_CONTROL | |
| # cross compiler should use our snprintf too | |
| if test $pgac_cv_printf_arg_control != yes ; then | |
| pgac_need_repl_snprintf=yes | |
| fi | |
| # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not, | # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not, |
| # include/c.h will provide declarations. Note this is a separate test | # include/c.h will provide declarations. Note this is a separate test |
| Line 1074 AC_MSG_ERROR([[ | Line 1066 AC_MSG_ERROR([[ |
| [AC_MSG_RESULT([cross-compiling])]) | [AC_MSG_RESULT([cross-compiling])]) |
| dnl 64-bit section | |
| dnl | |
| dnl Check to see if we have a working 64-bit integer type. | dnl Check to see if we have a working 64-bit integer type. |
| dnl This breaks down into two steps: | dnl This breaks down into two steps: |
| dnl (1) figure out if the compiler has a 64-bit int type with working | dnl (1) figure out if the compiler has a 64-bit int type with working |
| Line 1141 AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_ | Line 1131 AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_ |
| AC_DEFINE_UNQUOTED(UINT64_FORMAT, $UINT64_FORMAT, | AC_DEFINE_UNQUOTED(UINT64_FORMAT, $UINT64_FORMAT, |
| [Define to the appropriate snprintf format for unsigned 64-bit ints, if any.]) | [Define to the appropriate snprintf format for unsigned 64-bit ints, if any.]) |
| # Also force use of our snprintf if system's doesn't do arg control | |
| if test $pgac_need_repl_snprintf = no; then | |
| PGAC_FUNC_PRINTF_ARG_CONTROL | |
| if test $pgac_cv_printf_arg_control != yes ; then | |
| pgac_need_repl_snprintf=yes | |
| fi | |
| fi | |
| if test $pgac_need_repl_snprintf = yes; then | if test $pgac_need_repl_snprintf = yes; then |
| AC_LIBOBJ(snprintf) | AC_LIBOBJ(snprintf) |
| fi | fi |
| Line 1197 if test $ac_cv_func_fseeko = yes; then | Line 1195 if test $ac_cv_func_fseeko = yes; then |
| AC_SYS_LARGEFILE | AC_SYS_LARGEFILE |
| fi | fi |
| # SunOS doesn't handle negative byte comparisons properly with +/- return | |
| AC_FUNC_MEMCMP | |
| # Select semaphore implementation type. | # Select semaphore implementation type. |
| if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then | if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then |