Fix memory leak in CoreWriter (Trac #7702)
Merge branch 'master' of darcs.haskell.org:/home/darcs/ghc
Comment the fix to Trac #7702
Change how the build system handles packages

This makes the build system a little simpler, and in particular
will make it easier to handle the changes needed for cross-compilation.
Remove some unused variables
Rename $(Windows) to $(Windows_Host)
Fix when terminfo is built; fixes #7700

We now use the 'host' to determine whether stage0 builds terminfo,
and 'target' to determine whether stage1 does.

We don't build it if the platform is either Windows or ios.
Fix haddocking after the build system changes
Make ghc.mk a little prettier
Remove some more unused build system variables
LATEX_DOCS is no longer used
small build system tweak
Remove some single-use build system variables
Remove unused values from Config.hs
Remove a couple more single-use variables
Remove some more unused build system variables
Follow Windows -> Windows_Host change in config.mk.in
Remove the unused REAL_SHELL variable in the build system
Remove some more unused build system code
Give hsc2hs different options in different stages; fixes #7705

Based on patch from Stephen Blackheath.