# for mono/dis
AC_CHECK_HEADERS(wchar.h)
-AC_CHECK_FUNCS(isinf)
AC_CHECK_HEADERS(ieeefp.h)
+AC_MSG_CHECKING(for isinf)
+AC_TRY_COMPILE([#include <math.h>], [
+ int f = isinf (1);
+], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_ISINF, 1, [isinf available])
+], [
+ # We'll have to use signals
+ AC_MSG_RESULT(no)
+])
+
# not 64 bit clean in cross-compile
AC_CHECK_SIZEOF(void *, 4)