Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
7363193d
Commit
7363193d
authored
Aug 28, 2004
by
panne
Browse files
[project @ 2004-08-28 16:20:35 by panne]
Beautified test for ghc-pkg
parent
50afb3c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
aclocal.m4
View file @
7363193d
...
...
@@ -954,6 +954,26 @@ fi
])# FP_PROG_FO_PROCESSOR
# FP_PROG_GHC_PKG
# ----------------
# Try to find a ghc-pkg matching the ghc mentioned in the environment variable
# WithGhc. If the latter is unset or no matching ghc-pkg can be found, try to
# find a plain ghc-pkg. Sets the output variable GhcPkgCmd.
AC_DEFUN([FP_PROG_GHC_PKG],
[AC_CACHE_CHECK([for ghc-pkg matching $WithGhc], fp_cv_matching_ghc_pkg,
[fp_ghc_pkg_guess=`echo $WithGhc | sed 's,ghc\(@<:@^/\\@:>@*\)$,ghc-pkg\1,'`
if "$fp_ghc_pkg_guess" -l > /dev/null 2>&1; then
fp_cv_matching_ghc_pkg=$fp_ghc_pkg_guess
else
fp_cv_matching_ghc_pkg=no
fi])
if test x"$fp_cv_matching_ghc_pkg" = xno; then
AC_PATH_PROG([GhcPkgCmd], [ghc-pkg])
else
GhcPkgCmd=$fp_cv_matching_ghc_pkg
fi])# FP_PROG_GHC_PKG
# FP_CHECK_WIN32
# --------------
# If Windows is the target platform (e.g. MinGW/MSYS or Cygwin with
...
...
configure.ac
View file @
7363193d
...
...
@@ -860,15 +860,7 @@ FP_DIR_DOCBOOK_XSL([/usr/share/xml/docbook/stylesheet/nwalsh/current /usr/share/
FP_PROG_FO_PROCESSOR
dnl ** check for ghc-pkg command
changequote(, )dnl
ghc_pkg_guess=`echo $WithGhc | sed 's@ghc\([^/\\]*\)$@ghc-pkg\1@'`
changequote([, ])dnl
if $ghc_pkg_guess -l >/dev/null 2>/dev/null; then
GhcPkgCmd=$ghc_pkg_guess
AC_MSG_NOTICE([using $ghc_pkg_guess for ghc-pkg])
else
AC_PATH_PROG(GhcPkgCmd,ghc-pkg)
fi
FP_PROG_GHC_PKG
AC_ARG_WITH(greencard,
[AC_HELP_STRING([--with-greencard=ARG],
...
...
Write
Preview
Supports
Markdown
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