Add fcvt() as a check to configure so that we can get rid of the BSD44_derived

type check in numutils.c:ftoa()

Pointed out by: "Martin J. Laubach" <mjl@emsi.priv.at>
This commit is contained in:
Marc G. Fournier 1997-04-22 17:47:42 +00:00
parent 2de10b0b01
commit 5514c1fa23
4 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.9 1997/04/13 17:09:45 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.10 1997/04/22 17:47:14 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -137,9 +137,7 @@ ltoa(int32 l, char *a)
int
ftoa(double value, char *ascii, int width, int prec1, char format)
{
#if defined(__FreeBSD__) || \
defined(bsdi) || \
defined(bsdi_2_1)
#ifndef HAVE_FCVT
char out[256];
char fmt[256];
int ret;

2
src/configure vendored
View File

@ -3361,7 +3361,7 @@ else
fi
done
for ac_func in sigprocmask waitpid setsid random
for ac_func in sigprocmask waitpid setsid random fcvt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3368: checking for $ac_func" >&5

View File

@ -397,7 +397,7 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid random)
AC_CHECK_FUNCS(sigprocmask waitpid setsid random fcvt)
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), STRERROR='strerror.o')
AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o')

View File

@ -59,6 +59,9 @@
/* Set to 1 if you have inet_aton() */
#undef HAVE_INET_ATON
/* Set to 1 if you have fcvt() */
#undef HAVE_FCVT
/* Set to 1 if you have strerror() */
#undef HAVE_STRERROR