configure
changeset 11808 510c0e047122
parent 11762 c4900725a75a
child 11829 fcbafc9e443c
equal deleted inserted replaced
11807:6b3d9e08c586 11808:510c0e047122
 21228 else
 21228 else
 21229   enable_render_metal=yes
 21229   enable_render_metal=yes
 21230 fi
 21230 fi
 21231 
 21231 
 21232     if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
 21232     if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
       
 21233         save_CFLAGS="$CFLAGS"
       
 21234                 CFLAGS="$CFLAGS -x objective-c"
       
 21235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
       
 21236 $as_echo_n "checking for Metal framework... " >&6; }
       
 21237         have_metal=no
       
 21238         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 21239 /* end confdefs.h.  */
       
 21240 
       
 21241           #import <Cocoa/Cocoa.h>
       
 21242           #import <Metal/Metal.h>
       
 21243           #import <QuartzCore/CAMetalLayer.h>
       
 21244 
       
 21245           #if !TARGET_CPU_X86_64
       
 21246           #error Metal doesn't work on this configuration
       
 21247           #endif
       
 21248 
       
 21249 int
       
 21250 main ()
       
 21251 {
       
 21252 
       
 21253 
       
 21254   ;
       
 21255   return 0;
       
 21256 }
       
 21257 _ACEOF
       
 21258 if ac_fn_c_try_compile "$LINENO"; then :
       
 21259 
       
 21260         have_metal=yes
       
 21261 
       
 21262 fi
       
 21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21264         CFLAGS="$save_CFLAGS"
       
 21265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
       
 21266 $as_echo "$have_metal" >&6; }
       
 21267         if test x$have_metal = xyes; then
 21233 
 21268 
 21234 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
 21269 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
 21235 
 21270 
 21236         SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
 21271             SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
 21237         SUMMARY_video="${SUMMARY_video} metal"
 21272             SUMMARY_video="${SUMMARY_video} metal"
       
 21273         fi
 21238     fi
 21274     fi
 21239 }
 21275 }
 21240 
 21276 
 21241 
 21277 
 21242 CheckDirectFB()
 21278 CheckDirectFB()