diff options
author | Luc Verhaegen <libv@skynet.be> | 2008-10-15 18:24:10 +0200 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2008-10-15 18:24:10 +0200 |
commit | 398cdf959afadfa964aece13cc9d89b2dd589930 (patch) | |
tree | 03dc8867f6b92a0dbbaea74729367f44b5f60771 /glx | |
parent | 2e60ebbd254290e19492b97c960d9678513c94bf (diff) |
GLX: fix build when dri2 is not available.
Diffstat (limited to 'glx')
-rw-r--r-- | glx/Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
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) \ |