summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 13:52:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-18 13:52:48 +0000
commitfd4ce17ddfc69a097faf8479b568508252e0bc64 (patch)
treeb32ae7d7ff6e583467efedaf0354c69b452546cd /configure.in
parent8fd1dd5d668f105906d746783e67513e99ce449c (diff)
downloadmpfr-fd4ce17ddfc69a097faf8479b568508252e0bc64.tar.gz
Improved configure.in.
configure generated by Autoconf 2.52. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1294 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 14 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 7d3e5f826..33065d0d5 100644
--- a/configure.in
+++ b/configure.in
@@ -59,10 +59,20 @@ case $OS_TYPE in
esac
dnl Tests pour le repertoire ou trouver les fichiers include
-
-AC_MY_HEADERS($with_gmp_include, gmp-impl.h)
-
-
+AC_MSG_CHECKING(for gmp files)
+if test -d "$with_gmp_include"; then
+ CPPFLAGS="$CPPFLAGS -I$with_gmp_include"
+else
+ with_gmp_include=
+fi
+AC_TRY_COMPILE([
+#include "gmp.h"
+#include "gmp-impl.h"
+#include "longlong.h"
+], , AC_MSG_RESULT(yes),
+ [AC_MSG_RESULT(no)
+ AC_MSG_ERROR(gmp.h or gmp-impl.h or config.h or gmp-mparam.h or longlong.h may be missing ${with_gmp_include:+in $with_gmp_include})]
+)
AC_MY_LIBS($with_gmp_lib, gmp)
AC_SUBST(INCLUDES)