summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-10-11 14:25:46 +0000
committersimonmar <unknown>2004-10-11 14:25:46 +0000
commitbc3291f1614a559dba09d5360e48211ed334321a (patch)
treefb8f68f2d80961efd0f91c02c02c30a1c888d6d2 /aclocal.m4
parent3163b5473bbcdf31113e4d08b2a9c76aebc0c907 (diff)
downloadhaskell-bc3291f1614a559dba09d5360e48211ed334321a.tar.gz
[project @ 2004-10-11 14:25:44 by simonmar]
Detect whether $(GHC) supports the readline package.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index eac0625c1d..d660017da6 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -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.