From 8083add8b3ba6297eec320b24f331398028a62dc Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 25 Jan 2013 20:50:31 -0500 Subject: [PATCH] r600g: Fix building with --enable-r600-llvm-compiler --- configure.ac | 2 ++ src/gallium/drivers/r600/Makefile.am | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9cc5c4a..c668966 100644 --- a/configure.ac +++ b/configure.ac @@ -1834,6 +1834,7 @@ if test "x$with_gallium_drivers" != x; then if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then radeon_llvm_check NEED_RADEON_GALLIUM=yes; + R600_NEED_RADEON_GALLIUM=yes; LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo" fi if test "x$enable_r600_llvm" = xyes; then @@ -1990,6 +1991,7 @@ AM_CONDITIONAL(HAVE_GALAHAD_GALLIUM, test x$HAVE_GALAHAD_GALLIUM = xyes) AM_CONDITIONAL(HAVE_IDENTITY_GALLIUM, test x$HAVE_IDENTITY_GALLIUM = xyes) AM_CONDITIONAL(HAVE_NOOP_GALLIUM, test x$HAVE_NOOP_GALLIUM = xyes) AM_CONDITIONAL(NEED_RADEON_GALLIUM, test x$NEED_RADEON_GALLIUM = xyes) +AM_CONDITIONAL(R600_NEED_RADEON_GALLIUM, test x$R600_NEED_RADEON_GALLIUM = xyes) AM_CONDITIONAL(USE_R600_LLVM_COMPILER, test x$USE_R600_LLVM_COMPILER = xyes) AM_CONDITIONAL(HAVE_LOADER_GALLIUM, test x$enable_gallium_loader = xyes) AM_CONDITIONAL(HAVE_DRM_LOADER_GALLIUM, test x$enable_gallium_drm_loader = xyes) diff --git a/src/gallium/drivers/r600/Makefile.am b/src/gallium/drivers/r600/Makefile.am index 6de7e0f..6f48b56 100644 --- a/src/gallium/drivers/r600/Makefile.am +++ b/src/gallium/drivers/r600/Makefile.am @@ -13,8 +13,7 @@ AM_CFLAGS = \ libr600_la_SOURCES = \ $(C_SOURCES) -if USE_R600_LLVM_COMPILER -if HAVE_GALLIUM_COMPUTE +if R600_NEED_RADEON_GALLIUM libr600_la_SOURCES += \ $(LLVM_C_SOURCES) \ @@ -29,7 +28,6 @@ AM_CFLAGS += \ AM_CXXFLAGS= \ $(LLVM_CXXFLAGS) endif -endif if USE_R600_LLVM_COMPILER AM_CFLAGS += \ -- 1.7.3.4