We want to have the dri common files compiled to define USE_DRICONF.
We need to check both NEED_OPENGL_COMMON and HAVE_DRICOMMON
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Tested-by: Brian Paul <brianp@vmware.com>
libloader_la_LIBADD =
if NEED_OPENGL_COMMON
+if HAVE_DRICOMMON
libloader_la_CPPFLAGS += \
-I$(top_srcdir)/src/mesa/drivers/dri/common/ \
-I$(top_builddir)/src/mesa/drivers/dri/common/ \
-lm \
$(EXPAT_LIBS)
endif
+endif
if !HAVE_LIBDRM
libloader_la_CPPFLAGS += \