Some architectures, such as Microblaze, currently do not implement
FE_DIVBYZERO, even though they have fenv.h and
feenableexcept(). This commit adds a configure.ac check to verify
whether FE_DIVBYZERO is defined or not, and if not, disables the
problematic code in test/utils.c.
Signed-off-by:
Hi,
Thanks for the patch. The check
+AC_CHECK_DECL([FE_DIVBYZERO], [], [], [[#include fenv.h]])
+if test x$have_fe_divbyzero = xyes; then
+ AC_DEFINE(HAVE_FEDIVBYZERO, 1, [Whether we have FE_DIVBYZERO])
+fi
needs to actually set the $have_fe_divbyzero variable to yes or
no. Otherwise