On Fri, Jul 29, 2005 at 08:35:06AM -0400, David Roundy wrote:
> On Fri, Jul 29, 2005 at 12:13:11AM +0100, Ian Lynagh wrote:
> >
> > The problem here is apparently that $target isn't geting set for
> >
> > case $target in
> > *msys*|*mingw*)
> > SYS=windows
> > ;;
> > esac
> >
> > in configure.ac without AC_CANONICAL_TARGET, which in turn means
> > dragging in config.{sub,guess}. Does anyone know why this has (I assume)
> > worked for other people in the past but doesn't for Vaclav now?
>
> I don't greatly mind including config.guess, but am wondering if it isn't
> an awfully big stick with which to solve this problem. Since we already
> require that ghc be available, mightn't we be able to write a little
> haskell test program that checks whether we're in windows? I imagine
> something trivial like
>
> cat > config.hs <<EOF
> #ifdef WIN32
> main = putStr "windows"
> #else
> main = fail "not windows"
> #endif
> EOF
Isn't this test used to decide whether to define WIN32?
We ought to be able to use System.Info.os for the test, though.
Apparently it's "mingw32" on Windows.
Thanks
Ian
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel