summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-07-02 18:38:38 +1000
committerDave Airlie <airlied@linux.ie>2009-07-02 18:38:38 +1000
commit65465d56c1bf943113518a5b2f57b3170213bab9 (patch)
tree61c79d5e48891b0462a2959e3408b12d51fdcf24
parentad17108b72c9adf773a122b4c054c7b92e6a8b9d (diff)
radeon: fix up configure check better
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 7535625..8cf69c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,7 +120,6 @@ if test "$DRI" = yes; then
CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS"
AC_CHECK_HEADER(xf86drmMode.h,[DRM_MODE=yes],[DRM_MODE=no],[#include <stdint.h>
#include <stdlib.h>])
-# DRM_MODE = no
if test "x$DRM_MODE" = xyes; then
PKG_CHECK_MODULES(LIBDRM_RADEON, [xorg-server >= 1.6 libdrm_radeon],
[LIBDRM_RADEON=yes], [LIBDRM_RADEON=no])
@@ -254,7 +253,7 @@ CPPFLAGS="$SAVE_CPPFLAGS"
AM_CONDITIONAL(USE_EXA, test "x$USE_EXA" = xyes)
-AM_CONDITIONAL(XF86DRM_MODE, test "x$DRM_MODE" = xyes)
+AM_CONDITIONAL(XF86DRM_MODE, test "x$LIBDRM_RADEON" = xyes)
if test "x$XSERVER_LIBPCIACCESS" = xyes; then
PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0])