configure: use default dri drivers whenever opengl and dri are enabled
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 18 Feb 2014 00:57:24 +0000 (00:57 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 21 Feb 2014 22:47:51 +0000 (22:47 +0000)
commit9eae750317b52d05448ec327ec7499908a4653cf
treeafaa3a0f0f7c68cec6c5757f41e4eb21b98b8eeb
parentc2ebbe2728cd709029313f4b9c9cc53432c510a1
configure: use default dri drivers whenever opengl and dri are enabled

Commit ee55500c22a(configure: cleanup classic dri drivers handling)
cleaned up the logic handling autodetection of dri drivers, but missed
the case when one can explicitly disable dri, and still request opengl.

Fixes build issues for the following
./autogen.sh --disable-dri --with-gallium-drivers=swrast

While we're here, explicitly clear with_dri_drivers whenever building
without such drivers to prevent choking later on.

v2: Simplify with_dri_drivers handling.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75126
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac