configure.in
changeset 3168 6338b7f2d024
parent 3113 df2bb5735822
child 3170 b7a48f533966
equal deleted inserted replaced
3167:0c85abc61e47 3168:6338b7f2d024
  2075        AC_MSG_ERROR([
  2075        AC_MSG_ERROR([
  2076 *** Your compiler ($CC) does not produce Win32 executables!
  2076 *** Your compiler ($CC) does not produce Win32 executables!
  2077        ])
  2077        ])
  2078     fi
  2078     fi
  2079 
  2079 
       
  2080     AC_MSG_CHECKING(Windows CE)
       
  2081     have_wince=no
       
  2082     AC_TRY_COMPILE([
       
  2083 #ifndef _WIN32_WCE
       
  2084 #error This is not Windows CE
       
  2085 #endif
       
  2086     ],[
       
  2087     ],[
       
  2088     have_wince=yes
       
  2089     ])
       
  2090     AC_MSG_RESULT($have_wince)
       
  2091 
  2080     dnl See if the user wants to redirect standard output to files
  2092     dnl See if the user wants to redirect standard output to files
  2081     AC_ARG_ENABLE(stdio-redirect,
  2093     AC_ARG_ENABLE(stdio-redirect,
  2082 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]),
  2094 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]),
  2083                   , enable_stdio_redirect=yes)
  2095                   , enable_stdio_redirect=yes)
  2084     if test x$enable_stdio_redirect != xyes; then
  2096     if test x$enable_stdio_redirect != xyes; then
  2092     AC_ARG_ENABLE(directx,
  2104     AC_ARG_ENABLE(directx,
  2093 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]),
  2105 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]),
  2094                   , enable_directx=yes)
  2106                   , enable_directx=yes)
  2095     if test x$enable_directx = xyes; then
  2107     if test x$enable_directx = xyes; then
  2096         AC_CHECK_HEADER(d3d9.h, have_d3d=yes)
  2108         AC_CHECK_HEADER(d3d9.h, have_d3d=yes)
       
  2109         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
  2097         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  2110         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  2098         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  2111         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  2099     fi
  2112     fi
  2100 }
  2113 }
  2101 
  2114 
  2554 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]),
  2567 AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]),
  2555                                 , enable_render_gdi=yes)
  2568                                 , enable_render_gdi=yes)
  2556             if test x$enable_render_gdi = xyes; then
  2569             if test x$enable_render_gdi = xyes; then
  2557                 AC_DEFINE(SDL_VIDEO_RENDER_GDI)
  2570                 AC_DEFINE(SDL_VIDEO_RENDER_GDI)
  2558             fi
  2571             fi
       
  2572             AC_ARG_ENABLE(render-gapi,
       
  2573 AC_HELP_STRING([--enable-render-gapi], [enable the GAPI/RAWFRAMEBUFFER render driver [[default=yes]]]),
       
  2574                                 , enable_render_gapi=yes)
       
  2575             if test x$enable_render_gapi = xyes -a x$have_wince = xyes; then
       
  2576                 AC_DEFINE(SDL_VIDEO_RENDER_GAPI)
       
  2577             fi
       
  2578             AC_ARG_ENABLE(render-ddraw,
       
  2579 AC_HELP_STRING([--enable-render-ddraw], [enable the Mobile DirectDraw render driver [[default=yes]]]),
       
  2580                                 , enable_render_ddraw=yes)
       
  2581             if test x$enable_render_ddraw = xyes -a x$have_wince = xyes -a x$have_ddraw = xyes; then
       
  2582                 AC_DEFINE(SDL_VIDEO_RENDER_DDRAW)
       
  2583             fi
  2559             AC_ARG_ENABLE(render-d3d,
  2584             AC_ARG_ENABLE(render-d3d,
  2560 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
  2585 AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
  2561                                 , enable_render_d3d=yes)
  2586                                 , enable_render_d3d=yes)
  2562             enable_render_d3d=no
  2587             enable_render_d3d=no
  2563             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  2588             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then