[PATCH 2/2] glx: Make --disable-dri not disable AIGLX
Adam Jackson
ajax at redhat.com
Tue Apr 12 12:30:26 PDT 2011
Either the DRI1 or DRI2 loaders are sufficient.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
configure.ac | 2 +-
glx/Makefile.am | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9e04ff0..74df770 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1006,7 +1006,7 @@ else
fi
AM_CONDITIONAL(GLX, test "x$GLX" = xyes)
-if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
+if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a \( "x$DRI" = xyes -o "xDRI2" = xyes \); then
AC_DEFINE(AIGLX, 1, [Build AIGLX loader])
else
AIGLX=no
diff --git a/glx/Makefile.am b/glx/Makefile.am
index 72531f2..ef8677a 100644
--- a/glx/Makefile.am
+++ b/glx/Makefile.am
@@ -48,10 +48,13 @@ glapi_sources = \
glthread.h
libglxdri_la_SOURCES = \
- glxdri.c \
extension_string.c \
extension_string.h
+if DRI
+libglxdri_la_SOURCES += glxdri.c
+endif
+
if DRI2_AIGLX
libglxdri_la_SOURCES += glxdri2.c
endif
--
1.7.4.2
More information about the xorg-devel
mailing list