Ticket #3004: patchopencl2.diff

File patchopencl2.diff, 892 bytes (added by Carl Eugen Hoyos, 13 years ago)
  • configure

    diff --git a/configure b/configure
    index bea3172..b82381c 100755
    a b enabled openal && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lO  
    42864286enabled opencl            && { check_lib2 OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
    42874287                               check_lib2 CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
    42884288                               die "ERROR: opencl not found"; } &&
    4289                              { enabled_any w32threads os2threads &&
     4289                             { ! enabled_any w32threads os2threads ||
    42904290                               die "opencl currently needs --enable-pthreads or --disable-w32threads"; } &&
    42914291                             { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
    42924292                               check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||