From 3887ba5677b1902fcf45f076d7a8e3ac96322dff Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 2 Jul 2013 17:57:36 +0100 Subject: Fix opencl path and linking issues on windows. Change-Id: Ie39a3c02d6021ae200d6e3939ec9a14ed7f34d21 --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 66733ea775fd..fdca180cd682 100644 --- a/configure.ac +++ b/configure.ac @@ -9840,8 +9840,14 @@ elif test "z$with_opencl_sdk" = "z"; then else if test -d "$with_opencl_sdk/include"; then ENABLE_OPENCL=TRUE - OPENCL_CFLAGS="-I$with_opencl_sdk/include" - OPENCL_LIBS="-L$with_opencl_sdk/lib/x86 -lOpenCL" + if test "$_os" = "WINNT"; then + PathFormat "$with_opencl_sdk" + OPENCL_CFLAGS="-I$formatted_path/include" + OPENCL_LIBS="-LIBPATH:$formatted_path/lib/x86 OpenCL.lib" + else + OPENCL_CFLAGS="-I$with_opencl_sdk/include" + OPENCL_LIBS="-L$with_opencl_sdk/lib/x86 -lOpenCL" + fi AC_MSG_RESULT([found at path $with_opencl_sdk]) AC_DEFINE(HAVE_FEATURE_OPENCL) else -- cgit