Compiling X

Firstly, i have absolutely no experience with X and it’s source base, but i would like to compile it on Haiku. Where should I start and any prerequisites i should know?

I’m very confident with the command-line and have written and compiled a few C programs on Windows and Haiku, but have next-to-no experience with X.

I believe TiltOS has done this already, at least it’s used and is a dependency for the Gimp & AbiWord packages also ported.

I know that, but i;'d like to complie it with TiltOS getting in the way.

Well I guess you could knock on Kaliber’s door for help.