Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d0634ac

Browse files
committed
configure cleanup
1 parent ef9699d commit d0634ac

File tree

4 files changed

+8
-39
lines changed

4 files changed

+8
-39
lines changed

src/backend/port/isinf.c

+7-24
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
/* $Id: isinf.c,v 1.9 1999/07/17 04:00:29 momjian Exp $ */
1+
/* $Id: isinf.c,v 1.10 1999/07/18 17:38:23 momjian Exp $ */
22

33
#include <math.h>
44

55
#include "config.h"
66

7-
#if HAVE_FPCLASS
7+
#ifdef NOT_USED
8+
89
#if HAVE_IEEEFP_H
910
#include <ieeefp.h>
1011
#endif
12+
#if HAVE_FP_CLASS_H
13+
#include <fp_class.h>
14+
#endif
15+
1116
int
1217
isinf(double d)
1318
{
@@ -24,12 +29,6 @@ isinf(double d)
2429
return 0;
2530
}
2631

27-
#else
28-
29-
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
30-
#if HAVE_FP_CLASS_H
31-
#include <fp_class.h>
32-
#endif
3332
int
3433
isinf(x)
3534
double x;
@@ -50,19 +49,3 @@ double x;
5049
}
5150

5251
#endif
53-
#endif
54-
55-
#if defined(HAVE_CLASS)
56-
int
57-
isinf(double x)
58-
{
59-
int fpclass = class(x);
60-
61-
if (fpclass == FP_PLUS_INF)
62-
return 1;
63-
if (fpclass == FP_MINUS_INF)
64-
return -1;
65-
return 0;
66-
}
67-
68-
#endif

src/configure.in

-11
Original file line numberDiff line numberDiff line change
@@ -660,17 +660,6 @@ AC_TRY_LINK([#include <fcntl.h>],
660660
[AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
661661
AC_MSG_RESULT(no))
662662

663-
AC_MSG_CHECKING(for good DBL_MIN)
664-
AC_TRY_RUN([#include <stdlib.h>
665-
#include <math.h>
666-
#ifdef HAVE_FLOAT_H
667-
# include <float.h>
668-
#endif
669-
main() { double d = DBL_MIN; if (d != DBL_MIN) exit(-1); else exit(0); }],
670-
AC_MSG_RESULT(yes),
671-
[AC_DEFINE(HAVE_DBL_MIN_PROBLEM) AC_MSG_RESULT(no)],
672-
AC_MSG_RESULT(assuming ok on target machine))
673-
674663
dnl Checks for library functions.
675664
AC_FUNC_MEMCMP
676665
AC_TYPE_SIGNAL

src/include/config.h.in

-3
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ extern void srandom(unsigned int seed);
294294
/* Set to 1 if you want to Enable ASSERT CHECKING */
295295
#undef USE_ASSERT_CHECKING
296296

297-
/* Set to 1 if your DBL_MIN is problematic */
298-
#undef HAVE_DBL_MIN_PROBLEM
299-
300297
/* Set to 1 if type "long int" works and is 64 bits */
301298
#undef HAVE_LONG_INT_64
302299

src/include/utils/ps_status.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const char **ps_status = NULL
7575
#define PS_STATUS (ps_status ? *ps_status : "")
7676
#endif
7777

78-
#ifdef DONT_HAVE_PS_STATUS
78+
#ifdef NO_PS_STATUS
7979
#define PS_DEFINE_BUFFER
8080
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname)
8181
#define PS_CLEAR_STATUS()

0 commit comments

Comments
 (0)