[llvm-commits] CVS: llvm/autoconf/acinclude.m4
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jul 20 20:14:49 PDT 2004
Changes in directory llvm/autoconf:
acinclude.m4 updated: 1.6 -> 1.7
---
Log message:
Add support for checking for isinf().
Patch contributed by Bill Wendling.
---
Diffs of the changes: (+14 -0)
Index: llvm/autoconf/acinclude.m4
diff -u llvm/autoconf/acinclude.m4:1.6 llvm/autoconf/acinclude.m4:1.7
--- llvm/autoconf/acinclude.m4:1.6 Tue Jun 22 18:42:49 2004
+++ llvm/autoconf/acinclude.m4 Tue Jul 20 22:14:39 2004
@@ -6282,3 +6282,17 @@
using std::isnan; int foo(float f) {return isnan(f);}])
])
+AC_DEFUN([AC_FUNC_ISINF],[
+AC_SINGLE_CXX_CHECK([HAVE_ISINF_IN_MATH_H], [ac_cv_func_isinf_in_math_h],
+ [isinf], [<math.h>],
+ [#include <math.h>
+ int foo(float f) {return isinf(f);}])
+AC_SINGLE_CXX_CHECK([HAVE_ISINF_IN_CMATH], [ac_cv_func_isinf_in_cmath],
+ [isinf], [<cmath>],
+ [#include <cmath>
+ int foo(float f) {return isinf(f);}])
+AC_SINGLE_CXX_CHECK([HAVE_STD_ISINF_IN_CMATH], [ac_cv_func_std_isinf_in_cmath],
+ [std::isinf], [<cmath>],
+ [#include <cmath>
+ using std::isinf; int foo(float f) {return isinf(f);}])
+])
More information about the llvm-commits
mailing list