Allow osmesa to be enabled or disabled
authorDan Nicholson <dbn.lists@gmail.com>
Sun, 30 Dec 2007 16:41:53 +0000 (08:41 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Fri, 11 Jan 2008 16:25:15 +0000 (08:25 -0800)
commit544ab209e75ec3646d7edbafd736dcf4c93738cc
treec8642fb334f36e5bd9b552b09e3236bba1b835a3
parent540faf5f91057ef311999afc5a6366bebe7dec33
Allow osmesa to be enabled or disabled

The conditional in src/mesa/Makefile currently hardcodes the cases where
libOSMesa can be built on libGL. Likewise, the xlib case always includes
libOSMesa in the stand-alone target.

This changes the conditional to a loop over the DRIVER_DIRS variable.
This means that any driver configuration can enable or disable osmesa.
The current "stand-alone" rule is changed so that DRIVER_DIRS=x11 and
DRIVER_DIRS="x11 osmesa" are both respected.

The configure option is changed to --enable-gl-osmesa as this change
allows libOSMesa to be built upon any of the libGL-enabling drivers.
configure.ac
docs/autoconf.html
src/mesa/Makefile