> Recompiling ghc-5.00 with itself on my debian linux box, failed pretty
> early for me when generating dependencies in ghc/compiler. It seems
> that my build of hslibs/*/Readline had (silently?) failed while
> building ghc 5.0 with my old compiler and so dependency generation
> failed.
>
> Obviously, this is easy enough to fix - just install readline header
> files on my machine but I thought I'd try to find a way that made ghc
> more portable.
>
> The first thing I tried was tweaking the setting of HS_SRCS in the
> Makefile to include the ghci directory only if ghci was enabled. This
> worked but... what if I wanted to run ghci?
>
> I then found that autoconf had checked to see if readline/readline.h
> was installed - all I had to do was tweak ghci to pay attention to
> HAVE_READLINE_HEADERS and I'd be golden. This also works - diffs
> attached. (Note that this patch removes the "NO_READLINE" flag - you
> might want to keep this?)
Not quite right: your change assumes that you're bootstrapping on the
same machine that the version of GHC being used to bootstrap with was
built on. Autoconf should really check whether the GHC being used
supports Readline.
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs