X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=configure.ac;h=a8539fb1669033aebbfb090ccc37370bbe7510d2;hp=e10555ec2c4c4b74ba00566ce09e5325fa7b11ad;hb=3bd221eb8b0964df5f3159c4970610047c2b8910;hpb=661a63b6b427ace7e1501dc9101f2c8432b0ab5d diff --git a/configure.ac b/configure.ac index e10555e..a8539fb 100644 --- a/configure.ac +++ b/configure.ac @@ -453,7 +453,11 @@ then tar --lzma -xf ../../ghc-tarballs/mingw/w32api*.tar.lzma && mv bin/gcc.exe bin/realgcc.exe ) - inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/cwrapper.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe + PATH=`pwd`/inplace/mingw/bin:$PATH inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/cwrapper.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe + if ! test -e inplace/mingw/bin/gcc.exe + then + AC_MSG_ERROR([GHC is required unless bootstrapping from .hc files.]) + fi AC_MSG_NOTICE([In-tree mingw tree created]) fi if ! test -d inplace/perl ||