summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--glx/Makefile.am5
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9e04ff015..eeaa29b02 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 "x$DRI2" = xyes \); then
AC_DEFINE(AIGLX, 1, [Build AIGLX loader])
else
AIGLX=no
diff --git a/glx/Makefile.am b/glx/Makefile.am
index 72531f248..ef8677a7c 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