+ dnl Also check whether it's declared.
+ dnl IRIX 6.5 has fma() in libm but doesn't declare it in <math.h>,
+ dnl and the function is buggy.
+ AC_CHECK_DECL([fma], , [REPLACE_FMA=1], [[#include <math.h>]])
+ if test $REPLACE_FMA = 0; then
+ gl_FUNC_FMA_WORKS
+ case "$gl_cv_func_fma_works" in
+ *no) REPLACE_FMA=1 ;;
+ esac
+ fi