Changeset 11775


Ignore:
Timestamp:
Jan 27, 2011, 3:53:02 AM (12 years ago)
Author:
jordan
Message:

(trunk) #3949 "Add --enable-lightweight argument to configure" -- fixed.

TR_EMBEDDED has been around for awhile, but few (any?) repackagers are aware of it. If it was "advertised" through a configure-time argument, and in the status messages at the end of the configure script, more repackagers would be aware of it.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r11772 r11775  
    407407esac
    408408
     409AC_ARG_ENABLE([lightweight],
     410              AS_HELP_STRING([--enable-lightweight],[optimize libtransmission for low-resource systems: smaller cache size, prefer unencrypted peer connections, etc.]),
     411              [enable_lightweight=${enableval}],
     412              [enable_lightweight="no"])
     413if test "x$enable_lightweight" = "xyes" ; then
     414  AC_DEFINE([TR_LIGHTWEIGHT],[1],[optimize libtransmission for low-resource systems])
     415fi
     416
    409417AC_ARG_ENABLE([cli],
    410418              [AS_HELP_STRING([--enable-cli],[build command-line client])],
     
    486494   Compiler:                                          ${CXX}
    487495
     496   Build libtransmission:                             yes
     497
     498      * optimized for low-resource systems:           ${enable_lightweight}
     499
    488500   Build Command-Line client:                         ${build_cli}
    489501
  • trunk/libtransmission/rpc-server.c

    r11709 r11775  
    364364            /* zlib's manual says: "Add 16 to windowBits to write a simple gzip header
    365365             * and trailer around the compressed data instead of a zlib wrapper." */
    366 #ifdef TR_EMBEDDED
     366#ifdef TR_LIGHTWEIGHT
    367367            compressionLevel = Z_DEFAULT_COMPRESSION;
    368368#else
  • trunk/libtransmission/session.c

    r11756 r11775  
    5656    SAVE_INTERVAL_SECS = 360,
    5757
     58#ifdef TR_LIGHTWEIGHT
     59    DEFAULT_CACHE_SIZE_MB = 2
     60#else
    5861    DEFAULT_CACHE_SIZE_MB = 4
     62#endif
    5963};
    6064
     
    252256***/
    253257
    254 #ifdef TR_EMBEDDED
     258#ifdef TR_LIGHTWEIGHT
    255259 #define TR_DEFAULT_ENCRYPTION   TR_CLEAR_PREFERRED
    256260#else
  • trunk/libtransmission/utils.h

    r11714 r11775  
    102102/* #define DISABLE_GETTEXT */
    103103#ifndef DISABLE_GETTEXT
    104  #if defined(WIN32) || defined(TR_EMBEDDED)
     104 #if defined(WIN32) || defined(TR_LIGHTWEIGHT)
    105105   #define DISABLE_GETTEXT
    106106 #endif
Note: See TracChangeset for help on using the changeset viewer.