/* define if you have sys/stat.h */
#define HAVE_SYS_STAT_H 0
+/* define if you have fpu_control.h */
+#define HAVE_FPU_CONTROL_H 0
+
/* define if you have sys/stat.h */
#define STAT_MACROS_BROKEN 0
STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20050624)
-AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h])
+AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h])
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([sstream boost/lambda/lambda.hpp])
AC_LANG_POP(C++)
unpredictable places. To get around this, we tell the x87 FPU to use only
double precision. Note that this is not needed for x86_64 because that uses
the SSE unit by default instead of the x87 FPU. */
-#if defined(__x86__) || defined(__i386__)
+#if (defined(__x86__) || defined(__i386__)) && defined(HAVE_FPU_CONTROL_H)
#include <fpu_control.h>
static void configure_fpu() {