configure.in
changeset 6430 48d519500f7e
parent 6408 6fb90a109d83
child 6431 1f9c0e93bd96
equal deleted inserted replaced
6429:ff5e34883bf8 6430:48d519500f7e
  1906 #error This is not Windows CE
  1906 #error This is not Windows CE
  1907 #endif
  1907 #endif
  1908     ],[
  1908     ],[
  1909     ],[
  1909     ],[
  1910     have_wince=yes
  1910     have_wince=yes
       
  1911        AC_MSG_ERROR([
       
  1912 *** Sorry, Windows CE is no longer supported.
  1911     ])
  1913     ])
  1912     AC_MSG_RESULT($have_wince)
  1914     AC_MSG_RESULT($have_wince)
  1913 
  1915 
  1914     # This fixes Windows stack alignment with newer GCC
  1916     # This fixes Windows stack alignment with newer GCC
  1915     CheckStackBoundary
  1917     CheckStackBoundary
  2237             AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
  2239             AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
  2238             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  2240             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  2239             have_timers=yes
  2241             have_timers=yes
  2240         fi
  2242         fi
  2241         ;;
  2243         ;;
  2242     *-wince* | *-mingw32ce)
       
  2243         ARCH=win32
       
  2244         CheckDummyVideo
       
  2245         CheckDiskAudio
       
  2246         CheckDummyAudio
       
  2247         CheckWINDOWS
       
  2248         if test x$enable_video = xyes; then
       
  2249             AC_DEFINE(SDL_VIDEO_DRIVER_WINDOWS, 1, [ ])
       
  2250             SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
       
  2251             have_video=yes
       
  2252             AC_ARG_ENABLE(render-d3d,
       
  2253 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
       
  2254                                 , enable_render_d3d=yes)
       
  2255             enable_render_d3d=no
       
  2256             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
       
  2257                 AC_DEFINE(SDL_VIDEO_RENDER_D3D, 1, [ ])
       
  2258             fi
       
  2259         fi
       
  2260         # Set up files for the audio library
       
  2261         if test x$enable_audio = xyes; then
       
  2262             AC_DEFINE(SDL_AUDIO_DRIVER_WINMM, 1, [ ])
       
  2263             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
       
  2264             if test x$have_dsound = xyes; then
       
  2265                 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
       
  2266                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
       
  2267             fi
       
  2268             if test x$have_xaudio2 = xyes; then
       
  2269                 AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
       
  2270                 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
       
  2271             fi
       
  2272             have_audio=yes
       
  2273         fi
       
  2274         # Set up dummy files for the joystick for now
       
  2275         if test x$enable_joystick = xyes; then
       
  2276             AC_DEFINE(SDL_JOYSTICK_DUMMY, 1, [ ])
       
  2277             SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
       
  2278             have_joystick=yes
       
  2279         fi
       
  2280         # Set up files for the thread library
       
  2281         if test x$enable_threads = xyes; then
       
  2282             AC_DEFINE(SDL_THREAD_WINDOWS, 1, [ ])
       
  2283             SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_sysmutex.c"
       
  2284             SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_syssem.c"
       
  2285             SOURCES="$SOURCES $srcdir/src/thread/windows/SDL_systhread.c"
       
  2286             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
       
  2287             have_threads=yes
       
  2288         fi
       
  2289         # Set up files for the timer library
       
  2290         if test x$enable_timers = xyes; then
       
  2291             AC_DEFINE(SDL_TIMER_WINCE, 1, [ ])
       
  2292             SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
       
  2293             have_timers=yes
       
  2294         fi
       
  2295         # Set up files for the shared object loading library
       
  2296         if test x$enable_loadso = xyes; then
       
  2297             AC_DEFINE(SDL_LOADSO_WINDOWS, 1, [ ])
       
  2298             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
       
  2299             have_loadso=yes
       
  2300         fi
       
  2301         # Set up the system libraries we need
       
  2302         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
       
  2303 
       
  2304 	# mingw32ce library
       
  2305 	case "$host" in
       
  2306     	    *-mingw32ce)
       
  2307     		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmingwex"
       
  2308     		;;
       
  2309     	    *)
       
  2310         	;;
       
  2311 	esac
       
  2312 
       
  2313         # The Windows platform requires special setup
       
  2314         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
       
  2315         EXTRA_CFLAGS="$EXTRA_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
       
  2316         EXTRA_LDFLAGS="-lSDL2main $EXTRA_LDFLAGS"
       
  2317         ;;
       
  2318     *-*-cygwin* | *-*-mingw32*)
  2244     *-*-cygwin* | *-*-mingw32*)
  2319         ARCH=win32
  2245         ARCH=win32
  2320         if test "$build" != "$host"; then # cross-compiling
  2246         if test "$build" != "$host"; then # cross-compiling
  2321             # Default cross-compile location
  2247             # Default cross-compile location
  2322             ac_default_prefix=/usr/local/cross-tools/$host
  2248             ac_default_prefix=/usr/local/cross-tools/$host