From 55b8f2e06e8a62a62f8ed79fcf9bff235a3c2201 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 21 Sep 2012 16:01:40 +1000 Subject: [PATCH] Test for the now-automatically exported variable AMDAPPSDKROOT when looking for the presence of the OpenCL headers. --- configure.ac | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 68ea6ca7..8ce1643c 100644 --- a/configure.ac +++ b/configure.ac @@ -104,14 +104,18 @@ case $target in ;; esac +if test "x$have_x86_64" = xtrue; then + ARCH_DIR=x86_64 +else + ARCH_DIR=x86 +fi + if test "x$ATISTREAMSDKROOT" != x; then - if test "x$have_x86_64" = xtrue; then - ATI_STREAM_ARCH_DIR=x86_64 - else - ATI_STREAM_ARCH_DIR=x86 - fi OPENCL_FLAGS="-I$ATISTREAMSDKROOT/include $OPENCL_FLAGS" - OPENCL_LIBS="-L$ATISTREAMSDKROOT/lib/$ATI_STREAM_ARCH_DIR $OPENCL_LIBS" + OPENCL_LIBS="-L$ATISTREAMSDKROOT/lib/$ARCH_DIR $OPENCL_LIBS" +elif test "x$AMDAPPSDKROOT" != x; then + OPENCL_FLAGS="-I$AMDAPPSDKROOT/include $OPENCL_FLAGS" + OPENCL_LIBS="-L$AMDAPPSDKROOT/lib/$ARCH_DIR $OPENCL_LIBS" fi cpumining="no"