configure.in
branchSDL-1.2
changeset 6130 987c365cc7bf
parent 6112 60dfd25009b0
child 6143 29811864f4cf
equal deleted inserted replaced
6129:19c7412a6345 6130:987c365cc7bf
  1554         AC_MSG_RESULT($video_qtopia)
  1554         AC_MSG_RESULT($video_qtopia)
  1555         if test x$video_qtopia = xyes; then
  1555         if test x$video_qtopia = xyes; then
  1556             AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA)
  1556             AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA)
  1557             SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
  1557             SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
  1558             SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
  1558             SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
       
  1559             SDLMAIN_LDFLAGS="-static"
  1559             EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
  1560             EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
  1560             SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
  1561             SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
  1561             SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
  1562             SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
  1562             have_video=yes
  1563             have_video=yes
  1563         fi
  1564         fi
  2546             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
  2547             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
  2547         fi
  2548         fi
  2548         # The Win32 platform requires special setup
  2549         # The Win32 platform requires special setup
  2549         SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
  2550         SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
  2550         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2551         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
       
  2552         SDLMAIN_LDFLAGS="-static"
  2551         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  2553         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  2552         SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
  2554         SDL_LIBS="-lSDLmain $SDL_LIBS -mwindows"
  2553         ;;
  2555         ;;
  2554     *-wince*)
  2556     *-wince*)
  2555         ARCH=win32
  2557         ARCH=win32
  2556         CheckDummyVideo
  2558         CheckDummyVideo
  2557         CheckDiskAudio
  2559         CheckDiskAudio
  2589         fi
  2591         fi
  2590         # Set up the system libraries we need
  2592         # Set up the system libraries we need
  2591         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
  2593         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
  2592         # The Win32 platform requires special setup
  2594         # The Win32 platform requires special setup
  2593         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2595         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
       
  2596         SDLMAIN_LDFLAGS="-static"
  2594         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2597         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2595         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2598         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2596         ;;
  2599         ;;
  2597     *-*-beos* | *-*-haiku*)
  2600     *-*-beos* | *-*-haiku*)
  2598         ARCH=beos
  2601         ARCH=beos
  2720             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  2723             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  2721             have_timers=yes
  2724             have_timers=yes
  2722         fi
  2725         fi
  2723         # The Mac OS X platform requires special setup.
  2726         # The Mac OS X platform requires special setup.
  2724         SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
  2727         SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
       
  2728         SDLMAIN_LDFLAGS="-static"
  2725         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  2729         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  2726         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2730         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2727         if test x$enable_video_cocoa = xyes; then
  2731         if test x$enable_video_cocoa = xyes; then
  2728             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  2732             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  2729             need_iokit_framework=yes
  2733             need_iokit_framework=yes
  2856     fi
  2860     fi
  2857     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  2861     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  2858 fi
  2862 fi
  2859 if test x$SDLMAIN_SOURCES = x; then
  2863 if test x$SDLMAIN_SOURCES = x; then
  2860     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  2864     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
       
  2865     SDLMAIN_LDFLAGS="-static"
  2861 fi
  2866 fi
  2862 
  2867 
  2863 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'`
  2868 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'`
  2864 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'`
  2869 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'`
  2865 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'`
  2870 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'`
  2866 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
  2871 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
  2867 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'`
  2872 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.S,$(objects)/\1.lo,g'`
  2868 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
  2873 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.lo,g'`
  2869 
  2874 
  2870 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'`
  2875 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'`
  2871 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.o,g'`
  2876 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'`
  2872 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
  2877 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
  2873 
  2878 
  2874 # Set runtime shared library paths as needed
  2879 # Set runtime shared library paths as needed
  2875 
  2880 
  2876 if test "x$enable_rpath" = "xyes"; then
  2881 if test "x$enable_rpath" = "xyes"; then
  2877   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
  2882   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
  2929 AC_SUBST(INCLUDE)
  2934 AC_SUBST(INCLUDE)
  2930 AC_SUBST(SOURCES)
  2935 AC_SUBST(SOURCES)
  2931 AC_SUBST(OBJECTS)
  2936 AC_SUBST(OBJECTS)
  2932 AC_SUBST(SDLMAIN_SOURCES)
  2937 AC_SUBST(SDLMAIN_SOURCES)
  2933 AC_SUBST(SDLMAIN_OBJECTS)
  2938 AC_SUBST(SDLMAIN_OBJECTS)
       
  2939 AC_SUBST(SDLMAIN_LDFLAGS)
  2934 AC_SUBST(BUILD_CFLAGS)
  2940 AC_SUBST(BUILD_CFLAGS)
  2935 AC_SUBST(EXTRA_CFLAGS)
  2941 AC_SUBST(EXTRA_CFLAGS)
  2936 AC_SUBST(BUILD_LDFLAGS)
  2942 AC_SUBST(BUILD_LDFLAGS)
  2937 AC_SUBST(EXTRA_LDFLAGS)
  2943 AC_SUBST(EXTRA_LDFLAGS)
  2938 AC_SUBST(WINDRES)
  2944 AC_SUBST(WINDRES)