Not being very savvy in building things I got stuck when trying to build xmonad. It needs X11 1.2.2, so I tried to build that. Configuration step went fine (I believe), but buiding failed:

> runhaskell Setup.hs build
Preprocessing library X11-1.2.2...
/usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
linking Graphics/X11/Types_hsc_make.o failed
command was: /usr/bin/ghc-6.6 -lX11 Graphics/X11/Types_hsc_make.o -o Graphics/X11/Types_hsc_make
Setup.hs: got error code while preprocessing: Graphics.X11.Types


I have tried the ghc command seperately with the flag -L/usr/X11R6/lib which makes it compile. But I cannot figure out how to proceed from here.

Jens