configure.in
branchSDL-1.2
changeset 4078 5e6f2972f963
parent 4058 eede31c0ca20
child 4080 e1098effe318
     1.1 --- a/configure.in	Mon Jul 16 00:07:02 2007 +0000
     1.2 +++ b/configure.in	Mon Jul 16 03:27:26 2007 +0000
     1.3 @@ -96,6 +96,7 @@
     1.4  AC_PROG_CXX
     1.5  AC_PROG_INSTALL
     1.6  AC_PROG_MAKE_SET
     1.7 +AC_CHECK_PROGS(WINDRES, windres i386-mingw32-windres)
     1.8  
     1.9  dnl Check for compiler characteristics
    1.10  AC_C_CONST
    1.11 @@ -2436,6 +2437,7 @@
    1.12              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
    1.13          fi
    1.14          # The Win32 platform requires special setup
    1.15 +        SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
    1.16          SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
    1.17          SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
    1.18          SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
    1.19 @@ -2702,6 +2704,7 @@
    1.20  OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'`
    1.21  OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.22  OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'`
    1.23 +OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
    1.24  
    1.25  SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'`
    1.26  SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.o,g'`
    1.27 @@ -2771,6 +2774,7 @@
    1.28  AC_SUBST(EXTRA_CFLAGS)
    1.29  AC_SUBST(BUILD_LDFLAGS)
    1.30  AC_SUBST(EXTRA_LDFLAGS)
    1.31 +AC_SUBST(WINDRES)
    1.32  
    1.33  AC_OUTPUT([
    1.34      Makefile sdl-config SDL.spec SDL.qpg sdl.pc