configure.in
changeset 2204 9f64d06fa168
parent 2185 2032348afed1
child 2206 ca7d2227d630
     1.1 --- a/configure.in	Mon Jul 16 00:08:35 2007 +0000
     1.2 +++ b/configure.in	Mon Jul 16 03:28:48 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 @@ -2261,6 +2262,7 @@
    1.12          # Set up the system libraries we need
    1.13          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows -luser32 -lgdi32 -lmsimg32 -lwinmm"
    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 @@ -2512,6 +2514,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,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
    1.27 @@ -2574,6 +2577,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