[Gentoo] X modules: Chapter IV. Of curious and conspicuous behavior

I’m just working on the actual server module, xorg. Building with composite seems broken:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_XOPEN_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/opt/fdo//include -I/usr/include/freetype2 -I../../include -I../../include -I../../Xext -I../../render -I../../randr -I../../xfixes -I../../damageext -I../../composite -I../../mi -I../../miext/damage
-I../../miext/shadow -I../../fb -I../../Xi -O2 -march=athlon-mp -fomit-frame-pointer -fstack-protector -pipe -MT damage.lo -MD -MP -MF .deps/damage.Tpo -c damage.c -fPIC -DPIC -o .libs/damage.o
damage.c:42:19: cw.h: No such file or directory

Doesn’t include miext/cw, just miext/damage and miext/shadow.

Also I can’t figure out where gl.pc’s supposed to come from — it’s required to build Xdmx with GLX support.