configure.in
changeset 4569 e1664f94f026
parent 4476 890fe3b85890
child 4618 844b5ef4b149
     1.1 --- a/configure.in	Fri Jul 23 21:33:00 2010 -0700
     1.2 +++ b/configure.in	Tue Jul 27 21:31:28 2010 -0700
     1.3 @@ -1917,7 +1917,7 @@
     1.4      AC_MSG_CHECKING(Windows CE)
     1.5      have_wince=no
     1.6      AC_TRY_COMPILE([
     1.7 -#ifndef _WIN32_WCE
     1.8 +#if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
     1.9  #error This is not Windows CE
    1.10  #endif
    1.11      ],[
    1.12 @@ -2388,6 +2388,12 @@
    1.13              SOURCES="$SOURCES $srcdir/src/atomic/win32/*.c"
    1.14              have_atomic=yes
    1.15          fi
    1.16 +        # Set up dummy files for the joystick for now
    1.17 +        if test x$enable_joystick = xyes; then
    1.18 +            AC_DEFINE(SDL_JOYSTICK_DUMMY)
    1.19 +            SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
    1.20 +            have_joystick=yes
    1.21 +        fi
    1.22          # Set up files for the thread library
    1.23          if test x$enable_threads = xyes; then
    1.24              AC_DEFINE(SDL_THREAD_WIN32)
    1.25 @@ -2411,10 +2417,20 @@
    1.26          fi
    1.27          # Set up the system libraries we need
    1.28          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
    1.29 +
    1.30 +	# mingw32ce library
    1.31 +	case "$host" in
    1.32 +    	    *-mingw32ce)
    1.33 +    		EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmingwex"
    1.34 +    		;;
    1.35 +    	    *)
    1.36 +        	;;
    1.37 +	esac
    1.38 +
    1.39          # The Win32 platform requires special setup
    1.40          SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
    1.41 -        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
    1.42 -        SDL_LIBS="-lSDLmain $SDL_LIBS"
    1.43 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
    1.44 +        EXTRA_LDFLAGS="-lSDLmain $EXTRA_LDFLAGS"
    1.45          ;;
    1.46      *-*-cygwin* | *-*-mingw32*)
    1.47          ARCH=win32