summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m416
1 files changed, 14 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 952e2256b..f5ef1d882 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,6 +1,6 @@
dnl MPFR specific autoconf macros
-dnl Copyright 2000, 2002, 2003 Free Software Foundation.
+dnl Copyright 2000, 2002, 2003, 2004 Free Software Foundation.
dnl Contributed by the Spaces project, INRIA Lorraine.
dnl
dnl This file is part of the MPFR Library.
@@ -40,7 +40,12 @@ then
then
LIBS="$LIBS $1/lib$2.so"
else
- AC_MSG_ERROR($1/lib$2.a/so not found)
+ if test -r "$1/lib$2.lib"
+ then
+ LIBS="$LIBS $1/lib$2.lib"
+ else
+ AC_MSG_ERROR($1/lib$2.a/so/lib not found)
+ fi
fi
fi
AC_MSG_RESULT(yes)
@@ -146,6 +151,13 @@ esac
#
AC_CHECK_HEADERS(sys/fpu.h)
+AC_CHECK_TYPE( [union fpc_csr], AC_DEFINE(HAVE_FPC_CSR), ,
+[
+#if HAVE_SYS_FPU_H
+# include <sys/fpu.h>
+#endif
+])
+
dnl Check for fesetround
AC_CACHE_CHECK([for fesetround], mpfr_cv_have_fesetround, [
saved_LIBS="$LIBS"