configure.in
changeset 4569 e1664f94f026
parent 4476 890fe3b85890
child 4618 844b5ef4b149
equal deleted inserted replaced
4568:25b9cd8bdc30 4569:e1664f94f026
  1915     fi
  1915     fi
  1916 
  1916 
  1917     AC_MSG_CHECKING(Windows CE)
  1917     AC_MSG_CHECKING(Windows CE)
  1918     have_wince=no
  1918     have_wince=no
  1919     AC_TRY_COMPILE([
  1919     AC_TRY_COMPILE([
  1920 #ifndef _WIN32_WCE
  1920 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  1921 #error This is not Windows CE
  1921 #error This is not Windows CE
  1922 #endif
  1922 #endif
  1923     ],[
  1923     ],[
  1924     ],[
  1924     ],[
  1925     have_wince=yes
  1925     have_wince=yes
  2386         if test x$enable_atomic = xyes; then
  2386         if test x$enable_atomic = xyes; then
  2387             AC_DEFINE(SDL_ATOMIC_WIN32)
  2387             AC_DEFINE(SDL_ATOMIC_WIN32)
  2388             SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
  2388             SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
  2389             have_atomic=yes
  2389             have_atomic=yes
  2390         fi
  2390         fi
       
  2391         # Set up dummy files for the joystick for now
       
  2392         if test x$enable_joystick = xyes; then
       
  2393             AC_DEFINE(SDL_JOYSTICK_DUMMY)
       
  2394             SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
       
  2395             have_joystick=yes
       
  2396         fi
  2391         # Set up files for the thread library
  2397         # Set up files for the thread library
  2392         if test x$enable_threads = xyes; then
  2398         if test x$enable_threads = xyes; then
  2393             AC_DEFINE(SDL_THREAD_WIN32)
  2399             AC_DEFINE(SDL_THREAD_WIN32)
  2394             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
  2400             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
  2395             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
  2401             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
  2409             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
  2415             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
  2410             have_loadso=yes
  2416             have_loadso=yes
  2411         fi
  2417         fi
  2412         # Set up the system libraries we need
  2418         # Set up the system libraries we need
  2413         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
  2419         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
       
  2420 
       
  2421 	# mingw32ce library
       
  2422 	case "$host" in
       
  2423     	    *-mingw32ce)
       
  2424     		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmingwex"
       
  2425     		;;
       
  2426     	    *)
       
  2427         	;;
       
  2428 	esac
       
  2429 
  2414         # The Win32 platform requires special setup
  2430         # The Win32 platform requires special setup
  2415         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2431         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2416         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2432         EXTRA_CFLAGS="$EXTRA_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2417         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2433         EXTRA_LDFLAGS="-lSDLmain $EXTRA_LDFLAGS"
  2418         ;;
  2434         ;;
  2419     *-*-cygwin* | *-*-mingw32*)
  2435     *-*-cygwin* | *-*-mingw32*)
  2420         ARCH=win32
  2436         ARCH=win32
  2421         if test "$build" != "$host"; then # cross-compiling
  2437         if test "$build" != "$host"; then # cross-compiling
  2422             # Default cross-compile location
  2438             # Default cross-compile location