diff --git a/configure b/configure index 40365dc9b74..2f13aa885c1 100755 --- a/configure +++ b/configure @@ -21374,7 +21374,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -float f = 0.0; isinf(f) +float f = 0.0; int i=isinf(f) ; return 0; } diff --git a/configure.ac b/configure.ac index a3bf985cf58..8695b89e1c3 100644 --- a/configure.ac +++ b/configure.ac @@ -1612,7 +1612,7 @@ fi dnl Check for isinf AC_CACHE_CHECK([for isinf], ac_cv_have_isinf, - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[float f = 0.0; isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"])) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[float f = 0.0; int i=isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"])) if test "$ac_cv_have_isinf" = "yes" then AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])