summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane2020-02-21 18:18:27 +0000
committerTom Lane2020-02-21 19:30:47 +0000
commit7fde892bc191e4df9fcd52ce11d1502673498d97 (patch)
treed708c07b1c64624c4eb98efd00a754e1a65443fa /configure.in
parent799d22461a932aace890d61a82186e0d64de0ee8 (diff)
Assume that we have isinf().
Windows has this, and so do all other live platforms according to the buildfarm, so remove the configure probe and src/port/ substitution. This also lets us get rid of some configure probes that existed only to support src/port/isinf.c. I kept the port.h hack to force using __builtin_isinf() on clang, though. This is part of a series of commits to get rid of no-longer-relevant configure checks and dead src/port/ code. I'm committing them separately to make it easier to back out individual changes if they prove less portable than I expect. Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in21
1 files changed, 0 insertions, 21 deletions
diff --git a/configure.in b/configure.in
index a70870184fd..23ed5f92e09 100644
--- a/configure.in
+++ b/configure.in
@@ -1280,9 +1280,7 @@ AC_CHECK_HEADERS(m4_normalize([
atomic.h
copyfile.h
execinfo.h
- fp_class.h
getopt.h
- ieeefp.h
ifaddrs.h
langinfo.h
mbarrier.h
@@ -1699,25 +1697,6 @@ if test "$pgac_cv_var_PS_STRINGS" = yes ; then
AC_DEFINE([HAVE_PS_STRINGS], 1, [Define to 1 if the PS_STRINGS thing exists.])
fi
-
-dnl Cannot use AC_CHECK_FUNC because isinf may be a macro
-AC_CACHE_CHECK([for isinf], ac_cv_func_isinf,
-[AC_LINK_IFELSE([AC_LANG_PROGRAM([
-#include <math.h>
-double glob_double;
-],
-[return isinf(glob_double) ? 0 : 1;])],
-[ac_cv_func_isinf=yes],
-[ac_cv_func_isinf=no])])
-
-if test $ac_cv_func_isinf = yes ; then
- AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have isinf().])
-else
- AC_LIBOBJ(isinf)
- # Look for a way to implement a substitute for isinf()
- AC_CHECK_FUNCS([fpclass fp_class fp_class_d class], [break])
-fi
-
AC_REPLACE_FUNCS(m4_normalize([
dlopen
explicit_bzero