mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 21:10:27 +02:00
Check for mpz_import, which is required but only available in GMP 4.1.
This commit is contained in:
parent
e55b54285b
commit
9f1555fe8d
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
dnl configuration script for Guile
|
dnl configuration script for Guile
|
||||||
dnl Process this file with autoconf to produce configure.
|
dnl Process this file with autoconf to produce configure.
|
||||||
dnl
|
dnl
|
||||||
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
dnl
|
dnl
|
||||||
dnl This file is part of GUILE
|
dnl This file is part of GUILE
|
||||||
dnl
|
dnl
|
||||||
|
@ -536,6 +536,11 @@ dnl GMP tests
|
||||||
AC_CHECK_LIB([gmp], [__gmpz_init], ,
|
AC_CHECK_LIB([gmp], [__gmpz_init], ,
|
||||||
[AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp])])
|
[AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp])])
|
||||||
|
|
||||||
|
# mpz_import is a macro so we need to include <gmp.h>
|
||||||
|
AC_TRY_LINK([#include <gmp.h>],
|
||||||
|
[mpz_import (0, 0, 0, 0, 0, 0, 0);] , ,
|
||||||
|
[AC_MSG_ERROR([At least GNU MP 4.1 is required, see http://swox.com/gmp])])
|
||||||
|
|
||||||
### Some systems don't declare some functions. On such systems, we
|
### Some systems don't declare some functions. On such systems, we
|
||||||
### need to at least provide our own K&R-style declarations.
|
### need to at least provide our own K&R-style declarations.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue