kaffe wont' recognize that gmp is installed
Edouard G. Parmelan
Edouard.Parmelan at quadratec.fr
Tue Nov 7 04:01:46 PST 2000
sipher42 at hotmail.com wrote:
> Hers' waht I get
> [root at rootdown jokes]# grep mpz_get_d /usr/local/include/gmp.h
> #define mpz_get_d __gmpz_get_d
Well, thanks for that, GMP 3 rename function mpz_get_d to __gmpz_get_d.
If you have autoconf 2.13, apply this patch:
diff -u -r1.147 configure.in
--- configure.in 2000/07/24 19:58:35 1.147
+++ configure.in 2000/11/07 11:51:23
@@ -597,6 +597,10 @@
dnl Check for libraries for math library.
AC_CHECK_LIBRARY(gmp,mpz_get_d,MATH_LIBS)
+if test $ac_cv_lib_gmp_mpz_get_d = no; then
+ dnl with gmp3 it's a #define, use real function name
+ AC_CHECK_LIBRARY(gmp,__gmpz_get_d,MATH_LIBS)
+fi
MATH_LIBS="$CTLIBS $MATH_LIBS"
AC_SUBST(MATH_LIBS)
And run autoconf.
$ autoconf
Hope this helps -- this will be in CVS Tree in a near futur.
--
Edouard G. Parmelan
http://egp.free.fr
More information about the kaffe
mailing list