summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-07 11:53:27 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-07 11:53:27 +0000
commit0fa7e68d2efda499aa0e2d73d21c2d0733082611 (patch)
tree8de7557d640ca1822df180389698313335ce189f
parent0349386466edbbb46fa890006b0c5110d422e50e (diff)
downloadmpfr-0fa7e68d2efda499aa0e2d73d21c2d0733082611.tar.gz
Add support for ".lib" since it seems to work.
Display GMP version inside the configure. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3023 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--acinclude.m47
-rw-r--r--configure.in1
-rw-r--r--tests/tget_str.c1
3 files changed, 8 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 952e2256b..6a813f205 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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)
diff --git a/configure.in b/configure.in
index c547b9d93..c9eac1c5d 100644
--- a/configure.in
+++ b/configure.in
@@ -171,6 +171,7 @@ int main()
__GNU_MP_VERSION_PATCHLEVEL);
else
sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
+ printf ("(%s/%s) ", buffer, gmp_version);
return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
}
], AC_MSG_RESULT(yes),
diff --git a/tests/tget_str.c b/tests/tget_str.c
index 786664628..f22a92492 100644
--- a/tests/tget_str.c
+++ b/tests/tget_str.c
@@ -407,6 +407,7 @@ check_small (void)
exit (1);
}
mpfr_free_str (s);
+
mpfr_set_str_binary (x, "11111001010011100101000001111111110001001001110110001E-136");
s = mpfr_get_str (NULL, &e, 10, 9, x, GMP_RNDN);
if (strcmp (s, "100693858") || e != -24)