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