blob: c936bf920d027d7ae6082d4d5f5d3c4e8a9f1b80 [file] [log] [blame]
Reid Spencer53ecd512004-09-07 14:23:53 +00001#
2# This function determins if the the isinf function isavailable on this
3# platform.
4#
5AC_DEFUN([AC_FUNC_ISINF],[
Reid Spencerabec8f92004-10-27 23:03:44 +00006AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h],
Reid Spencer53ecd512004-09-07 14:23:53 +00007 [isinf], [<math.h>],
Reid Spencerabec8f92004-10-27 23:03:44 +00008 [float f; isinf(f);])
9if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
10 AC_DEFINE([HAVE_ISINF_IN_MATH_H],1,[Set to 1 if the isinf function is found in <math.h>])
11fi
12
13AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath],
Reid Spencer53ecd512004-09-07 14:23:53 +000014 [isinf], [<cmath>],
Reid Spencerabec8f92004-10-27 23:03:44 +000015 [float f; isinf(f);])
16if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17 AC_DEFINE([HAVE_ISINF_IN_CMATH],1,[Set to 1 if the isinf function is found in <cmath>])
18fi
19
20AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath],
Reid Spencer53ecd512004-09-07 14:23:53 +000021 [std::isinf], [<cmath>],
Reid Spencerabec8f92004-10-27 23:03:44 +000022 [float f; std::isinf(f)}])
23if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
24 AC_DEFINE([HAVE_STD_ISINF_IN_CMATH],1,[Set to 1 if the std::isinf function is found in <cmath>])
25fi
26
27AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h],
Reid Spencer53ecd512004-09-07 14:23:53 +000028 [finite], [<ieeefp.h>],
Reid Spencerabec8f92004-10-27 23:03:44 +000029 [float f; finite(f);])
Reid Spencercd9bbdd2004-10-28 05:04:20 +000030if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeke1d460f92004-10-28 04:17:05 +000031 AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H],1,[Set to 1 if the finite function is found in <ieeefp.h>])
Reid Spencerabec8f92004-10-27 23:03:44 +000032fi
33
Reid Spencer53ecd512004-09-07 14:23:53 +000034])
35
36