2004-09-07 16:23:53 +02:00
|
|
|
#
|
|
|
|
# This function determins if the the isinf function isavailable on this
|
|
|
|
# platform.
|
|
|
|
#
|
|
|
|
AC_DEFUN([AC_FUNC_ISINF],[
|
2004-10-28 01:03:44 +02:00
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h],
|
2004-09-07 16:23:53 +02:00
|
|
|
[isinf], [<math.h>],
|
2004-10-28 01:03:44 +02:00
|
|
|
[float f; isinf(f);])
|
|
|
|
if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
|
|
|
|
AC_DEFINE([HAVE_ISINF_IN_MATH_H],1,[Set to 1 if the isinf function is found in <math.h>])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath],
|
2004-09-07 16:23:53 +02:00
|
|
|
[isinf], [<cmath>],
|
2004-10-28 01:03:44 +02:00
|
|
|
[float f; isinf(f);])
|
|
|
|
if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
|
|
|
|
AC_DEFINE([HAVE_ISINF_IN_CMATH],1,[Set to 1 if the isinf function is found in <cmath>])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath],
|
2004-09-07 16:23:53 +02:00
|
|
|
[std::isinf], [<cmath>],
|
2012-03-26 04:09:01 +02:00
|
|
|
[float f; std::isinf(f);])
|
2004-10-28 01:03:44 +02:00
|
|
|
if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
|
|
|
|
AC_DEFINE([HAVE_STD_ISINF_IN_CMATH],1,[Set to 1 if the std::isinf function is found in <cmath>])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h],
|
2004-09-07 16:23:53 +02:00
|
|
|
[finite], [<ieeefp.h>],
|
2004-10-28 01:03:44 +02:00
|
|
|
[float f; finite(f);])
|
2004-10-28 07:04:20 +02:00
|
|
|
if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
|
2004-10-28 06:17:05 +02:00
|
|
|
AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H],1,[Set to 1 if the finite function is found in <ieeefp.h>])
|
2004-10-28 01:03:44 +02:00
|
|
|
fi
|
|
|
|
|
2004-09-07 16:23:53 +02:00
|
|
|
])
|
|
|
|
|
|
|
|
|