]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 21 Jan 2010 16:51:24 +0000 (16:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 21 Jan 2010 16:51:24 +0000 (16:51 +0000)
Makefile.in
configure.ac
m4/Makefile.am
m4/ax_opencl.m4 [moved from m4/ax_check_cl.m4 with 84% similarity]

index 72cd6191ac79e2b1198948b2a0a2e597d0539f9c..861404bba502c5a5929b080c1c2d5fc0c9c5aaf6 100644 (file)
@@ -278,8 +278,8 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_compile_warnings.m4 \
        $(top_srcdir)/m4/ac_func_fseeko.m4 \
        $(top_srcdir)/m4/ac_prog_perl_version.m4 \
        $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/argz.m4 \
-       $(top_srcdir)/m4/ax_check_cl.m4 \
        $(top_srcdir)/m4/ax_lang_compiler_ms.m4 \
+       $(top_srcdir)/m4/ax_opencl.m4 \
        $(top_srcdir)/m4/ax_prefix_config_h.m4 \
        $(top_srcdir)/m4/cxx_have_bool.m4 \
        $(top_srcdir)/m4/cxx_have_lstring.m4 \
@@ -2620,7 +2620,7 @@ M4_EXTRA_DIST = \
   ac_prog_perl_version.m4 \
   acx_pthread.m4 \
   argz.m4 \
-  ax_check_cl.m4 \
+  ax_opencl.m4 \
   ax_lang_compiler_ms.m4 \
   ax_prefix_config_h.m4 \
   cxx_have_bool.m4 \
index 87a95b0c1fdddd21f3bad35b909f43bc51ae0a93..ab8c7bf3f8be110992265bb7fcbfa74d236fa2c3 100755 (executable)
@@ -386,7 +386,7 @@ MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
 AC_SUBST(OPENMP_CFLAGS)
 
 # Enable support for OpenCL
-AX_CHECK_CL([C])
+AX_OPENCL([C])
 CFLAGS="$CL_CFLAGS $CFLAGS"
 LIBS="$CL_LIBS $LIBS"
 AC_SUBST(CL_CFLAGS)
index c023aa8d9841be4de206edceada80b2ac1927778..4a366787414bb109911c2b2c9a1953ac536cef5b 100644 (file)
@@ -20,7 +20,7 @@ M4_EXTRA_DIST =  \
   ac_prog_perl_version.m4 \
   acx_pthread.m4 \
   argz.m4 \
-  ax_check_cl.m4 \
+  ax_opencl.m4 \
   ax_lang_compiler_ms.m4 \
   ax_prefix_config_h.m4 \
   cxx_have_bool.m4 \
similarity index 84%
rename from m4/ax_check_cl.m4
rename to m4/ax_opencl.m4
index a1f2cbb88843232b92c7545d663a41b4aeb0d4b0..2100942bb3a36c8bb971b3355ff02f12aef725a9 100644 (file)
@@ -1,15 +1,15 @@
 # -*- mode: autoconf -*-
 #
-# AX_CHECK_CL
+# AX_OPENCL
 #
-# Check for an OpenCL implementation.  If CL is found, the required compiler
-# and linker flags are included in the output variables "CL_CFLAGS" and
-# "CL_LIBS", respectively.  If no usable CL implementation is found, "no_cl"
-# is set to "yes".
+# Check for an OpenCL implementation.  If CL is found, _OPENCL is defined and
+# the required compiler and linker flags are included in the output variables
+# "CL_CFLAGS" and "CL_LIBS", respectively.  If no usable CL implementation is
+# found, "no_cl" is set to "yes".
 #
-# If the header "CL/OpenCL.h" is found, "HAVE_CL_OPENCL_H" is defined.  If the header
-# "OpenCL/OpenCL.h" is found, HAVE_OPENCL_OPENCL_H is defined.  These preprocessor
-# definitions may not be mutually exclusive.
+# If the header "CL/OpenCL.h" is found, "HAVE_CL_OPENCL_H" is defined.  If the
+# header "OpenCL/OpenCL.h" is found, HAVE_OPENCL_OPENCL_H is defined.  These
+# preprocessor definitions may not be mutually exclusive.
 #
 # Based on AX_CHECK_GL, version: 2.4 author: Braden McDaniel
 # <braden@endoframe.com>
@@ -34,7 +34,7 @@
 # the Macro.  You need not follow the terms of the GNU General Public
 # License when using or distributing such scripts.
 #
-AC_DEFUN([AX_CHECK_CL],
+AC_DEFUN([AX_OPENCL],
 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 AC_REQUIRE([AC_PROG_SED])dnl
 AC_REQUIRE([ACX_PTHREAD])dnl
@@ -58,7 +58,7 @@ if test "$disable_opencl" = 'yes'; then
   
   AC_CHECK_HEADERS([windows.h])
   
-  m4_define([AX_CHECK_CL_PROGRAM],
+  m4_define([AX_OPENCL_PROGRAM],
             [AC_LANG_PROGRAM([[
   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
   #   include <windows.h>
@@ -88,19 +88,19 @@ if test "$disable_opencl" = 'yes'; then
           [ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`],
           [ax_try_lib=$ax_lib])
     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
-  AC_LINK_IFELSE([AX_CHECK_CL_PROGRAM],
+  AC_LINK_IFELSE([AX_OPENCL_PROGRAM],
                  [ax_cv_check_cl_libcl=$ax_try_lib; break],
                  [ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
-                 AC_LINK_IFELSE([AX_CHECK_CL_PROGRAM],
+                 AC_LINK_IFELSE([AX_OPENCL_PROGRAM],
                                 [ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break],
                                 [ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
-                                AC_LINK_IFELSE([AX_CHECK_CL_PROGRAM],
+                                AC_LINK_IFELSE([AX_OPENCL_PROGRAM],
                                                [ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break])])])
   done
   
   AS_IF([test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes],
         [LIBS='-framework OpenCL'
-        AC_LINK_IFELSE([AX_CHECK_CL_PROGRAM],
+        AC_LINK_IFELSE([AX_OPENCL_PROGRAM],
                        [ax_cv_check_cl_libcl=$LIBS])])
   
   LIBS=$ax_save_LIBS