st/xorg: fix the makefile when used with new xextproto
authorZack Rusin <zackr@vmware.com>
Thu, 22 Oct 2009 23:31:44 +0000 (19:31 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 22 Oct 2009 23:33:04 +0000 (19:33 -0400)
src/gallium/state_trackers/xorg/Makefile

index 27a1990724d4cfa220091a2afa3a56608ebfefe7..22c107370e871c80cd8e0157e13fb2f012d0a2ee 100644 (file)
@@ -5,6 +5,8 @@ LIBNAME = xorgtracker
 
 LIBRARY_INCLUDES = \
        -DHAVE_CONFIG_H \
+       $(shell pkg-config xextproto --atleast-version=7.0.99.1 \
+                               && echo "-DHAVE_XEXTPROTO_71") \
        $(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
        -I$(TOP)/src/gallium/include \
        -I$(TOP)/src/gallium/auxiliary \