summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-06-16 17:37:12 +0000
committerIan Lynagh <igloo@earth.li>2009-06-16 17:37:12 +0000
commit8e9626ce5158f434a63f4948b5607150786f9c75 (patch)
treec717b35c02bd642b2ec36b62f868258ad862301c
parente543f10a733dd08d99f31582a1c53dde2cdd654d (diff)
downloadhaskell-8e9626ce5158f434a63f4948b5607150786f9c75.tar.gz
Remove more GMP bits
-rw-r--r--configure.ac55
-rw-r--r--mk/bootstrap.mk5
-rw-r--r--mk/config.mk.in14
3 files changed, 0 insertions, 74 deletions
diff --git a/configure.ac b/configure.ac
index 86ef9693f0..57174a26f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,25 +58,6 @@ if test x"$srcdir" != 'x.' ; then
exit 1
fi
-dnl--------------------------------------------------------------------
-dnl * Deal with arguments telling us gmp is somewhere odd
-dnl--------------------------------------------------------------------
-
-FP_ARG_GMP
-
-GMP_INCLUDE_DIRS=
-GMP_LIB_DIRS=
-if test "x$gmp_libraries" != "xNONE"; then
- LDFLAGS="-L$gmp_libraries $LDFLAGS"
- GMP_LIB_DIRS=$gmp_libraries
-fi
-if test "x$gmp_includes" != "xNONE"; then
- CPPFLAGS="-I$gmp_includes $CPPFLAGS"
- GMP_INCLUDE_DIRS=$gmp_includes
-fi
-AC_SUBST(GMP_INCLUDE_DIRS)
-AC_SUBST(GMP_LIB_DIRS)
-
dnl --------------------------------------------------------------
dnl * Project specific configuration options
dnl --------------------------------------------------------------
@@ -759,36 +740,6 @@ AC_CHECK_DECLS([ctime_r], , ,
#define _POSIX_C_SOURCE 199506L
#include <time.h>])
-dnl ** For ghc/rts/gmp:
-AC_CHECK_FUNCS([getpagesize])
-
-dnl ** check whether this machine has gmp3 installed
-AC_CHECK_LIB(gmp, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp,
- AC_CHECK_LIB(gmp3, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp3,
- HaveLibGmp=NO; LibGmp=not-installed))
- if test $HaveLibGmp = YES; then
- AC_DEFINE([HAVE_LIB_GMP], [1], [Define to 1 if GMP library is installed.])
- fi;
-AC_SUBST(HaveLibGmp)
-AC_SUBST(LibGmp)
-
-dnl ** (Mac OS X only: check for GMP.framework)
-HaveFrameworkGMP=NO
-case $HostPlatform in
-*-apple-darwin)
- AC_MSG_CHECKING([for GMP.framework])
- save_libs="$LIBS"
- LIBS="-framework GMP"
- AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, HaveFrameworkGMP=YES,)
- if test $HaveFrameworkGMP = YES; then
- AC_DEFINE([HAVE_FRAMEWORK_GMP], [1], [Define to 1 if GMP.framework is installed (Mac OS X only).])
- fi;
- LIBS="$save_libs"
- AC_MSG_RESULT([$HaveFrameworkGMP])
- ;;
-esac
-AC_SUBST(HaveFrameworkGMP)
-
dnl ** check for mingwex library
AC_CHECK_LIB(mingwex, closedir, HaveLibMingwEx=YES, HaveLibMingwEx=NO)
AC_SUBST(HaveLibMingwEx)
@@ -797,12 +748,6 @@ if test $HaveLibMingwEx = YES ; then
AC_DEFINE([HAVE_MINGWEX], [1], [Define to 1 if you have the mingwex library.])
fi
-if test "$HaveLibGmp" = "NO"; then
-if test "$HostArch_CPP" = "ia64" -o "$HostArch_CPP" = "mipseb" ; then
-AC_MSG_ERROR([You need to install libgmp (the in-tree version does not work on IA64 or mips64).])
-fi;
-fi;
-
dnl ** check whether this machine has BFD and liberty installed (used for debugging)
dnl the order of these tests matters: bfd needs liberty
AC_CHECK_LIB(iberty, xmalloc)
diff --git a/mk/bootstrap.mk b/mk/bootstrap.mk
index 865f3d3c20..1b0bd23e2d 100644
--- a/mk/bootstrap.mk
+++ b/mk/bootstrap.mk
@@ -77,13 +77,8 @@ else
UNDERSCORE=
endif
-ifeq "$(HaveLibGmp)" "NO"
-DASH_L_GHC_RTS_GMP_DIR=-L$(FPTOOLS_TOP_ABS)/$(GHC_RTS_DIR_REL)/gmp
-endif
-
HC_BOOT_LD_OPTS = \
-L$(FPTOOLS_TOP_ABS)/$(GHC_RTS_DIR_REL) \
- $(DASH_L_GHC_RTS_GMP_DIR) \
-L$(FPTOOLS_TOP_ABS)/libraries/base \
-L$(FPTOOLS_TOP_ABS)/libraries/base/cbits \
-L$(FPTOOLS_TOP_ABS)/libraries/haskell98 \
diff --git a/mk/config.mk.in b/mk/config.mk.in
index eefb00dd95..6be0aa4228 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -701,20 +701,6 @@ SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS)))
SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d))
#-----------------------------------------------------------------------------
-# GMP Library (version 2.0.x or above)
-#
-HaveLibGmp = @HaveLibGmp@
-LibGmp = @LibGmp@
-
-GMP_INCLUDE_DIRS=@GMP_INCLUDE_DIRS@
-GMP_LIB_DIRS=@GMP_LIB_DIRS@
-
-#-----------------------------------------------------------------------------
-# GMP framework (Mac OS X)
-#
-HaveFrameworkGMP = @HaveFrameworkGMP@
-
-#-----------------------------------------------------------------------------
# Mingwex Library
#
HaveLibMingwEx = @HaveLibMingwEx@