configure: Fix the isinf() detection. Fixes compilation on Solaris.
This commit is contained in:
parent
86bd0461a5
commit
2fef93a857
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 <math.h>]], [[float f = 0.0; isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[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.])
|
||||
|
|
Loading…
Reference in New Issue