From: Taylor R Campbell Date: Mon, 1 Nov 2010 06:33:38 +0000 (+0000) Subject: Check more carefully for fenv_t and fexcept_t. X-Git-Tag: 20101212-Gtk~21 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=9a73c16b1509297a150a8eaccfe17cce46bdc647;p=mit-scheme.git Check more carefully for fenv_t and fexcept_t. --- diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 5badbcca8..36ca8b19a 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -469,13 +469,6 @@ define([SCM_INC_BSDTTY], #endif ]) -define([SCM_INC_FENV], - [ - #ifdef HAVE_FENV_H - # include - #endif - ]) - dnl Checks for types and structs AC_TYPE_MODE_T AC_TYPE_OFF_T @@ -554,8 +547,15 @@ AC_CHECK_TYPE([speed_t], [Define to `short' if doesn't define.])], [SCM_INC_TERMIO]) -AC_CHECK_TYPES([fenv_t], [], [], [SCM_INC_FENV]) -AC_CHECK_TYPES([fexcept_t], [], [], [SCM_INC_FENV]) +define([SCM_INC_FENV], + [ + #include + ]) + +if test "x$ac_cv_header_fenv_h" = "xyes"; then + AC_CHECK_TYPES([fenv_t], [], [], [SCM_INC_FENV]) + AC_CHECK_TYPES([fexcept_t], [], [], [SCM_INC_FENV]) +fi AC_CHECK_SIZEOF([time_t]) AC_CHECK_SIZEOF([off_t])