- Build without Mesa
To build without Mesa, you must add the following configure flags:
--disable-glx --disable-dri --disable-dri2
Obviously, this will leave you without those extensions.
Fully TrueType based setup
WARNING: instructions in this section break legacy toolkits such as GTK-1.2.10 and Lesstif!
If a desktop environment based entirely on an Xft-aware toolkit (Qt or GTK2) is going to be used, none of the bitmap fonts that come with Xorg are necessary (the "encodings" package is still needed for libfontenc). You will need to add the --with-default-font-path=built-ins configure switch to xorg-server's configure switches. This allows Xorg to get the minimal necessary bitmap fonts ("fixed" and "cursor") required by the protocol from the libxfont library, and makes the special entry containing these fonts the only entry in the default font path.
After building Xorg, install as many TrueType fonts as needed into /usr/share/fonts/TTF, so that Fontconfig-based applications can find and use them.