Don't build shared dricore when unneeded
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 22 Jan 2012 14:21:56 +0000 (14:21 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 23 Jan 2012 18:17:48 +0000 (18:17 +0000)
Refine "always build shared dricore" so we don't build it if we don't need
it because we aren't actually building any dri drivers because of --disable-driglx-direct

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac

index 9599568622a28f8cd1feb2480216648bc911aee4..c76af5b2401169724c5fda71374020e8f8f9d0d8 100644 (file)
@@ -1060,7 +1060,7 @@ DRI_CXXFLAGS='$(CXXFLAGS)'
 DRI_LIB_DEPS='$(TOP)/src/mesa/libmesa.a'
 MESA_MODULES='$(TOP)/src/mesa/libmesa.a'
 
-if test "x$enable_dri" = xyes ; then
+if test "x$enable_dri" = xyes && test "x$driglx_direct" = xyes ; then
     DRICORE_GLSL_LIBS='$(TOP)/$(LIB_DIR)/libglsl.so'
     DRICORE_LIBS='$(TOP)/$(LIB_DIR)/libdricore.so'
     DRICORE_LIB_DEPS='-L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -lglsl'