summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-06-02 11:02:38 +0800
committerJun Zhao <jun.zhao@intel.com>2018-06-07 19:38:58 +0800
commit3769aafb7c9a1fdcd1c9099a8ed7ba1d876c0693 (patch)
tree6bf6edbacb5c4d3cc9df1f3780c088143db40b8d /configure
parent3161df5b0c2dfa31b9c19ba13b4c943773cf57a5 (diff)
configure: fix check for opencl
add pkg-config support for opencl check. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 625cfef2ff..473be31d7f 100755
--- a/configure
+++ b/configure
@@ -6135,7 +6135,8 @@ enabled openal && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal"
die "ERROR: openal not found"; } &&
{ test_cpp_condition "AL/al.h" "defined(AL_VERSION_1_1)" ||
die "ERROR: openal must be installed and version must be 1.1 or compatible"; }
-enabled opencl && { check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
+enabled opencl && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel ||
+ check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
die "ERROR: opencl not found"; } &&
{ test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||