diff --git a/configure.in b/configure.in index 4a208d8f5..5dd04fb55 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl configuration script for Guile dnl Process this file with autoconf to produce configure. 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 This file is part of GUILE dnl @@ -536,6 +536,11 @@ dnl GMP tests AC_CHECK_LIB([gmp], [__gmpz_init], , [AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp])]) +# mpz_import is a macro so we need to include +AC_TRY_LINK([#include ], + [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 ### need to at least provide our own K&R-style declarations.