Changeset 372 for ImageMagick/trunk

Show
Ignore:
Timestamp:
10/13/09 20:16:55 (5 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/config/config.h.in

    r368 r372  
    123123#undef HAVE_CLOSEDIR 
    124124 
    125 /* Define to 1 if you have the <CL/OpenCL.h> header file. */ 
     125/* Define to 1 if you have the <CL/opencl.h> header file. */ 
    126126#undef HAVE_CL_OPENCL_H 
    127127 
  • ImageMagick/trunk/configure

    r368 r372  
    985985X_PRE_LIBS 
    986986X_CFLAGS 
     987XMKMF 
    987988BZLIB_LIBS 
    988989BZLIB_DELEGATE_FALSE 
     
    10621063CL_LIBS 
    10631064CL_CFLAGS 
    1064 XMKMF 
    10651065OPENMP_CFLAGS 
    10661066PTHREAD_CFLAGS 
     
    12291229with_threads 
    12301230enable_openmp 
    1231 with_x 
    12321231enable_largefile 
    12331232enable_shared 
     
    12651264with_libstdc 
    12661265with_bzlib 
     1266with_x 
    12671267with_zlib 
    12681268with_autotrace 
     
    13031303CCC 
    13041304PKG_CONFIG 
     1305CXXCPP 
    13051306XMKMF 
    1306 CXXCPP 
    13071307AUTOTRACE_CFLAGS 
    13081308AUTOTRACE_LIBS 
     
    19981998                          http://www.dmalloc.com/dmalloc.tar.gz 
    19991999  --without-threads       disable threads support 
    2000   --with-x                use the X Window System 
    20012000  --with-pic              try to use only PIC/non-PIC objects [default=use 
    20022001                          both] 
     
    20212020  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++) 
    20222021  --without-bzlib         disable BZLIB support 
     2022  --with-x                use the X Window System 
    20232023  --without-zlib          disable ZLIB support 
    20242024  --with-autotrace        enable autotrace support 
     
    20592059  CXXFLAGS    C++ compiler flags 
    20602060  PKG_CONFIG  path to pkg-config utility 
     2061  CXXCPP      C++ preprocessor 
    20612062  XMKMF       Path to xmkmf, Makefile generator for X Window System 
    2062   CXXCPP      C++ preprocessor 
    20632063  AUTOTRACE_CFLAGS 
    20642064              C compiler flags for AUTOTRACE, overriding pkg-config 
     
    77517751 
    77527752# Enable support for OpenCL 
    7753 { $as_echo "$as_me:$LINENO: checking for X" >&5 
    7754 $as_echo_n "checking for X... " >&6; } 
    7755  
    7756  
    7757 # Check whether --with-x was given. 
    7758 if test "${with_x+set}" = set; then 
    7759   withval=$with_x; 
    7760 fi 
    7761  
    7762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 
    7763 if test "x$with_x" = xno; then 
    7764   # The user explicitly disabled X. 
    7765   have_x=disabled 
    7766 else 
    7767   case $x_includes,$x_libraries in #( 
    7768     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 
    7769 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 
    7770    { (exit 1); exit 1; }; };; #( 
    7771     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 
    7772   $as_echo_n "(cached) " >&6 
    7773 else 
    7774   # One or both of the vars are not set, and there is no cached value. 
    7775 ac_x_includes=no ac_x_libraries=no 
    7776 rm -f -r conftest.dir 
    7777 if mkdir conftest.dir; then 
    7778   cd conftest.dir 
    7779   cat >Imakefile <<'_ACEOF' 
    7780 incroot: 
    7781         @echo incroot='${INCROOT}' 
    7782 usrlibdir: 
    7783         @echo usrlibdir='${USRLIBDIR}' 
    7784 libdir: 
    7785         @echo libdir='${LIBDIR}' 
    7786 _ACEOF 
    7787   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 
    7788     # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 
    7789     for ac_var in incroot usrlibdir libdir; do 
    7790       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 
    7791     done 
    7792     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 
    7793     for ac_extension in a so sl dylib la dll; do 
    7794       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 
    7795          test -f "$ac_im_libdir/libX11.$ac_extension"; then 
    7796         ac_im_usrlibdir=$ac_im_libdir; break 
    7797       fi 
    7798     done 
    7799     # Screen out bogus values from the imake configuration.  They are 
    7800     # bogus both because they are the default anyway, and because 
    7801     # using them would break gcc on systems where it needs fixed includes. 
    7802     case $ac_im_incroot in 
    7803         /usr/include) ac_x_includes= ;; 
    7804         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 
    7805     esac 
    7806     case $ac_im_usrlibdir in 
    7807         /usr/lib | /usr/lib64 | /lib | /lib64) ;; 
    7808         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 
    7809     esac 
    7810   fi 
    7811   cd .. 
    7812   rm -f -r conftest.dir 
    7813 fi 
    7814  
    7815 # Standard set of common directories for X headers. 
    7816 # Check X11 before X11Rn because it is often a symlink to the current release. 
    7817 ac_x_header_dirs=' 
    7818 /usr/X11/include 
    7819 /usr/X11R6/include 
    7820 /usr/X11R5/include 
    7821 /usr/X11R4/include 
    7822  
    7823 /usr/include/X11 
    7824 /usr/include/X11R6 
    7825 /usr/include/X11R5 
    7826 /usr/include/X11R4 
    7827  
    7828 /usr/local/X11/include 
    7829 /usr/local/X11R6/include 
    7830 /usr/local/X11R5/include 
    7831 /usr/local/X11R4/include 
    7832  
    7833 /usr/local/include/X11 
    7834 /usr/local/include/X11R6 
    7835 /usr/local/include/X11R5 
    7836 /usr/local/include/X11R4 
    7837  
    7838 /usr/X386/include 
    7839 /usr/x386/include 
    7840 /usr/XFree86/include/X11 
    7841  
    7842 /usr/include 
    7843 /usr/local/include 
    7844 /usr/unsupported/include 
    7845 /usr/athena/include 
    7846 /usr/local/x11r5/include 
    7847 /usr/lpp/Xamples/include 
    7848  
    7849 /usr/openwin/include 
    7850 /usr/openwin/share/include' 
    7851  
    7852 if test "$ac_x_includes" = no; then 
    7853   # Guess where to find include files, by looking for Xlib.h. 
    7854   # First, try using that file with no special directory specified. 
    7855   cat >conftest.$ac_ext <<_ACEOF 
    7856 /* confdefs.h.  */ 
    7857 _ACEOF 
    7858 cat confdefs.h >>conftest.$ac_ext 
    7859 cat >>conftest.$ac_ext <<_ACEOF 
    7860 /* end confdefs.h.  */ 
    7861 #include <X11/Xlib.h> 
    7862 _ACEOF 
    7863 if { (ac_try="$ac_cpp conftest.$ac_ext" 
    7864 case "(($ac_try" in 
    7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    7866   *) ac_try_echo=$ac_try;; 
    7867 esac 
    7868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 
    7869 $as_echo "$ac_try_echo") >&5 
    7870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 
    7871   ac_status=$? 
    7872   grep -v '^ *+' conftest.er1 >conftest.err 
    7873   rm -f conftest.er1 
    7874   cat conftest.err >&5 
    7875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    7876   (exit $ac_status); } >/dev/null && { 
    7877          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 
    7878          test ! -s conftest.err 
    7879        }; then 
    7880   # We can compile using X headers with no special include directory. 
    7881 ac_x_includes= 
    7882 else 
    7883   $as_echo "$as_me: failed program was:" >&5 
    7884 sed 's/^/| /' conftest.$ac_ext >&5 
    7885  
    7886   for ac_dir in $ac_x_header_dirs; do 
    7887   if test -r "$ac_dir/X11/Xlib.h"; then 
    7888     ac_x_includes=$ac_dir 
    7889     break 
    7890   fi 
    7891 done 
    7892 fi 
    7893  
    7894 rm -f conftest.err conftest.$ac_ext 
    7895 fi # $ac_x_includes = no 
    7896  
    7897 if test "$ac_x_libraries" = no; then 
    7898   # Check for the libraries. 
    7899   # See if we find them without any special options. 
    7900   # Don't add to $LIBS permanently. 
    7901   ac_save_LIBS=$LIBS 
    7902   LIBS="-lX11 $LIBS" 
    7903   cat >conftest.$ac_ext <<_ACEOF 
    7904 /* confdefs.h.  */ 
    7905 _ACEOF 
    7906 cat confdefs.h >>conftest.$ac_ext 
    7907 cat >>conftest.$ac_ext <<_ACEOF 
    7908 /* end confdefs.h.  */ 
    7909 #include <X11/Xlib.h> 
    7910 int 
    7911 main () 
    7912 { 
    7913 XrmInitialize () 
    7914   ; 
    7915   return 0; 
    7916 } 
    7917 _ACEOF 
    7918 rm -f conftest.$ac_objext conftest$ac_exeext 
    7919 if { (ac_try="$ac_link" 
    7920 case "(($ac_try" in 
    7921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
    7922   *) ac_try_echo=$ac_try;; 
    7923 esac 
    7924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 
    7925 $as_echo "$ac_try_echo") >&5 
    7926   (eval "$ac_link") 2>conftest.er1 
    7927   ac_status=$? 
    7928   grep -v '^ *+' conftest.er1 >conftest.err 
    7929   rm -f conftest.er1 
    7930   cat conftest.err >&5 
    7931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    7932   (exit $ac_status); } && { 
    7933          test -z "$ac_c_werror_flag" || 
    7934          test ! -s conftest.err 
    7935        } && test -s conftest$ac_exeext && { 
    7936          test "$cross_compiling" = yes || 
    7937          $as_test_x conftest$ac_exeext 
    7938        }; then 
    7939   LIBS=$ac_save_LIBS 
    7940 # We can link X programs with no special library path. 
    7941 ac_x_libraries= 
    7942 else 
    7943   $as_echo "$as_me: failed program was:" >&5 
    7944 sed 's/^/| /' conftest.$ac_ext >&5 
    7945  
    7946         LIBS=$ac_save_LIBS 
    7947 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 
    7948 do 
    7949   # Don't even attempt the hair of trying to link an X program! 
    7950   for ac_extension in a so sl dylib la dll; do 
    7951     if test -r "$ac_dir/libX11.$ac_extension"; then 
    7952       ac_x_libraries=$ac_dir 
    7953       break 2 
    7954     fi 
    7955   done 
    7956 done 
    7957 fi 
    7958  
    7959 rm -rf conftest.dSYM 
    7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    7961       conftest$ac_exeext conftest.$ac_ext 
    7962 fi # $ac_x_libraries = no 
    7963  
    7964 case $ac_x_includes,$ac_x_libraries in #( 
    7965   no,* | *,no | *\'*) 
    7966     # Didn't find X, or a directory has "'" in its name. 
    7967     ac_cv_have_x="have_x=no";; #( 
    7968   *) 
    7969     # Record where we found X for the cache. 
    7970     ac_cv_have_x="have_x=yes\ 
    7971         ac_x_includes='$ac_x_includes'\ 
    7972         ac_x_libraries='$ac_x_libraries'" 
    7973 esac 
    7974 fi 
    7975 ;; #( 
    7976     *) have_x=yes;; 
    7977   esac 
    7978   eval "$ac_cv_have_x" 
    7979 fi # $with_x != no 
    7980  
    7981 if test "$have_x" != yes; then 
    7982   { $as_echo "$as_me:$LINENO: result: $have_x" >&5 
    7983 $as_echo "$have_x" >&6; } 
    7984   no_x=yes 
    7985 else 
    7986   # If each of the values was on the command line, it overrides each guess. 
    7987   test "x$x_includes" = xNONE && x_includes=$ac_x_includes 
    7988   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 
    7989   # Update the cache value to reflect the command line values. 
    7990   ac_cv_have_x="have_x=yes\ 
    7991         ac_x_includes='$x_includes'\ 
    7992         ac_x_libraries='$x_libraries'" 
    7993   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 
    7994 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 
    7995 fi 
    7996  
    79977753 
    79987754ac_ext=c 
     
    80627818 
    80637819 
    8064 # 
    8065 # Use x_includes and x_libraries if they have been set (presumably by 
    8066 # AC_PATH_X). 
    8067 # 
    8068 if test X$no_x != Xyes; then 
    8069   if test -n "$x_includes"; then 
    8070   CL_CFLAGS="-I$x_includes $CL_CFLAGS" 
    8071 fi 
    8072  
    8073        if test -n "$x_libraries"; then 
    8074   CL_LIBS="-L$x_libraries -lX11 $CL_LIBS" 
    8075 fi 
    8076  
    8077 fi 
    8078  
    8079  
    80807820ax_save_CPPFLAGS=$CPPFLAGS 
    80817821CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 
    80827822 
    80837823 
    8084 for ac_header in CL/OpenCL.h OpenCL/OpenCL.h 
     7824for ac_header in CL/opencl.h OpenCL/OpenCL.h 
    80857825do 
    80867826as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     
    84228162# endif 
    84238163# ifdef HAVE_CL_OPENCL_H 
    8424 #   include <CL/cl.h> 
     8164#   include <CL/opencl.h> 
    84258165# elif defined(HAVE_OPENCL_OPENCL_H) 
    84268166#   include <OpenCL/OpenCL.h> 
     
    84318171main () 
    84328172{ 
    8433 clCreateContext(0) 
     8173clCreateContextFromType(0,0,0,0,0) 
    84348174  ; 
    84358175  return 0; 
     
    84748214# endif 
    84758215# ifdef HAVE_CL_OPENCL_H 
    8476 #   include <CL/cl.h> 
     8216#   include <CL/opencl.h> 
    84778217# elif defined(HAVE_OPENCL_OPENCL_H) 
    84788218#   include <OpenCL/OpenCL.h> 
     
    84838223main () 
    84848224{ 
    8485 clCreateContext(0) 
     8225clCreateContextFromType(0,0,0,0,0) 
    84868226  ; 
    84878227  return 0; 
     
    85268266# endif 
    85278267# ifdef HAVE_CL_OPENCL_H 
    8528 #   include <CL/cl.h> 
     8268#   include <CL/opencl.h> 
    85298269# elif defined(HAVE_OPENCL_OPENCL_H) 
    85308270#   include <OpenCL/OpenCL.h> 
     
    85358275main () 
    85368276{ 
    8537 clCreateContext(0) 
     8277clCreateContextFromType(0,0,0,0,0) 
    85388278  ; 
    85398279  return 0; 
     
    85978337# endif 
    85988338# ifdef HAVE_CL_OPENCL_H 
    8599 #   include <CL/cl.h> 
     8339#   include <CL/opencl.h> 
    86008340# elif defined(HAVE_OPENCL_OPENCL_H) 
    86018341#   include <OpenCL/OpenCL.h> 
     
    86068346main () 
    86078347{ 
    8608 clCreateContext(0) 
     8348clCreateContextFromType(0,0,0,0,0) 
    86098349  ; 
    86108350  return 0; 
     
    86688408 
    86698409 
     8410CFLAGS="$CL_CFLAGS $CFLAGS" 
     8411LIBS="$CL_LIBS $LIBS" 
    86708412 
    86718413######## 
     
    94439185  lt_cv_nm_interface="BSD nm" 
    94449186  echo "int some_variable = 0;" > conftest.$ac_ext 
    9445   (eval echo "\"\$as_me:9445: $ac_compile\"" >&5) 
     9187  (eval echo "\"\$as_me:9187: $ac_compile\"" >&5) 
    94469188  (eval "$ac_compile" 2>conftest.err) 
    94479189  cat conftest.err >&5 
    9448   (eval echo "\"\$as_me:9448: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 
     9190  (eval echo "\"\$as_me:9190: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 
    94499191  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 
    94509192  cat conftest.err >&5 
    9451   (eval echo "\"\$as_me:9451: output\"" >&5) 
     9193  (eval echo "\"\$as_me:9193: output\"" >&5) 
    94529194  cat conftest.out >&5 
    94539195  if $GREP 'External.*some_variable' conftest.out > /dev/null; then 
     
    1064010382*-*-irix6*) 
    1064110383  # Find out which ABI we are using. 
    10642   echo '#line 10642 "configure"' > conftest.$ac_ext 
     10384  echo '#line 10384 "configure"' > conftest.$ac_ext 
    1064310385  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
    1064410386  (eval $ac_compile) 2>&5 
     
    1304312785   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1304412786   -e 's:$: $lt_compiler_flag:'` 
    13045    (eval echo "\"\$as_me:13045: $lt_compile\"" >&5) 
     12787   (eval echo "\"\$as_me:12787: $lt_compile\"" >&5) 
    1304612788   (eval "$lt_compile" 2>conftest.err) 
    1304712789   ac_status=$? 
    1304812790   cat conftest.err >&5 
    13049    echo "$as_me:13049: \$? = $ac_status" >&5 
     12791   echo "$as_me:12791: \$? = $ac_status" >&5 
    1305012792   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1305112793     # The compiler can only warn and ignore the option if not recognized 
     
    1338213124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1338313125   -e 's:$: $lt_compiler_flag:'` 
    13384    (eval echo "\"\$as_me:13384: $lt_compile\"" >&5) 
     13126   (eval echo "\"\$as_me:13126: $lt_compile\"" >&5) 
    1338513127   (eval "$lt_compile" 2>conftest.err) 
    1338613128   ac_status=$? 
    1338713129   cat conftest.err >&5 
    13388    echo "$as_me:13388: \$? = $ac_status" >&5 
     13130   echo "$as_me:13130: \$? = $ac_status" >&5 
    1338913131   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1339013132     # The compiler can only warn and ignore the option if not recognized 
     
    1348713229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1348813230   -e 's:$: $lt_compiler_flag:'` 
    13489    (eval echo "\"\$as_me:13489: $lt_compile\"" >&5) 
     13231   (eval echo "\"\$as_me:13231: $lt_compile\"" >&5) 
    1349013232   (eval "$lt_compile" 2>out/conftest.err) 
    1349113233   ac_status=$? 
    1349213234   cat out/conftest.err >&5 
    13493    echo "$as_me:13493: \$? = $ac_status" >&5 
     13235   echo "$as_me:13235: \$? = $ac_status" >&5 
    1349413236   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1349513237   then 
     
    1354213284   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1354313285   -e 's:$: $lt_compiler_flag:'` 
    13544    (eval echo "\"\$as_me:13544: $lt_compile\"" >&5) 
     13286   (eval echo "\"\$as_me:13286: $lt_compile\"" >&5) 
    1354513287   (eval "$lt_compile" 2>out/conftest.err) 
    1354613288   ac_status=$? 
    1354713289   cat out/conftest.err >&5 
    13548    echo "$as_me:13548: \$? = $ac_status" >&5 
     13290   echo "$as_me:13290: \$? = $ac_status" >&5 
    1354913291   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1355013292   then 
     
    1634516087  lt_status=$lt_dlunknown 
    1634616088  cat > conftest.$ac_ext <<_LT_EOF 
    16347 #line 16347 "configure" 
     16089#line 16089 "configure" 
    1634816090#include "confdefs.h" 
    1634916091 
     
    1644116183  lt_status=$lt_dlunknown 
    1644216184  cat > conftest.$ac_ext <<_LT_EOF 
    16443 #line 16443 "configure" 
     16185#line 16185 "configure" 
    1644416186#include "confdefs.h" 
    1644516187 
     
    1846118203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1846218204   -e 's:$: $lt_compiler_flag:'` 
    18463    (eval echo "\"\$as_me:18463: $lt_compile\"" >&5) 
     18205   (eval echo "\"\$as_me:18205: $lt_compile\"" >&5) 
    1846418206   (eval "$lt_compile" 2>conftest.err) 
    1846518207   ac_status=$? 
    1846618208   cat conftest.err >&5 
    18467    echo "$as_me:18467: \$? = $ac_status" >&5 
     18209   echo "$as_me:18209: \$? = $ac_status" >&5 
    1846818210   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1846918211     # The compiler can only warn and ignore the option if not recognized 
     
    1856018302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1856118303   -e 's:$: $lt_compiler_flag:'` 
    18562    (eval echo "\"\$as_me:18562: $lt_compile\"" >&5) 
     18304   (eval echo "\"\$as_me:18304: $lt_compile\"" >&5) 
    1856318305   (eval "$lt_compile" 2>out/conftest.err) 
    1856418306   ac_status=$? 
    1856518307   cat out/conftest.err >&5 
    18566    echo "$as_me:18566: \$? = $ac_status" >&5 
     18308   echo "$as_me:18308: \$? = $ac_status" >&5 
    1856718309   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1856818310   then 
     
    1861218354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1861318355   -e 's:$: $lt_compiler_flag:'` 
    18614    (eval echo "\"\$as_me:18614: $lt_compile\"" >&5) 
     18356   (eval echo "\"\$as_me:18356: $lt_compile\"" >&5) 
    1861518357   (eval "$lt_compile" 2>out/conftest.err) 
    1861618358   ac_status=$? 
    1861718359   cat out/conftest.err >&5 
    18618    echo "$as_me:18618: \$? = $ac_status" >&5 
     18360   echo "$as_me:18360: \$? = $ac_status" >&5 
    1861918361   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1862018362   then 
     
    2053520277  lt_status=$lt_dlunknown 
    2053620278  cat > conftest.$ac_ext <<_LT_EOF 
    20537 #line 20537 "configure" 
     20279#line 20279 "configure" 
    2053820280#include "confdefs.h" 
    2053920281 
     
    3453834280XEXT_LIBS='' 
    3453934281XT_LIBS='' 
     34282{ $as_echo "$as_me:$LINENO: checking for X" >&5 
     34283$as_echo_n "checking for X... " >&6; } 
     34284 
     34285 
     34286# Check whether --with-x was given. 
     34287if test "${with_x+set}" = set; then 
     34288  withval=$with_x; 
     34289fi 
     34290 
     34291# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 
     34292if test "x$with_x" = xno; then 
     34293  # The user explicitly disabled X. 
     34294  have_x=disabled 
     34295else 
     34296  case $x_includes,$x_libraries in #( 
     34297    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 
     34298$as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 
     34299   { (exit 1); exit 1; }; };; #( 
     34300    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 
     34301  $as_echo_n "(cached) " >&6 
     34302else 
     34303  # One or both of the vars are not set, and there is no cached value. 
     34304ac_x_includes=no ac_x_libraries=no 
     34305rm -f -r conftest.dir 
     34306if mkdir conftest.dir; then 
     34307  cd conftest.dir 
     34308  cat >Imakefile <<'_ACEOF' 
     34309incroot: 
     34310        @echo incroot='${INCROOT}' 
     34311usrlibdir: 
     34312        @echo usrlibdir='${USRLIBDIR}' 
     34313libdir: 
     34314        @echo libdir='${LIBDIR}' 
     34315_ACEOF 
     34316  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 
     34317    # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 
     34318    for ac_var in incroot usrlibdir libdir; do 
     34319      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 
     34320    done 
     34321    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 
     34322    for ac_extension in a so sl dylib la dll; do 
     34323      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 
     34324         test -f "$ac_im_libdir/libX11.$ac_extension"; then 
     34325        ac_im_usrlibdir=$ac_im_libdir; break 
     34326      fi 
     34327    done 
     34328    # Screen out bogus values from the imake configuration.  They are 
     34329    # bogus both because they are the default anyway, and because 
     34330    # using them would break gcc on systems where it needs fixed includes. 
     34331    case $ac_im_incroot in 
     34332        /usr/include) ac_x_includes= ;; 
     34333        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 
     34334    esac 
     34335    case $ac_im_usrlibdir in 
     34336        /usr/lib | /usr/lib64 | /lib | /lib64) ;; 
     34337        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 
     34338    esac 
     34339  fi 
     34340  cd .. 
     34341  rm -f -r conftest.dir 
     34342fi 
     34343 
     34344# Standard set of common directories for X headers. 
     34345# Check X11 before X11Rn because it is often a symlink to the current release. 
     34346ac_x_header_dirs=' 
     34347/usr/X11/include 
     34348/usr/X11R6/include 
     34349/usr/X11R5/include 
     34350/usr/X11R4/include 
     34351 
     34352/usr/include/X11 
     34353/usr/include/X11R6 
     34354/usr/include/X11R5 
     34355/usr/include/X11R4 
     34356 
     34357/usr/local/X11/include 
     34358/usr/local/X11R6/include 
     34359/usr/local/X11R5/include 
     34360/usr/local/X11R4/include 
     34361 
     34362/usr/local/include/X11 
     34363/usr/local/include/X11R6 
     34364/usr/local/include/X11R5 
     34365/usr/local/include/X11R4 
     34366 
     34367/usr/X386/include 
     34368/usr/x386/include 
     34369/usr/XFree86/include/X11 
     34370 
     34371/usr/include 
     34372/usr/local/include 
     34373/usr/unsupported/include 
     34374/usr/athena/include 
     34375/usr/local/x11r5/include 
     34376/usr/lpp/Xamples/include 
     34377 
     34378/usr/openwin/include 
     34379/usr/openwin/share/include' 
     34380 
     34381if test "$ac_x_includes" = no; then 
     34382  # Guess where to find include files, by looking for Xlib.h. 
     34383  # First, try using that file with no special directory specified. 
     34384  cat >conftest.$ac_ext <<_ACEOF 
     34385/* confdefs.h.  */ 
     34386_ACEOF 
     34387cat confdefs.h >>conftest.$ac_ext 
     34388cat >>conftest.$ac_ext <<_ACEOF 
     34389/* end confdefs.h.  */ 
     34390#include <X11/Xlib.h> 
     34391_ACEOF 
     34392if { (ac_try="$ac_cpp conftest.$ac_ext" 
     34393case "(($ac_try" in 
     34394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     34395  *) ac_try_echo=$ac_try;; 
     34396esac 
     34397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 
     34398$as_echo "$ac_try_echo") >&5 
     34399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 
     34400  ac_status=$? 
     34401  grep -v '^ *+' conftest.er1 >conftest.err 
     34402  rm -f conftest.er1 
     34403  cat conftest.err >&5 
     34404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     34405  (exit $ac_status); } >/dev/null && { 
     34406         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 
     34407         test ! -s conftest.err 
     34408       }; then 
     34409  # We can compile using X headers with no special include directory. 
     34410ac_x_includes= 
     34411else 
     34412  $as_echo "$as_me: failed program was:" >&5 
     34413sed 's/^/| /' conftest.$ac_ext >&5 
     34414 
     34415  for ac_dir in $ac_x_header_dirs; do 
     34416  if test -r "$ac_dir/X11/Xlib.h"; then 
     34417    ac_x_includes=$ac_dir 
     34418    break 
     34419  fi 
     34420done 
     34421fi 
     34422 
     34423rm -f conftest.err conftest.$ac_ext 
     34424fi # $ac_x_includes = no 
     34425 
     34426if test "$ac_x_libraries" = no; then 
     34427  # Check for the libraries. 
     34428  # See if we find them without any special options. 
     34429  # Don't add to $LIBS permanently. 
     34430  ac_save_LIBS=$LIBS 
     34431  LIBS="-lX11 $LIBS" 
     34432  cat >conftest.$ac_ext <<_ACEOF 
     34433/* confdefs.h.  */ 
     34434_ACEOF 
     34435cat confdefs.h >>conftest.$ac_ext 
     34436cat >>conftest.$ac_ext <<_ACEOF 
     34437/* end confdefs.h.  */ 
     34438#include <X11/Xlib.h> 
     34439int 
     34440main () 
     34441{ 
     34442XrmInitialize () 
     34443  ; 
     34444  return 0; 
     34445} 
     34446_ACEOF 
     34447rm -f conftest.$ac_objext conftest$ac_exeext 
     34448if { (ac_try="$ac_link" 
     34449case "(($ac_try" in 
     34450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     34451  *) ac_try_echo=$ac_try;; 
     34452esac 
     34453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 
     34454$as_echo "$ac_try_echo") >&5 
     34455  (eval "$ac_link") 2>conftest.er1 
     34456  ac_status=$? 
     34457  grep -v '^ *+' conftest.er1 >conftest.err 
     34458  rm -f conftest.er1 
     34459  cat conftest.err >&5 
     34460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     34461  (exit $ac_status); } && { 
     34462         test -z "$ac_c_werror_flag" || 
     34463         test ! -s conftest.err 
     34464       } && test -s conftest$ac_exeext && { 
     34465         test "$cross_compiling" = yes || 
     34466         $as_test_x conftest$ac_exeext 
     34467       }; then 
     34468  LIBS=$ac_save_LIBS 
     34469# We can link X programs with no special library path. 
     34470ac_x_libraries= 
     34471else 
     34472  $as_echo "$as_me: failed program was:" >&5 
     34473sed 's/^/| /' conftest.$ac_ext >&5 
     34474 
     34475        LIBS=$ac_save_LIBS 
     34476for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 
     34477do 
     34478  # Don't even attempt the hair of trying to link an X program! 
     34479  for ac_extension in a so sl dylib la dll; do 
     34480    if test -r "$ac_dir/libX11.$ac_extension"; then 
     34481      ac_x_libraries=$ac_dir 
     34482      break 2 
     34483    fi 
     34484  done 
     34485done 
     34486fi 
     34487 
     34488rm -rf conftest.dSYM 
     34489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     34490      conftest$ac_exeext conftest.$ac_ext 
     34491fi # $ac_x_libraries = no 
     34492 
     34493case $ac_x_includes,$ac_x_libraries in #( 
     34494  no,* | *,no | *\'*) 
     34495    # Didn't find X, or a directory has "'" in its name. 
     34496    ac_cv_have_x="have_x=no";; #( 
     34497  *) 
     34498    # Record where we found X for the cache. 
     34499    ac_cv_have_x="have_x=yes\ 
     34500        ac_x_includes='$ac_x_includes'\ 
     34501        ac_x_libraries='$ac_x_libraries'" 
     34502esac 
     34503fi 
     34504;; #( 
     34505    *) have_x=yes;; 
     34506  esac 
     34507  eval "$ac_cv_have_x" 
     34508fi # $with_x != no 
     34509 
     34510if test "$have_x" != yes; then 
     34511  { $as_echo "$as_me:$LINENO: result: $have_x" >&5 
     34512$as_echo "$have_x" >&6; } 
     34513  no_x=yes 
     34514else 
     34515  # If each of the values was on the command line, it overrides each guess. 
     34516  test "x$x_includes" = xNONE && x_includes=$ac_x_includes 
     34517  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 
     34518  # Update the cache value to reflect the command line values. 
     34519  ac_cv_have_x="have_x=yes\ 
     34520        ac_x_includes='$x_includes'\ 
     34521        ac_x_libraries='$x_libraries'" 
     34522  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 
     34523$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 
     34524fi 
     34525 
    3454034526if test "$no_x" = yes; then 
    3454134527  # Not all programs may use this symbol, but it does not hurt to define it. 
  • ImageMagick/trunk/configure.ac

    r349 r372  
    389389# Enable support for OpenCL 
    390390AX_CHECK_CL 
     391CFLAGS="$CL_CFLAGS $CFLAGS" 
     392LIBS="$CL_LIBS $LIBS" 
    391393 
    392394######## 
  • ImageMagick/trunk/m4/ax_check_cl.m4

    r369 r372  
    3737AC_DEFUN([AX_CHECK_CL], 
    3838[AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    39 AC_REQUIRE([AC_PATH_X])dnl 
    4039AC_REQUIRE([AC_PROG_SED])dnl 
    4140AC_REQUIRE([ACX_PTHREAD])dnl 
     
    4645      [CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"]) 
    4746 
    48 # 
    49 # Use x_includes and x_libraries if they have been set (presumably by 
    50 # AC_PATH_X). 
    51 # 
    52 AS_IF([test X$no_x != Xyes], 
    53       [AS_IF([test -n "$x_includes"], 
    54              [CL_CFLAGS="-I$x_includes $CL_CFLAGS"])] 
    55        AS_IF([test -n "$x_libraries"], 
    56              [CL_LIBS="-L$x_libraries -lX11 $CL_LIBS"])) 
    57  
    5847ax_save_CPPFLAGS=$CPPFLAGS 
    5948CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 
    60 AC_CHECK_HEADERS([CL/OpenCL.h OpenCL/OpenCL.h]) 
     49AC_CHECK_HEADERS([CL/opencl.h OpenCL/OpenCL.h]) 
    6150CPPFLAGS=$ax_save_CPPFLAGS 
    6251 
     
    6958# endif 
    7059# ifdef HAVE_CL_OPENCL_H 
    71 #   include <CL/cl.h> 
     60#   include <CL/opencl.h> 
    7261# elif defined(HAVE_OPENCL_OPENCL_H) 
    7362#   include <OpenCL/OpenCL.h> 
  • ImageMagick/trunk/magick/magick-config.h

    r368 r372  
    188188#endif 
    189189 
    190 /* Define to 1 if you have the <CL/OpenCL.h> header file. */ 
     190/* Define to 1 if you have the <CL/opencl.h> header file. */ 
    191191/* #undef HAVE_CL_OPENCL_H */ 
    192192