--- /dev/null
+diff --git a/configure.ac b/configure.ac
+index be4a25f..992ef7f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -97,27 +97,27 @@ AC_HEADER_STDC
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
+ CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $drm_cflags"
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test x$DRI != xno; then
+- AC_CHECK_FILE([${sdkdir}/dri.h],
+- [have_dri_h="yes"], [have_dri_h="no"])
+- AC_CHECK_FILE([${sdkdir}/sarea.h],
+- [have_sarea_h="yes"], [have_sarea_h="no"])
+- AC_CHECK_FILE([${sdkdir}/dristruct.h],
+- [have_dristruct_h="yes"], [have_dristruct_h="no"])
+- AC_CHECK_FILE([${sdkdir}/damage.h],
+- [have_damage_h="yes"], [have_damage_h="no"])
+-fi
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test x$DRI = xauto; then
+- if test "$have_dri_h" = yes -a \
+- "$have_sarea_h" = yes -a \
+- "$have_dristruct_h" = yes; then
++#AC_MSG_CHECKING([whether to include DRI support])
++#if test x$DRI != xno; then
++# AC_CHECK_FILE([${sdkdir}/dri.h],
++# [have_dri_h="yes"], [have_dri_h="no"])
++# AC_CHECK_FILE([${sdkdir}/sarea.h],
++# [have_sarea_h="yes"], [have_sarea_h="no"])
++# AC_CHECK_FILE([${sdkdir}/dristruct.h],
++# [have_dristruct_h="yes"], [have_dristruct_h="no"])
++# AC_CHECK_FILE([${sdkdir}/damage.h],
++# [have_damage_h="yes"], [have_damage_h="no"])
++#fi
++#AC_MSG_CHECKING([whether to include DRI support])
++#if test x$DRI = xauto; then
++# if test "$have_dri_h" = yes -a \
++# "$have_sarea_h" = yes -a \
++# "$have_dristruct_h" = yes; then
+ DRI="yes"
+- else
+- DRI="no"
+- fi
+-fi
++# else
++# DRI="no"
++# fi
++#fi
+ AC_MSG_RESULT([$DRI])
+
+ AM_CONDITIONAL(BUILD_UXA, test $BUILD_UXA = yes)