Check more carefully for fenv_t and fexcept_t.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 1 Nov 2010 06:33:38 +0000 (06:33 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 1 Nov 2010 06:33:38 +0000 (06:33 +0000)
src/microcode/configure.ac

index 5badbcca89b9293ffa365b1204e9e335787db30b..36ca8b19a91b5c194beaebd9e88efb6eb79502a7 100644 (file)
@@ -469,13 +469,6 @@ define([SCM_INC_BSDTTY],
     #endif
     ])
 
-define([SCM_INC_FENV],
-    [
-    #ifdef HAVE_FENV_H
-    #  include <fenv.h>
-    #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 <termios.h> 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 <fenv.h>
+    ])
+
+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])