Skip to content
Snippets Groups Projects
Commit 2e09c829 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

When configuring, handle $topdir/ in the ghc --info output

It might make more sense for there to be a way to get the
"ghc --info" output with $topdir already expanded, but in
the mean time this gets things working again.
parent e71ee1b6
No related branches found
No related tags found
No related merge requests found
......@@ -1891,6 +1891,12 @@ AC_DEFUN([BOOTSTRAPPING_GHC_INFO_FIELD],[
if test $GhcCanonVersion -ge 701
then
$1=`"$WithGhc" --info | grep "^ ,(\"$2\"," | sed -e 's/.*","//' -e 's/")$//'`
tmp=${$1#\$topdir/}
if test "${$1}" != "$tmp"
then
topdir=`"$WithGhc" --print-libdir | sed 's#\\\\#/#g'`
$1="$topdir/$tmp"
fi
else
$1=$3
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment