From 398cdf959afadfa964aece13cc9d89b2dd589930 Mon Sep 17 00:00:00 2001 From: Luc Verhaegen Date: Wed, 15 Oct 2008 18:24:10 +0200 Subject: GLX: fix build when dri2 is not available. --- glx/Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'glx/Makefile.am') diff --git a/glx/Makefile.am b/glx/Makefile.am index 4f723ac87..f9a317853 100644 --- a/glx/Makefile.am +++ b/glx/Makefile.am @@ -22,9 +22,12 @@ INCLUDES = \ -I$(top_srcdir)/hw/xfree86/os-support/bus \ -I$(top_srcdir)/hw/xfree86/common \ -I$(top_srcdir)/hw/xfree86/dri \ - -I$(top_srcdir)/hw/xfree86/dri2 \ -I$(top_srcdir)/mi +if DRI2 +INCLUDES += -I$(top_srcdir)/hw/xfree86/dri2 +endif + glapi_sources = \ indirect_dispatch.c \ indirect_dispatch.h \ @@ -47,10 +50,13 @@ glapi_sources = \ libglxdri_la_SOURCES = \ glxdri.c \ - glxdri2.c \ extension_string.c \ extension_string.h +if DRI2 +libglxdri_la_SOURCES = glxdri2.c +endif + libglx_la_SOURCES = \ $(indirect_sources) \ $(glapi_sources) \ -- cgit v1.2.3