configure.in
branchSDL-1.3
changeset 1730 e70477157db9
parent 1724 6c63fc2bd986
     1.1 --- a/configure.in	Fri Jul 07 10:39:33 2006 +0000
     1.2 +++ b/configure.in	Sat Jul 08 18:06:02 2006 +0000
     1.3 @@ -1861,12 +1861,6 @@
     1.4      if test x$enable_stdio_redirect != xyes; then
     1.5          EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
     1.6      fi
     1.7 -
     1.8 -    if test x$enable_video = xyes; then
     1.9 -        AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
    1.10 -        SOURCES="$SOURCES $srcdir/src/video/win32/*.c"
    1.11 -        have_video=yes
    1.12 -    fi
    1.13  }
    1.14  
    1.15  dnl Find the DirectX includes and libraries
    1.16 @@ -1876,6 +1870,7 @@
    1.17  AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]),
    1.18                    , enable_directx=yes)
    1.19      if test x$enable_directx = xyes; then
    1.20 +        AC_CHECK_HEADER(d3d9.h, have_d3d=yes)
    1.21          AC_CHECK_HEADER(dsound.h, have_dsound=yes)
    1.22          AC_CHECK_HEADER(dinput.h, use_dinput=yes)
    1.23      fi
    1.24 @@ -2298,6 +2293,24 @@
    1.25          CheckglSDL
    1.26          CheckDIRECTX
    1.27          CheckNASM
    1.28 +        # Set up files for the video library
    1.29 +        if test x$enable_video = xyes; then
    1.30 +            AC_DEFINE(SDL_VIDEO_DRIVER_WIN32)
    1.31 +            SOURCES="$SOURCES $srcdir/src/video/win32/*.c"
    1.32 +            have_video=yes
    1.33 +            AC_ARG_ENABLE(render-gdi,
    1.34 +AC_HELP_STRING([--enable-render-gdi], [enable the GDI render driver [[default=yes]]]),
    1.35 +                                , enable_render_gdi=yes)
    1.36 +            if test x$enable_render_gdi = xyes; then
    1.37 +                AC_DEFINE(SDL_VIDEO_RENDER_GDI)
    1.38 +            fi
    1.39 +            AC_ARG_ENABLE(render-d3d,
    1.40 +AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[default=yes]]]),
    1.41 +                                , enable_render_d3d=yes)
    1.42 +            if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
    1.43 +                AC_DEFINE(SDL_VIDEO_RENDER_D3D)
    1.44 +            fi
    1.45 +        fi
    1.46          # Set up files for the audio library
    1.47          if test x$enable_audio = xyes; then
    1.48              AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)