1dnl 2dnl This function determins if the isinf function isavailable on this 3dnl platform. 4dnl 5 6AC_DEFUN([AC_FUNC_ISINF],[ 7 8AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h], 9 [isinf], [<math.h>], 10 [float f; isinf(f);]) 11if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 12 AC_DEFINE([HAVE_ISINF_IN_MATH_H], [1], 13 [Set to 1 if the isinf function is found in <math.h>]) 14fi 15 16AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath], 17 [isinf], [<cmath>], 18 [float f; isinf(f);]) 19if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20 AC_DEFINE([HAVE_ISINF_IN_CMATH], [1], 21 [Set to 1 if the isinf function is found in <cmath>]) 22fi 23 24AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath], 25 [std::isinf], [<cmath>], 26 [float f; std::isinf(f);]) 27if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 28 AC_DEFINE([HAVE_STD_ISINF_IN_CMATH], [1], 29 [Set to 1 if the std::isinf function is found in <cmath>]) 30fi 31 32AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h], 33 [finite], [<ieeefp.h>], 34 [float f; finite(f);]) 35if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 36 AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H], [1], 37 [Set to 1 if the finite function is found in <ieeefp.h>]) 38fi 39 40]) 41 42 43