Commit 5514c1fa authored by Marc G. Fournier's avatar Marc G. Fournier

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>
parent 2de10b0b
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -137,9 +137,7 @@ ltoa(int32 l, char *a)
int int
ftoa(double value, char *ascii, int width, int prec1, char format) ftoa(double value, char *ascii, int width, int prec1, char format)
{ {
#if defined(__FreeBSD__) || \ #ifndef HAVE_FCVT
defined(bsdi) || \
defined(bsdi_2_1)
char out[256]; char out[256];
char fmt[256]; char fmt[256];
int ret; int ret;
......
...@@ -3361,7 +3361,7 @@ else ...@@ -3361,7 +3361,7 @@ else
fi fi
done done
for ac_func in sigprocmask waitpid setsid random for ac_func in sigprocmask waitpid setsid random fcvt
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3368: checking for $ac_func" >&5 echo "configure:3368: checking for $ac_func" >&5
......
...@@ -397,7 +397,7 @@ AC_FUNC_MEMCMP ...@@ -397,7 +397,7 @@ AC_FUNC_MEMCMP
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_FUNC_VPRINTF AC_FUNC_VPRINTF
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf) 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(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(strerror, AC_DEFINE(HAVE_STRERROR), STRERROR='strerror.o')
AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o') AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o')
......
...@@ -59,6 +59,9 @@ ...@@ -59,6 +59,9 @@
/* Set to 1 if you have inet_aton() */ /* Set to 1 if you have inet_aton() */
#undef HAVE_INET_ATON #undef HAVE_INET_ATON
/* Set to 1 if you have fcvt() */
#undef HAVE_FCVT
/* Set to 1 if you have strerror() */ /* Set to 1 if you have strerror() */
#undef HAVE_STRERROR #undef HAVE_STRERROR
......
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