configure
changeset 8833 ae720d61d14d
parent 8828 0b7aae26e494
child 8840 9b6ddcbdea65
equal deleted inserted replaced
8832:408b0d563b27 8833:ae720d61d14d
 18982             have_video=yes
 18982             have_video=yes
 18983         fi
 18983         fi
 18984     fi
 18984     fi
 18985 }
 18985 }
 18986 
 18986 
       
 18987 CheckNativeClient()
       
 18988 {
       
 18989         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 18990 /* end confdefs.h.  */
       
 18991 
       
 18992           #if !defined(__native_client__)
       
 18993           #error "NO NACL"
       
 18994           #endif
       
 18995 
       
 18996 int
       
 18997 main ()
       
 18998 {
       
 18999 
       
 19000 
       
 19001   ;
       
 19002   return 0;
       
 19003 }
       
 19004 _ACEOF
       
 19005 if ac_fn_c_try_compile "$LINENO"; then :
       
 19006 
       
 19007         $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
       
 19008 
       
 19009         $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
       
 19010 
       
 19011 
       
 19012 $as_echo "#define HAVE_POW 1" >>confdefs.h
       
 19013 
       
 19014 
       
 19015 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
       
 19016 
       
 19017 
       
 19018 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
       
 19019 
       
 19020 
       
 19021 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
       
 19022 
       
 19023 
       
 19024         SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
       
 19025 
       
 19026         SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
       
 19027         SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
       
 19028         SUMMARY_audio="${SUMMARY_audio} nacl"
       
 19029         SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
       
 19030         SUMMARY_video="${SUMMARY_video} nacl opengles2"
       
 19031 
       
 19032 fi
       
 19033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 19034 }
       
 19035 
 18987 
 19036 
 18988 CheckX11()
 19037 CheckX11()
 18989 {
 19038 {
 18990 
 19039 
 18991 
 19040 
 23153         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
 23202         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
 23154         # If audio is used, add the AudioUnit framework
 23203         # If audio is used, add the AudioUnit framework
 23155         if test x$enable_audio = xyes; then
 23204         if test x$enable_audio = xyes; then
 23156             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
 23205             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
 23157         fi
 23206         fi
       
 23207         ;;
       
 23208     *-nacl|*-pnacl)
       
 23209         ARCH=nacl
       
 23210         CheckNativeClient
       
 23211         CheckDummyAudio
       
 23212         CheckDummyVideo
       
 23213         CheckInputEvents
       
 23214         # Set up files for the timer library
       
 23215         if test x$enable_timers = xyes; then
       
 23216             $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
       
 23217 
       
 23218             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
       
 23219             have_timers=yes
       
 23220         fi
       
 23221         CheckPTHREAD
 23158         ;;
 23222         ;;
 23159     *)
 23223     *)
 23160         as_fn_error $? "
 23224         as_fn_error $? "
 23161 *** Unsupported host:  Please add to configure.in
 23225 *** Unsupported host:  Please add to configure.in
 23162         " "$LINENO" 5
 23226         " "$LINENO" 5