diff options
author | Michael Gran <spk121@yahoo.com> | 2021-03-03 10:54:04 -0800 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2021-03-03 14:06:29 -0800 |
commit | 6ca3ab621cd9e5054a47b5946dacd98df756a879 (patch) | |
tree | 97969af83e91252885862b0d627ad1f283042aea /libguile/bytevectors.c | |
parent | eb5ffda6cedef823afc4a5b2fdddcee58e46df19 (diff) | |
download | guile-6ca3ab621cd9e5054a47b5946dacd98df756a879.tar.gz |
don't presume availability of gmp.pc
This suggests moving the conditional that determines if mini-gmp is used
into scmconfig.h.
* configure.ac: replace PKG_CHECK_MODULES for gmp with AC_LIB_HAVE_LINKFLAGS
Remove ENABLE_MINI_GMP define. Also don't run mpz_inits test for
--enable-mini-gmp.
* libguile/gen-scmconfig.c (main) [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP
with SCM_I_GSC_ENABLE_MINI_GMP
* libguile/bytevectors.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP
with SCM_ENABLE_MINI_GMP
* libguile/init.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP
with SCM_ENABLE_MINI_GMP
* libguile/numbers.c: include scm.h
[SCM_ENABLE_MINI_GMP]: provide mpz_inits and mpz_clears
[ENABLE_MINI_GMP]: prefer SCM_ENABLE_MINI_GMP to ENABLE_MINI_GMP
* libguile/numbers.h: include scm.h
* libguile/random.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP
with SCM_ENABLE_MINI_GMP
* libguile/socket.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP
with SCM_ENABLE_MINI_GMP
Diffstat (limited to 'libguile/bytevectors.c')
-rw-r--r-- | libguile/bytevectors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/bytevectors.c b/libguile/bytevectors.c index 2671eeeea..2d6cbdb3e 100644 --- a/libguile/bytevectors.c +++ b/libguile/bytevectors.c @@ -35,7 +35,9 @@ #include <alloca.h> #include <assert.h> -#if ENABLE_MINI_GMP +#include "scm.h" + +#if SCM_ENABLE_MINI_GMP #include "mini-gmp.h" #else #include <gmp.h> |