Skip to content

Commit

Permalink
Fix configure.ac unconditionally enabling OpenCL
Browse files Browse the repository at this point in the history
  • Loading branch information
James R. Barlow committed Aug 26, 2015
1 parent 18ac7ae commit 73b0297
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,14 @@ case "${host_os}" in
if test $my_cv_framework_OpenCL = yes; then
have_opencl_lib=true
fi
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
OPENCL_CPPFLAGS=""
OPENCL_LDFLAGS="-framework OpenCL"
if test "$enable_opencl" = "yes"; then
if !($have_opencl_lib); then
AC_MSG_ERROR(Required OpenCL library not found!)
fi
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
OPENCL_CPPFLAGS=""
OPENCL_LDFLAGS="-framework OpenCL"
fi
;;
*)
# default
Expand Down

0 comments on commit 73b0297

Please sign in to comment.