Skip to content

Commit

Permalink
autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
cadebrown committed Jun 26, 2017
1 parent 1ec893a commit 22216a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ AS_IF([test "x${with_opencl}" != xno], [

AS_IF([test "x${with_opencl}" != xno], [
AC_MSG_CHECKING([checking for -lOpenCL])
AS_IF([ ${CC} $CFLAGS test_opencl.c $LIBS 2> /dev/null ] ,[
AS_IF([ ${CC} $CFLAGS $LDFLAGS test_opencl.c $LIBS 2> /dev/null ] ,[
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_OPENCL], [1], [Use OPENCL])
], [
AC_MSG_RESULT([no])
AC_MSG_CHECKING([checking for -framework OpenCL])
LIBS="$BEFORE_CL_LIBS -framework OpenCL"
AS_IF([ ${CC} $CFLAGS test_opencl.c $LIBS 2> /dev/null ] ,[
AS_IF([ ${CC} $CFLAGS $LDFLAGS test_opencl.c $LIBS 2> /dev/null ] ,[
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_OPENCL], [1], [Use OPENCL])
],
Expand Down

0 comments on commit 22216a6

Please sign in to comment.