Check HAVE_RADEON only after checking for atomic operations.
authorPauli Nieminen <suokkos@gmail.com>
Wed, 17 Mar 2010 20:41:08 +0000 (22:41 +0200)
committerPauli Nieminen <suokkos@gmail.com>
Wed, 17 Mar 2010 20:43:26 +0000 (22:43 +0200)
Fixes problem that libdrm_radeon was disabled in Makefile even when configure
claimed that radeon was enabled.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
configure.ac

index 0f15f7e..6ef3c61 100644 (file)
@@ -158,8 +158,6 @@ if test "x$NOUVEAU" = xyes; then
        AC_DEFINE(HAVE_NOUVEAU, 1, [Have nouveau (nvidia) support])
 fi
 
-AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" = xyes])
-
 PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no])
 if test "x$HAVE_CAIRO" = xyes; then
        AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support])
@@ -234,6 +232,7 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno"; then
 fi
 
 AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" != "xno"])
+AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" != "xno"])
 
 AC_ARG_WITH([kernel-source],
             [AS_HELP_STRING([--with-kernel-source],