Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
bc3291f1
Commit
bc3291f1
authored
Oct 11, 2004
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2004-10-11 14:25:44 by simonmar]
Detect whether $(GHC) supports the readline package.
parent
3163b547
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
aclocal.m4
aclocal.m4
+13
-0
configure.ac
configure.ac
+3
-0
mk/config.mk.in
mk/config.mk.in
+3
-0
No files found.
aclocal.m4
View file @
bc3291f1
...
...
@@ -694,6 +694,19 @@ ifelse($#, [1], [dnl
])dnl
AC_DEFUN(FPTOOLS_GHC_HAS_READLINE,
[AC_CACHE_CHECK([whether ghc has readline package], [fptools_ghc_has_readline],
[if "${GhcPkgCmd-ghc-pkg}" --show-package readline >/dev/null 2>&1; then
fptools_ghc_has_readline='yes';
GhcHasReadline='YES';
else
fptools_ghc_has_readline='no';
GhcHasReadline='NO';
fi
AC_SUBST(GhcHasReadline)
])
])
dnl ** Map an arithmetic C type to a Haskell type.
dnl Based on autconf's AC_CHECK_SIZEOF.
...
...
configure.ac
View file @
bc3291f1
...
...
@@ -864,6 +864,9 @@ FP_PROG_FO_PROCESSOR
dnl ** check for ghc-pkg command
FP_PROG_GHC_PKG
dnl Check whether this GHC has readline installed
FPTOOLS_GHC_HAS_READLINE
AC_ARG_WITH(greencard,
[AC_HELP_STRING([--with-greencard=ARG],
[Use ARG as the path to greencard [default=autodetct]])],
...
...
mk/config.mk.in
View file @
bc3291f1
...
...
@@ -729,6 +729,9 @@ else
GhcCanonVersion
=
$(GhcMajVersion)$(GhcMinVersion)
endif
# Set to YES if $(GHC) has the readline package installed
GhcHasReadline
=
@GhcHasReadline@
HBC
=
@HBC@
NHC
=
@NHC@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment