Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
integer-gmp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
integer-gmp
Commits
b3a04fae
Commit
b3a04fae
authored
15 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
Improve the configure script
parent
e4f4af14
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+11
-16
11 additions, 16 deletions
configure.ac
gmp/config.mk.in
+4
-0
4 additions, 0 deletions
gmp/config.mk.in
gmp/ghc.mk
+5
-0
5 additions, 0 deletions
gmp/ghc.mk
with
20 additions
and
16 deletions
configure.ac
+
11
−
16
View file @
b3a04fae
...
...
@@ -33,12 +33,12 @@ dnl * Check whether this machine has gmp/gmp3 installed
dnl--------------------------------------------------------------------
AC_CHECK_LIB([gmp], [__gmpz_fdiv_qr],
[H
AVE_GMP
=YES; GMP_LIBS=gmp],
[H
AVE_GMP
=NO; GMP_LIBS=])
if test "$H
AVE_GMP
" = "NO"; then
[H
aveLibGmp
=YES; GMP_LIBS=gmp],
[H
aveLibGmp
=NO; GMP_LIBS=])
if test "$H
aveLibGmp
" = "NO"; then
AC_CHECK_LIB([gmp3], [__gmpz_fdiv_qr],
[H
AVE_GMP
=YES; GMP_LIBS=gmp3],
[H
AVE_GMP
=NO; GMP_LIBS=])
[H
aveLibGmp
=YES; GMP_LIBS=gmp3],
[H
aveLibGmp
=NO; GMP_LIBS=])
fi
dnl--------------------------------------------------------------------
...
...
@@ -51,10 +51,10 @@ case $target_os in
save_libs="$LIBS"
LIBS="-framework GMP"
AC_TRY_LINK_FUNC(__gmpz_fdiv_qr,
[H
AVE_GMP_FRAMEWORK
=yes; GMP_FRAMEWORK=GMP; GMP_LIBS=
; HAVE_GMP=YES
],
[H
AVE_GMP_FRAMEWORK
=no])
[H
aveFrameworkGMP
=yes; GMP_FRAMEWORK=GMP; GMP_LIBS=],
[H
aveFrameworkGMP
=no])
LIBS="$save_libs"
AC_MSG_RESULT([$H
AVE_GMP_FRAMEWORK
])
AC_MSG_RESULT([$H
aveFrameworkGMP
])
;;
esac
...
...
@@ -62,19 +62,14 @@ dnl--------------------------------------------------------------------
dnl * Make sure we got some form of gmp
dnl--------------------------------------------------------------------
if test "$HAVE_GMP" = "NO"; then
AC_MSG_ERROR([cannot find the gmp library on the system.]
[If you have gmp installed in a non-standard location re-run ./configure]
[and specify the flags --with-gmp-includes= and/or --with-gmp-libraries=])
fi
AC_SUBST(GMP_INCLUDE_DIRS)
AC_SUBST(GMP_LIBS)
AC_SUBST(GMP_LIB_DIRS)
AC_SUBST(GMP_FRAMEWORK)
AC_SUBST(HaveLibGmp)
AC_SUBST(HaveFrameworkGMP)
AC_CONFIG_FILES([integer.buildinfo])
AC_CONFIG_FILES([integer.buildinfo
gmp/config.mk
])
dnl--------------------------------------------------------------------
dnl * Generate the header cbits/GmpDerivedConstants.h
...
...
This diff is collapsed.
Click to expand it.
gmp/config.mk.in
0 → 100644
+
4
−
0
View file @
b3a04fae
HaveLibGmp = @HaveLibGmp@
HaveFrameworkGMP = @HaveFrameworkGMP@
This diff is collapsed.
Click to expand it.
gmp/ghc.mk
+
5
−
0
View file @
b3a04fae
...
...
@@ -10,6 +10,9 @@
#
# -----------------------------------------------------------------------------
ifneq
"$(phase)" "0"
include
libraries/integer-gmp/gmp/config.mk
# Compile GMP only if we don't have it already
#
...
...
@@ -147,3 +150,5 @@ endif
# $(RM) -rf gmpbuild-shared
#endif
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment