From: Marek Olšák Date: Thu, 21 Jul 2011 20:31:24 +0000 (+0200) Subject: configure.ac: check for libdrm_radeon only when building classic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50e32fefb1140a42101b1154d3df78db4906ee38;p=mesa.git configure.ac: check for libdrm_radeon only when building classic --- diff --git a/configure.ac b/configure.ac index f72db119fb3..86ba87b39e8 100644 --- a/configure.ac +++ b/configure.ac @@ -1073,11 +1073,6 @@ AC_SUBST([MESA_MODULES]) AC_SUBST([HAVE_XF86VIDMODE]) -PKG_CHECK_MODULES([LIBDRM_RADEON], - [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED], - HAVE_LIBDRM_RADEON=yes, - HAVE_LIBDRM_RADEON=no) - dnl dnl More GLX setup dnl @@ -1270,6 +1265,11 @@ esac case $DRI_DIRS in *radeon*|*r200*|*r300*|*r600*) + PKG_CHECK_MODULES([LIBDRM_RADEON], + [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED], + HAVE_LIBDRM_RADEON=yes, + HAVE_LIBDRM_RADEON=no) + if test "x$HAVE_LIBDRM_RADEON" = xyes; then RADEON_CFLAGS="-DHAVE_LIBDRM_RADEON=1 $LIBDRM_RADEON_CFLAGS" RADEON_LDFLAGS=$LIBDRM_RADEON_LIBS