esac
+AC_ARG_ENABLE([lightweight],
+ AS_HELP_STRING([--enable-lightweight],[optimize libtransmission for low-resource systems: smaller cache size, prefer unencrypted peer connections, etc.]),
+ [enable_lightweight=${enableval}],
+ [enable_lightweight="no"])
+if test "x$enable_lightweight" = "xyes" ; then
+ AC_DEFINE([TR_LIGHTWEIGHT],[1],[optimize libtransmission for low-resource systems])
+fi
+
AC_ARG_ENABLE([cli],
[AS_HELP_STRING([--enable-cli],[build command-line client])],
[build_cli=${enableval}],
Source code location: ${srcdir}
Compiler: ${CXX}
+ Build libtransmission: yes
+
+ * optimized for low-resource systems: ${enable_lightweight}
+
Build Command-Line client: ${build_cli}
Build GTK+ client: ${build_gtk}
/* zlib's manual says: "Add 16 to windowBits to write a simple gzip header
* and trailer around the compressed data instead of a zlib wrapper." */
-#ifdef TR_EMBEDDED
+#ifdef TR_LIGHTWEIGHT
compressionLevel = Z_DEFAULT_COMPRESSION;
#else
compressionLevel = Z_BEST_COMPRESSION;
{
SAVE_INTERVAL_SECS = 360,
+#ifdef TR_LIGHTWEIGHT
+ DEFAULT_CACHE_SIZE_MB = 2
+#else
DEFAULT_CACHE_SIZE_MB = 4
+#endif
};
****
***/
-#ifdef TR_EMBEDDED
+#ifdef TR_LIGHTWEIGHT
#define TR_DEFAULT_ENCRYPTION TR_CLEAR_PREFERRED
#else
#define TR_DEFAULT_ENCRYPTION TR_ENCRYPTION_PREFERRED