From 5f64d497132e70dd612517199e809bba4fe226cf Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 24 Nov 2006 00:44:20 +0000 Subject: configure.in: check for gmp.h a bit earlier. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4279 280ebfd0-de03-0410-8827-d642c229c3f4 --- configure.in | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 797b298e9..d3123489f 100644 --- a/configure.in +++ b/configure.in @@ -252,6 +252,19 @@ if test "${with_tags+set}" != set; then with_tags= fi +dnl +dnl Setup GMP detection +dnl + +dnl Check GMP Header +AC_MSG_CHECKING(for gmp.h) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ +#include "gmp.h" +]])],[AC_MSG_RESULT(yes)],[ + AC_MSG_RESULT(no) + AC_MSG_ERROR([gmp.h can't be found, or is unusable.]) +]) + dnl Configs for Windows DLLs. dnl libtool requires "-no-undefined" for win32 dll dnl It also disables the tests involving the linking with LIBGMP if DLL @@ -296,18 +309,9 @@ GMP_C_ATTRIBUTE_MODE dnl -dnl Setup GMP detection +dnl Setup GMP detection (continued) dnl -dnl Check GMP Header -AC_MSG_CHECKING(for gmp.h) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ -#include "gmp.h" -]])],[AC_MSG_RESULT(yes)],[ - AC_MSG_RESULT(no) - AC_MSG_ERROR([gmp.h can't be found, or is unusable.]) -]) - AC_MSG_CHECKING(for recent GMP) AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include "gmp.h" -- cgit v1.2.1