configure.in
branchSDL-1.2
changeset 4164 7a4c511c980a
parent 4139 568c9b3c0167
child 4165 3b8ac3d311a2
equal deleted inserted replaced
4163:bec67d0b6645 4164:7a4c511c980a
    38 AC_SUBST(LT_CURRENT)
    38 AC_SUBST(LT_CURRENT)
    39 AC_SUBST(LT_REVISION)
    39 AC_SUBST(LT_REVISION)
    40 AC_SUBST(LT_AGE)
    40 AC_SUBST(LT_AGE)
    41 
    41 
    42 dnl Detect the canonical build and host environments
    42 dnl Detect the canonical build and host environments
    43 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
    43 AC_CONFIG_AUX_DIR([build-scripts])
    44 AC_CANONICAL_HOST
    44 AC_CANONICAL_HOST
    45 AC_C_BIGENDIAN
    45 AC_C_BIGENDIAN
    46 if test x$ac_cv_c_bigendian = xyes; then
    46 if test x$ac_cv_c_bigendian = xyes; then
    47     AC_DEFINE(SDL_BYTEORDER, 4321)
    47     AC_DEFINE(SDL_BYTEORDER, 4321)
    48 else
    48 else
  2491         # The Win32 platform requires special setup
  2491         # The Win32 platform requires special setup
  2492         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2492         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2493         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2493         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2494         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2494         SDL_LIBS="-lSDLmain $SDL_LIBS"
  2495         ;;
  2495         ;;
  2496     *-*-beos*)
  2496     *-*-beos* | *-*-haiku*)
  2497         ARCH=beos
  2497         ARCH=beos
  2498         ac_default_prefix=/boot/develop/tools/gnupro
  2498         ac_default_prefix=/boot/develop/tools/gnupro
  2499         CheckDummyVideo
  2499         CheckDummyVideo
  2500         CheckDiskAudio
  2500         CheckDiskAudio
  2501         CheckDummyAudio
  2501         CheckDummyAudio
  2534             SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
  2534             SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
  2535             have_timers=yes
  2535             have_timers=yes
  2536         fi
  2536         fi
  2537         # Set up files for the shared object loading library
  2537         # Set up files for the shared object loading library
  2538         if test x$enable_loadso = xyes; then
  2538         if test x$enable_loadso = xyes; then
  2539             AC_DEFINE(SDL_LOADSO_BEOS)
  2539             case "$host" in
  2540             SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
  2540                 *-*-beos*)
       
  2541                     AC_DEFINE(SDL_LOADSO_BEOS)
       
  2542                     SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
       
  2543                 ;;
       
  2544                 *-*-haiku*)
       
  2545                     AC_DEFINE(SDL_LOADSO_DLOPEN)
       
  2546                     SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
       
  2547                 ;;
       
  2548             esac    
  2541             have_loadso=yes
  2549             have_loadso=yes
  2542         fi
  2550         fi
  2543         # The BeOS platform requires special setup.
  2551         # The BeOS platform requires special setup.
  2544         SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
  2552         SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
  2545         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  2553         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"