Attached is a patch to fix some problems with the xorg dri modules.
The patch does the following:
1) Add include directories to external/mit/xorg/lib/dri/libmesa/Makefile
so that the dri modules and libmesa use the same struct GLcontext.
Otherwise they are different and programs such as glxinfo may
experience
segmentation faults.
2) Make libmesa an installed shared library (module). This code is shared
by all the dri modules and results in a saving of roughly 1.8MB per
module.
3) Adds the appropriate dependencies to external/mit/xorg/lib/dri/dri.mk.
I think at least the include directories in libmesa/Makefile and
dependencies in dri.mk need to be added for the dri modules to
compile correctly.
Is this acceptable?