summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-09 13:47:16 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-09 13:47:16 +0000
commit08cccfa6ca628a4318d9a3aef53d0891d29eb032 (patch)
treec8219769ac2004c833c8cb9dc953e8374b07dd8a /configure.in
parent5d5e48c6d911a0100722a571bb9ab7a9e2884c98 (diff)
downloadmpfr-08cccfa6ca628a4318d9a3aef53d0891d29eb032.tar.gz
Added code to support fesetround under Solaris.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1838 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 4f3d0f41a..aaf17cb4a 100644
--- a/configure.in
+++ b/configure.in
@@ -31,6 +31,7 @@ case $OS_TYPE in
;;
SunOS*)
MISCFLAGS="trunc.c"
+ LM9X="-lm9x"
AC_CHECK_LIB(m, main)
;;
Linux*)
@@ -61,10 +62,13 @@ AC_CHECK_HEADERS(fpu_control.h)
dnl Check for fesetround
AC_MSG_CHECKING(for fesetround)
+saved_LIBS="$LIBS"
+LIBS="$LIBS $LM9X"
AC_TRY_LINK([#include <fenv.h>], [fesetround(FE_TONEAREST);],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FESETROUND)],
- AC_MSG_RESULT(no)
+ [AC_MSG_RESULT(no)
+ LIBS="$saved_LIBS"]
)
dnl Tests concerning the include directories.