File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -14202,7 +14202,6 @@ fi
14202
14202
14203
14203
14204
14204
14205
- # do this one the hard way in case isinf() is a macro
14206
14205
echo "$as_me:$LINENO: checking for isinf" >&5
14207
14206
echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14208
14207
if test "${ac_cv_func_isinf+set}" = set; then
@@ -14214,12 +14213,14 @@ _ACEOF
14214
14213
cat confdefs.h >>conftest.$ac_ext
14215
14214
cat >>conftest.$ac_ext <<_ACEOF
14216
14215
/* end confdefs.h. */
14216
+
14217
14217
#include <math.h>
14218
+ double glob_double;
14218
14219
14219
14220
int
14220
14221
main ()
14221
14222
{
14222
- double x = 0.0; int res = isinf(x) ;
14223
+ return isinf(glob_double) ? 0 : 1 ;
14223
14224
;
14224
14225
return 0;
14225
14226
}
@@ -15102,11 +15103,14 @@ _ACEOF
15102
15103
cat confdefs.h >>conftest.$ac_ext
15103
15104
cat >>conftest.$ac_ext <<_ACEOF
15104
15105
/* end confdefs.h. */
15106
+
15105
15107
#include <math.h>
15108
+ double glob_double;
15109
+
15106
15110
int
15107
15111
main ()
15108
15112
{
15109
- int dummy= finite(1.0) ;
15113
+ return finite(glob_double) ? 0 : 1 ;
15110
15114
;
15111
15115
return 0;
15112
15116
}
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $PostgreSQL: pgsql/configure.in,v 1.441 2006/01/05 03:01:32 momjian Exp $
2
+ dnl $PostgreSQL: pgsql/configure.in,v 1.442 2006/01/12 19:23:22 tgl Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
892
892
AC_CHECK_DECLS([snprintf, vsnprintf])
893
893
894
894
895
- # do this one the hard way in case isinf() is a macro
895
+ dnl Cannot use AC_CHECK_FUNC because isinf may be a macro
896
896
AC_CACHE_CHECK([for isinf], ac_cv_func_isinf,
897
- [AC_TRY_LINK(
898
- [#include <math.h>
897
+ [AC_TRY_LINK([
898
+ #include <math.h>
899
+ double glob_double;
899
900
],
900
- [double x = 0.0; int res = isinf(x) ;],
901
+ [return isinf(glob_double) ? 0 : 1 ;],
901
902
[ac_cv_func_isinf=yes],
902
903
[ac_cv_func_isinf=no])])
903
904
963
964
964
965
dnl Cannot use AC_CHECK_FUNC because finite may be a macro
965
966
AC_MSG_CHECKING(for finite)
966
- AC_TRY_LINK([#include <math.h>],
967
- [int dummy=finite(1.0);],
967
+ AC_TRY_LINK([
968
+ #include <math.h>
969
+ double glob_double;
970
+ ],
971
+ [return finite(glob_double) ? 0 : 1;],
968
972
[AC_DEFINE(HAVE_FINITE, 1, [Define to 1 if you have finite().])
969
973
AC_MSG_RESULT(yes)],
970
974
[AC_MSG_RESULT(no)])
You can’t perform that action at this time.
0 commit comments