2008-11-04 02:09:51 +00:00
|
|
|
dnl convention: -TR MAJOR MINOR MAINT STATUS - (each a single char)
|
2009-01-11 16:58:14 +00:00
|
|
|
dnl STATUS: "X" for prerelease beta builds,
|
2008-11-04 02:09:51 +00:00
|
|
|
dnl "Z" for unsupported trunk builds,
|
|
|
|
dnl "0" for stable, supported releases
|
|
|
|
dnl these should be the only two lines you need to change
|
2014-07-04 12:58:21 +00:00
|
|
|
m4_define([user_agent_prefix],[2.84+])
|
|
|
|
m4_define([peer_id_prefix],[-TR284Z-])
|
2008-11-04 02:09:51 +00:00
|
|
|
|
2012-09-22 22:23:04 +00:00
|
|
|
AC_INIT([transmission],[user_agent_prefix],[http://trac.transmissionbt.com/newticket])
|
2008-11-04 02:28:22 +00:00
|
|
|
AC_SUBST(USERAGENT_PREFIX,[user_agent_prefix])
|
|
|
|
AC_SUBST(PEERID_PREFIX,[peer_id_prefix])
|
2008-08-15 19:31:59 +00:00
|
|
|
|
2009-09-25 14:25:52 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
2008-10-09 20:11:32 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2008-08-15 19:31:59 +00:00
|
|
|
|
2007-07-28 04:10:09 +00:00
|
|
|
dnl AM_CONFIG_HEADER(config.h)
|
2007-07-18 23:04:26 +00:00
|
|
|
AC_CONFIG_SRCDIR(libtransmission/transmission.h)
|
2013-01-05 18:45:28 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.9 tar-pax no-dist-gzip dist-xz])
|
2012-09-22 22:23:04 +00:00
|
|
|
LT_INIT
|
2014-08-20 17:14:17 +00:00
|
|
|
LT_LIB_M
|
2007-07-18 23:04:26 +00:00
|
|
|
|
2009-01-17 23:12:35 +00:00
|
|
|
if test m4_substr(peer_id_prefix,6,1) = "0"; then
|
2009-01-16 21:29:49 +00:00
|
|
|
supported_build=yes
|
2009-09-06 22:52:13 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS -DNDEBUG"
|
2009-01-17 23:12:35 +00:00
|
|
|
else
|
|
|
|
supported_build=no
|
2009-02-19 17:12:41 +00:00
|
|
|
if test "x$GCC" = "xyes" ; then
|
|
|
|
CFLAGS="$CFLAGS -g -O0"
|
|
|
|
CXXFLAGS="$CXXFLAGS -g -O0"
|
|
|
|
fi
|
2008-08-15 19:31:59 +00:00
|
|
|
fi
|
2009-01-16 21:29:49 +00:00
|
|
|
AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno")
|
2015-04-24 19:14:56 +00:00
|
|
|
AM_CONDITIONAL(HAVE_REVISION_FILE, test -f REVISION)
|
2008-08-15 19:31:59 +00:00
|
|
|
|
2010-02-07 19:32:35 +00:00
|
|
|
##
|
|
|
|
##
|
|
|
|
## MANDATORY for everything
|
|
|
|
##
|
|
|
|
##
|
2015-01-07 02:04:08 +00:00
|
|
|
|
2010-03-09 19:52:58 +00:00
|
|
|
CURL_MINIMUM=7.15.4
|
2010-01-13 22:32:46 +00:00
|
|
|
AC_SUBST(CURL_MINIMUM)
|
2010-12-20 02:07:51 +00:00
|
|
|
LIBEVENT_MINIMUM=2.0.10
|
2013-02-08 13:00:02 +00:00
|
|
|
AC_SUBST(LIBEVENT_MINIMUM)
|
2014-07-17 15:56:38 +00:00
|
|
|
ZLIB_MINIMUM=1.2.3
|
2014-07-13 21:54:56 +00:00
|
|
|
AC_SUBST(ZLIB_MINIMUM)
|
2010-01-13 22:32:46 +00:00
|
|
|
|
2015-01-07 02:04:08 +00:00
|
|
|
# crypto backends
|
|
|
|
OPENSSL_MINIMUM=0.9.4
|
|
|
|
AC_SUBST(OPENSSL_MINIMUM)
|
|
|
|
CYASSL_MINIMUM=3.0
|
|
|
|
AC_SUBST(CYASSL_MINIMUM)
|
2015-01-07 13:41:22 +00:00
|
|
|
POLARSSL_MINIMUM=0x01020000 # 1.2
|
2015-01-07 13:19:00 +00:00
|
|
|
AC_SUBST(POLARSSL_MINIMUM)
|
2015-01-07 02:04:08 +00:00
|
|
|
|
2010-02-07 19:32:35 +00:00
|
|
|
##
|
|
|
|
##
|
|
|
|
## MANDATORY for the GTK+ client
|
|
|
|
##
|
|
|
|
##
|
2011-10-11 04:17:54 +00:00
|
|
|
|
2012-08-18 15:52:38 +00:00
|
|
|
GTK_MINIMUM=3.4.0
|
2012-07-14 19:26:55 +00:00
|
|
|
AC_SUBST(GTK_MINIMUM)
|
|
|
|
GLIB_MINIMUM=2.32.0
|
2011-08-07 16:42:38 +00:00
|
|
|
AC_SUBST(GLIB_MINIMUM)
|
|
|
|
GIO_MINIMUM=2.26.0
|
|
|
|
AC_SUBST(GIO_MINIMUM)
|
2010-01-13 22:32:46 +00:00
|
|
|
|
2010-02-07 19:32:35 +00:00
|
|
|
##
|
|
|
|
##
|
|
|
|
## OPTIONAL for the GTK+ client
|
|
|
|
##
|
|
|
|
##
|
2011-08-07 16:42:38 +00:00
|
|
|
|
2010-02-07 19:32:35 +00:00
|
|
|
# create the tray icon with AppIndicator
|
2012-04-28 22:56:33 +00:00
|
|
|
LIBAPPINDICATOR_MINIMUM=0.4.90
|
2011-08-08 01:40:07 +00:00
|
|
|
AC_SUBST(LIBAPPINDICATOR_MINIMUM)
|
2010-01-13 22:32:46 +00:00
|
|
|
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
2009-01-02 05:11:50 +00:00
|
|
|
AC_C_INLINE
|
2007-08-14 20:15:55 +00:00
|
|
|
if test "x$GCC" = "xyes" ; then
|
2009-01-23 18:46:09 +00:00
|
|
|
|
2014-12-06 16:28:53 +00:00
|
|
|
CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal"
|
2009-01-23 18:46:09 +00:00
|
|
|
|
|
|
|
dnl figure out gcc version
|
|
|
|
AC_MSG_CHECKING([gcc version])
|
|
|
|
GCC_VERSION=`$CC -dumpversion`
|
|
|
|
GCC_MAJOR=`echo $GCC_VERSION | cut -d . -f1`
|
|
|
|
GCC_MINOR=`echo $GCC_VERSION | cut -d . -f2`
|
|
|
|
GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
|
|
|
|
|
|
|
|
AC_MSG_RESULT($GCC_VERSION)
|
|
|
|
if test $GCC_VERSION_NUM -ge 304; then
|
|
|
|
dnl these were added in 3.4
|
2015-05-03 11:44:18 +00:00
|
|
|
CFLAGS="$CFLAGS -Wextra -Winit-self"
|
2009-01-23 18:46:09 +00:00
|
|
|
fi
|
2010-10-05 23:36:39 +00:00
|
|
|
if test $GCC_VERSION_NUM -ge 403; then
|
|
|
|
dnl these were added in 4.3
|
|
|
|
CFLAGS="$CFLAGS -Wvariadic-macros"
|
|
|
|
fi
|
2007-08-14 20:15:55 +00:00
|
|
|
fi
|
2008-08-15 19:31:59 +00:00
|
|
|
|
2007-07-18 23:04:26 +00:00
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_TIME
|
2008-11-12 03:59:30 +00:00
|
|
|
|
2011-03-22 15:19:54 +00:00
|
|
|
AC_CHECK_HEADERS([stdbool.h])
|
2014-12-06 16:28:53 +00:00
|
|
|
AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename canonicalize_file_name strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp])
|
2007-07-18 23:04:26 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
ACX_PTHREAD
|
|
|
|
|
2009-08-09 18:04:33 +00:00
|
|
|
if test "x$ac_cv_func_strtold" != "xyes" ; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
|
|
|
|
fi
|
|
|
|
|
2009-07-09 17:57:31 +00:00
|
|
|
AC_SEARCH_LIBS(cos, [m])
|
2007-07-19 03:17:49 +00:00
|
|
|
AC_SEARCH_LIBS([socket], [socket net])
|
|
|
|
AC_SEARCH_LIBS([gethostbyname], [nsl bind])
|
2014-04-27 00:02:00 +00:00
|
|
|
AC_SEARCH_LIBS([quotacursor_skipidtype], [quota])
|
2008-04-24 12:02:15 +00:00
|
|
|
PKG_CHECK_MODULES(LIBCURL, [libcurl >= $CURL_MINIMUM])
|
2010-12-20 02:07:51 +00:00
|
|
|
PKG_CHECK_MODULES(LIBEVENT, [libevent >= $LIBEVENT_MINIMUM])
|
2014-07-13 21:54:56 +00:00
|
|
|
PKG_CHECK_MODULES(ZLIB, [zlib >= $ZLIB_MINIMUM])
|
2007-07-18 23:04:26 +00:00
|
|
|
|
2015-01-07 02:04:08 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH([crypto], AS_HELP_STRING([--with-crypto=PKG],
|
2015-01-07 13:19:00 +00:00
|
|
|
[Use specified crypto library: auto (default), openssl, cyassl, polarssl]),
|
2015-01-07 02:04:08 +00:00
|
|
|
[want_crypto=$withval], [want_crypto=auto])
|
|
|
|
|
|
|
|
AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xopenssl"], [
|
|
|
|
PKG_CHECK_MODULES(OPENSSL, [openssl >= $OPENSSL_MINIMUM],
|
|
|
|
[want_crypto="openssl"; CRYPTO_PKG="openssl"; CRYPTO_CFLAGS="$OPENSSL_CFLAGS"; CRYPTO_LIBS="$OPENSSL_LIBS"],
|
|
|
|
[AS_IF([test "x$want_crypto" = "xopenssl"],
|
|
|
|
[AC_MSG_ERROR([OpenSSL support requested, but library not found.])]
|
|
|
|
)]
|
|
|
|
)
|
|
|
|
])
|
|
|
|
AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xcyassl"], [
|
2015-03-15 17:08:10 +00:00
|
|
|
PKG_CHECK_MODULES(WOLFSSL, [wolfssl >= $CYASSL_MINIMUM],
|
|
|
|
[want_crypto="cyassl"; CRYPTO_PKG="cyassl"; CRYPTO_CFLAGS="$WOLFSSL_CFLAGS"; CRYPTO_LIBS="$WOLFSSL_LIBS"],
|
|
|
|
[PKG_CHECK_MODULES(CYASSL, [cyassl >= $CYASSL_MINIMUM],
|
|
|
|
[want_crypto="cyassl"; CRYPTO_PKG="cyassl"; CRYPTO_CFLAGS="$CYASSL_CFLAGS"; CRYPTO_LIBS="$CYASSL_LIBS"],
|
|
|
|
[AS_IF([test "x$want_crypto" = "xcyassl"],
|
|
|
|
[AC_MSG_ERROR([CyaSSL support requested, but library not found.])]
|
|
|
|
)]
|
2015-01-07 02:04:08 +00:00
|
|
|
)]
|
|
|
|
)
|
|
|
|
])
|
2015-01-07 13:19:00 +00:00
|
|
|
AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xpolarssl"], [
|
|
|
|
AC_CHECK_HEADER([polarssl/version.h],
|
|
|
|
[AC_EGREP_CPP([version_ok], [#include <polarssl/version.h>
|
|
|
|
#if defined (POLARSSL_VERSION_NUMBER) && POLARSSL_VERSION_NUMBER >= $POLARSSL_MINIMUM
|
|
|
|
version_ok
|
|
|
|
#endif],
|
2015-01-07 14:05:58 +00:00
|
|
|
[AC_CHECK_LIB([polarssl], [dhm_calc_secret],
|
2015-01-07 13:19:00 +00:00
|
|
|
[want_crypto="polarssl"; CRYPTO_PKG="polarssl"; CRYPTO_CFLAGS=""; CRYPTO_LIBS="-lpolarssl"],
|
|
|
|
[AS_IF([test "x$want_crypto" = "xpolarssl"],
|
|
|
|
[AC_MSG_ERROR([PolarSSL support requested, but library not found.])]
|
|
|
|
)]
|
|
|
|
)],
|
|
|
|
[AS_IF([test "x$want_crypto" = "xpolarssl"],
|
|
|
|
[AC_MSG_ERROR([PolarSSL support requested, but version not suitable.])]
|
|
|
|
)]
|
|
|
|
)],
|
|
|
|
[AS_IF([test "x$want_crypto" = "xpolarssl"],
|
|
|
|
[AC_MSG_ERROR([PolarSSL support requested, but headers not found.])]
|
|
|
|
)]
|
|
|
|
)
|
|
|
|
])
|
2015-01-07 02:04:08 +00:00
|
|
|
# we should have found the library by now
|
|
|
|
AS_IF([test "x$CRYPTO_PKG" = "x"], [
|
|
|
|
AS_IF([test "x$want_crypto" = "xauto"],
|
|
|
|
[AC_MSG_ERROR([Unable to find any supported crypto library.])],
|
|
|
|
[AC_MSG_ERROR([Requested crypto library "$want_crypto" is not supported.])],
|
|
|
|
)
|
|
|
|
])
|
|
|
|
|
2015-01-21 22:32:27 +00:00
|
|
|
AM_CONDITIONAL([CRYPTO_USE_OPENSSL],[test "x$CRYPTO_PKG" = "xopenssl"])
|
|
|
|
AM_CONDITIONAL([CRYPTO_USE_CYASSL],[test "x$CRYPTO_PKG" = "xcyassl"])
|
|
|
|
AM_CONDITIONAL([CRYPTO_USE_POLARSSL],[test "x$CRYPTO_PKG" = "xpolarssl"])
|
2015-01-07 02:04:08 +00:00
|
|
|
AC_SUBST(CRYPTO_PKG)
|
|
|
|
AC_SUBST(CRYPTO_CFLAGS)
|
|
|
|
AC_SUBST(CRYPTO_LIBS)
|
|
|
|
|
|
|
|
|
2007-10-29 14:44:00 +00:00
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2012-12-27 19:39:44 +00:00
|
|
|
AC_FUNC_GETMNTENT
|
2009-01-25 23:33:10 +00:00
|
|
|
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl posix_fadvise
|
|
|
|
|
|
|
|
dnl can posix_fadvise be used
|
|
|
|
AC_CHECK_DECLS(posix_fadvise, [], [], [
|
|
|
|
#define _XOPEN_SOURCE 600
|
|
|
|
#include <fcntl.h>])
|
|
|
|
AC_CHECK_FUNCS([posix_fadvise])
|
|
|
|
|
|
|
|
|
2009-03-01 15:38:58 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl file monitoring for the daemon
|
|
|
|
|
2012-02-03 16:44:07 +00:00
|
|
|
AC_CHECK_HEADER([sys/inotify.h],
|
|
|
|
[AC_CHECK_FUNC([inotify_init],[have_inotify="yes"],[have_inotify="no"])],
|
|
|
|
[have_inotify="no"])
|
|
|
|
AC_ARG_WITH([inotify],
|
|
|
|
[AS_HELP_STRING([--with-inotify],[Enable inotify support (default=auto)])],
|
|
|
|
[want_inotify=${withval}],
|
|
|
|
[want_inotify=${have_inotify}])
|
|
|
|
if test "x$want_inotify" = "xyes" ; then
|
|
|
|
if test "x$have_inotify" = "xyes"; then
|
|
|
|
AC_DEFINE([WITH_INOTIFY],[1])
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR("inotify not found!")
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([sys/event.h],
|
|
|
|
[AC_CHECK_FUNC([kqueue],[have_kqueue="yes"],[have_kqueue="no"])],
|
|
|
|
[have_kqueue="no"])
|
|
|
|
AC_ARG_WITH([kqueue],
|
|
|
|
[AS_HELP_STRING([--with-kqueue],[Enable kqueue support (default=auto)])],
|
|
|
|
[want_kqueue=${withval}],
|
|
|
|
[want_kqueue=${have_kqueue}])
|
|
|
|
if test "x$want_kqueue" = "xyes" ; then
|
|
|
|
if test "x$have_kqueue" = "xyes"; then
|
|
|
|
AC_DEFINE([WITH_KQUEUE],[1])
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR("kqueue not found!")
|
|
|
|
fi
|
|
|
|
fi
|
2009-03-01 15:38:58 +00:00
|
|
|
|
2011-01-05 04:41:19 +00:00
|
|
|
AC_CHECK_HEADERS([sys/statvfs.h \
|
|
|
|
xfs/xfs.h])
|
2009-04-05 14:04:07 +00:00
|
|
|
|
2009-03-01 15:38:58 +00:00
|
|
|
|
2013-06-07 23:31:26 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl file monitoring for the daemon
|
|
|
|
|
|
|
|
# Check whether to enable systemd startup notification.
|
|
|
|
# This requires libsystemd-daemon.
|
|
|
|
AC_ARG_WITH([systemd-daemon], AS_HELP_STRING([--with-systemd-daemon],
|
2014-02-09 17:24:58 +00:00
|
|
|
[Add support for systemd startup notification (default is autodetected)]),
|
2013-06-07 23:31:26 +00:00
|
|
|
[USE_SYSTEMD_DAEMON=$withval], [USE_SYSTEMD_DAEMON=auto])
|
|
|
|
AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [
|
|
|
|
PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon],
|
|
|
|
[AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])],
|
|
|
|
[AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"],
|
|
|
|
[AC_MSG_ERROR([systemd startup notification support requested, but libsystemd-daemon not found.])]
|
|
|
|
)]
|
|
|
|
)
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2009-06-19 23:50:09 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl dht
|
|
|
|
|
2009-11-14 14:43:31 +00:00
|
|
|
DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
|
|
|
|
DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
|
2014-12-28 00:02:50 +00:00
|
|
|
DHT_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/dht/libdht.a"
|
2014-12-28 00:14:46 +00:00
|
|
|
build_bundled_dht="yes"
|
|
|
|
AC_ARG_ENABLE([external-dht],
|
|
|
|
AS_HELP_STRING([--enable-external-dht],[Use system external-dht]),
|
|
|
|
[want_external_dht=${enableval}],
|
|
|
|
[want_external_dht=no])
|
|
|
|
if test "x$want_external_dht" != "xno" ; then
|
|
|
|
dnl Would be lovely if it had pkgconfig
|
|
|
|
DHT_CFLAGS=""
|
|
|
|
DHT_LIBS="-ldht"
|
|
|
|
DHT_LIBS_QT="-ldht"
|
|
|
|
build_bundled_dht="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_DHT],[test "x$build_bundled_dht" = "xyes"])
|
2009-06-19 23:50:09 +00:00
|
|
|
AC_SUBST(DHT_CFLAGS)
|
|
|
|
AC_SUBST(DHT_LIBS)
|
2014-12-28 00:02:50 +00:00
|
|
|
AC_SUBST(DHT_LIBS_QT)
|
2009-06-19 23:50:09 +00:00
|
|
|
|
|
|
|
|
2015-01-01 21:16:36 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl libb64
|
|
|
|
|
|
|
|
LIBB64_CFLAGS="-I\$(top_srcdir)/third-party/libb64"
|
|
|
|
LIBB64_LIBS="\$(top_builddir)/third-party/libb64/libb64.a"
|
|
|
|
LIBB64_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libb64/libb64.a"
|
|
|
|
build_bundled_b64="yes"
|
|
|
|
AC_ARG_ENABLE([external-b64],
|
|
|
|
AS_HELP_STRING([--enable-external-b64],[Use system libb64]),
|
|
|
|
[want_external_b64=${enableval}],
|
|
|
|
[want_external_b64=no])
|
|
|
|
if test "x$want_external_b64" != "xno" ; then
|
2015-01-03 21:35:20 +00:00
|
|
|
LIBB64_CFLAGS="-DUSE_SYSTEM_B64"
|
2015-01-01 21:16:36 +00:00
|
|
|
LIBB64_LIBS="-lb64"
|
|
|
|
LIBB64_LIBS_QT="-lb64"
|
|
|
|
build_bundled_b64="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_B64],[test "x$build_bundled_b64" = "xyes"])
|
|
|
|
AC_SUBST(LIBB64_CFLAGS)
|
|
|
|
AC_SUBST(LIBB64_LIBS)
|
|
|
|
AC_SUBST(LIBB64_LIBS_QT)
|
|
|
|
|
|
|
|
|
2011-02-18 00:32:19 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl utp
|
|
|
|
|
2011-03-02 07:31:14 +00:00
|
|
|
AC_CHECK_LIB([rt],
|
|
|
|
[clock_gettime],
|
|
|
|
[libutp_extra_libs="-lrt"],
|
|
|
|
[libutp_extra_libs=""])
|
|
|
|
|
2011-02-25 01:44:32 +00:00
|
|
|
AC_MSG_CHECKING([µTP])
|
|
|
|
build_utp="no"
|
2014-12-27 23:21:01 +00:00
|
|
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lutp"
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([#include <libutp/utp.h>],
|
|
|
|
[struct UTPFunctionTable func;])],
|
|
|
|
[have_utp="yes"],
|
|
|
|
[have_utp="no"]
|
|
|
|
)
|
2014-12-27 23:33:51 +00:00
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
if test "x$have_utp" = "xyes" -o "x$CXX" != "x"; then
|
|
|
|
want_utp_default="yes"
|
|
|
|
else
|
|
|
|
want_utp_default="no"
|
|
|
|
fi
|
2014-12-27 23:21:01 +00:00
|
|
|
|
2011-02-18 00:45:44 +00:00
|
|
|
AC_ARG_ENABLE([utp],
|
|
|
|
AS_HELP_STRING([--enable-utp],[build µTP support]),
|
2011-02-25 01:44:32 +00:00
|
|
|
[want_utp=${enableval}],
|
2014-12-27 23:33:51 +00:00
|
|
|
[want_utp=${want_utp_default}])
|
2014-12-27 23:21:01 +00:00
|
|
|
if test "x$want_utp" = "xyes"; then
|
2012-02-03 16:44:07 +00:00
|
|
|
if test "x$have_utp" = "xyes"; then
|
2014-12-27 23:21:01 +00:00
|
|
|
dnl Would be lovely if it had pkgconfig
|
|
|
|
LIBUTP_CFLAGS=""
|
|
|
|
LIBUTP_LIBS="-lutp $libutp_extra_libs"
|
|
|
|
LIBUTP_LIBS_QT="-lutp $libutp_extra_libs"
|
|
|
|
AC_DEFINE([WITH_UTP],[1])
|
|
|
|
build_utp="system"
|
|
|
|
elif test "x$CXX" != "x"; then
|
2011-02-25 01:44:32 +00:00
|
|
|
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
|
2011-04-19 19:22:55 +00:00
|
|
|
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
|
2012-02-04 01:55:58 +00:00
|
|
|
LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
|
2011-10-09 02:05:52 +00:00
|
|
|
if test "x$libutp_extra_libs" != "x" ; then
|
|
|
|
LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
|
2012-02-04 01:55:58 +00:00
|
|
|
LIBUTP_LIBS_QT="$LIBUTP_LIBS_QT $libutp_extra_libs"
|
2011-10-09 02:05:52 +00:00
|
|
|
fi
|
2011-02-25 01:44:32 +00:00
|
|
|
AC_DEFINE([WITH_UTP],[1])
|
|
|
|
build_utp="yes"
|
2012-02-03 16:44:07 +00:00
|
|
|
else
|
|
|
|
AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found")
|
|
|
|
fi
|
|
|
|
fi
|
2011-02-18 00:32:19 +00:00
|
|
|
AC_SUBST(LIBUTP_CFLAGS)
|
|
|
|
AC_SUBST(LIBUTP_LIBS)
|
2012-02-04 01:55:58 +00:00
|
|
|
AC_SUBST(LIBUTP_LIBS_QT)
|
2011-02-18 00:45:44 +00:00
|
|
|
AM_CONDITIONAL([BUILD_UTP],[test "x$build_utp" = "xyes"])
|
2011-02-25 01:44:32 +00:00
|
|
|
AC_MSG_RESULT([$build_utp])
|
2011-02-18 00:32:19 +00:00
|
|
|
|
|
|
|
|
2011-10-09 02:05:52 +00:00
|
|
|
dnl
|
|
|
|
dnl look for preinstalled miniupnpc...
|
|
|
|
dnl
|
|
|
|
|
2012-02-03 16:44:07 +00:00
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lminiupnpc"
|
2014-04-27 19:31:10 +00:00
|
|
|
AC_MSG_CHECKING([system miniupnpc library])
|
|
|
|
|
|
|
|
dnl See if ANY version of miniupnpc is installed
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([#include <miniupnpc/miniupnpc.h>],
|
|
|
|
[struct UPNPDev dev;])],
|
|
|
|
[upnp_version="unknown"],
|
|
|
|
[upnp_version="none"]
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl Let's hope it's 1.7 or higher, since it provides
|
|
|
|
dnl MINIUPNPC_API_VERSION and we won't have to figure
|
|
|
|
dnl it out on our own
|
|
|
|
if test "x$upnp_version" = "xunknown" ; then
|
|
|
|
AC_RUN_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[#include <stdlib.h>
|
|
|
|
#include <miniupnpc/miniupnpc.h>],
|
|
|
|
[#ifdef MINIUPNPC_API_VERSION
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
#else
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
#endif]
|
|
|
|
)],
|
|
|
|
[upnp_version=">= 1.7"]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Or maybe it's miniupnp 1.6
|
|
|
|
if test "x$upnp_version" = "xunknown" ; then
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
2012-02-03 16:44:07 +00:00
|
|
|
#include <stdlib.h>
|
2014-04-27 19:31:10 +00:00
|
|
|
#include <errno.h>
|
2012-02-03 16:44:07 +00:00
|
|
|
#include <miniupnpc/miniupnpc.h>
|
|
|
|
#include <miniupnpc/upnpcommands.h>
|
2014-04-27 19:31:10 +00:00
|
|
|
]], [[
|
2012-02-03 16:44:07 +00:00
|
|
|
struct UPNPDev * devlist;
|
2014-04-27 19:31:10 +00:00
|
|
|
struct UPNPUrls urls;
|
|
|
|
struct IGDdatas data;
|
2012-02-03 16:44:07 +00:00
|
|
|
char lanaddr[16];
|
|
|
|
char portStr[8];
|
|
|
|
char intPort[8];
|
|
|
|
char intClient[16];
|
2014-04-27 19:31:10 +00:00
|
|
|
upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
|
2012-02-03 16:44:07 +00:00
|
|
|
UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
|
|
|
|
UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
|
2014-04-27 19:31:10 +00:00
|
|
|
portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
|
|
|
|
]])],[
|
2014-05-09 01:30:18 +00:00
|
|
|
AC_DEFINE(MINIUPNPC_API_VERSION, 8, [miniupnpc 1.6 has API version 8])
|
2014-04-27 19:31:10 +00:00
|
|
|
upnp_version="1.6"])
|
|
|
|
fi
|
2012-02-03 16:44:07 +00:00
|
|
|
|
2014-04-27 19:31:10 +00:00
|
|
|
dnl Or maybe it's miniupnp 1.5
|
|
|
|
if test "x$upnp_version" = "xunknown" ; then
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
2012-02-03 16:44:07 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <miniupnpc/miniupnpc.h>
|
|
|
|
#include <miniupnpc/upnpcommands.h>
|
2014-04-27 19:31:10 +00:00
|
|
|
]], [[
|
2012-02-03 16:44:07 +00:00
|
|
|
struct UPNPDev * devlist;
|
2014-04-27 19:31:10 +00:00
|
|
|
struct UPNPUrls urls;
|
|
|
|
struct IGDdatas data;
|
2012-02-03 16:44:07 +00:00
|
|
|
char lanaddr[16];
|
|
|
|
char portStr[8];
|
|
|
|
char intPort[8];
|
|
|
|
char intClient[16];
|
2014-04-27 19:31:10 +00:00
|
|
|
upnpDiscover( 2000, NULL, NULL, 0 );
|
2012-02-03 16:44:07 +00:00
|
|
|
UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
|
|
|
|
UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
|
2014-04-27 19:31:10 +00:00
|
|
|
portStr, "TCP", intClient, intPort );
|
|
|
|
]])],[
|
2014-05-09 01:30:18 +00:00
|
|
|
AC_DEFINE(MINIUPNPC_API_VERSION, 5, [miniupnpc 1.5 has API version 5])
|
2014-04-27 19:31:10 +00:00
|
|
|
upnp_version="1.5"])
|
|
|
|
fi
|
2011-10-09 02:05:52 +00:00
|
|
|
|
|
|
|
# ... and the results of our tests
|
2012-02-03 16:44:07 +00:00
|
|
|
LIBS="$ac_save_LIBS"
|
2011-10-09 02:05:52 +00:00
|
|
|
AC_MSG_RESULT([$upnp_version])
|
2012-02-03 16:44:07 +00:00
|
|
|
AM_CONDITIONAL([BUILD_MINIUPNP],[test "x$upnp_version" = "xnone"])
|
2011-10-09 02:05:52 +00:00
|
|
|
if test "x$upnp_version" = "xnone" ; then
|
2012-02-03 16:44:07 +00:00
|
|
|
LIBUPNP_CFLAGS="-I\$(top_srcdir)/third-party/"
|
|
|
|
LIBUPNP_LIBS="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
|
|
|
|
LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
|
2011-10-09 02:05:52 +00:00
|
|
|
else
|
2012-02-03 16:44:07 +00:00
|
|
|
AC_DEFINE([SYSTEM_MINIUPNP])
|
|
|
|
LIBUPNP_CFLAGS=""
|
|
|
|
LIBUPNP_LIBS="-lminiupnpc"
|
|
|
|
LIBUPNP_LIBS_QT="-lminiupnpc"
|
2011-10-09 02:05:52 +00:00
|
|
|
fi
|
2012-02-03 16:44:07 +00:00
|
|
|
AC_SUBST(LIBUPNP_CFLAGS)
|
|
|
|
AC_SUBST(LIBUPNP_LIBS)
|
|
|
|
AC_SUBST(LIBUPNP_LIBS_QT)
|
2011-10-09 02:05:52 +00:00
|
|
|
|
|
|
|
|
2012-02-04 01:28:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl Allow usage of system natpmp library
|
|
|
|
|
|
|
|
LIBNATPMP_CFLAGS="-I\$(top_srcdir)/third-party/libnatpmp/"
|
|
|
|
LIBNATPMP_LIBS="\$(top_builddir)/third-party/libnatpmp/libnatpmp.a"
|
|
|
|
LIBNATPMP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a"
|
|
|
|
build_bundled_natpmp="yes"
|
|
|
|
AC_ARG_ENABLE([external-natpmp],
|
|
|
|
AS_HELP_STRING([--enable-external-natpmp],[Use system external-natpmp]),
|
|
|
|
[want_external_natpmp=${enableval}],
|
|
|
|
[want_external_natpmp=no])
|
|
|
|
if test "x$want_external_natpmp" != "xno" ; then
|
|
|
|
dnl Would be lovely if it had pkgconfig
|
|
|
|
LIBNATPMP_CFLAGS=""
|
|
|
|
LIBNATPMP_LIBS="-lnatpmp"
|
|
|
|
LIBNATPMP_LIBS_QT="-lnatpmp"
|
|
|
|
build_bundled_natpmp="no"
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([BUILD_NATPMP],[test "x$build_bundled_natpmp" = "xyes"])
|
|
|
|
AC_SUBST(LIBNATPMP_CFLAGS)
|
|
|
|
AC_SUBST(LIBNATPMP_LIBS)
|
|
|
|
AC_SUBST(LIBNATPMP_LIBS_QT)
|
|
|
|
|
|
|
|
|
2007-07-18 23:04:26 +00:00
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
2007-07-19 14:06:50 +00:00
|
|
|
dnl detection for the GTK+ client
|
2007-07-18 23:04:26 +00:00
|
|
|
|
2012-02-03 16:44:07 +00:00
|
|
|
AC_ARG_ENABLE([nls],
|
2011-10-11 04:17:54 +00:00
|
|
|
[AS_HELP_STRING([--enable-nls],[enable native language support])],,
|
|
|
|
[enable_nls=yes])
|
2012-07-22 16:55:50 +00:00
|
|
|
PKG_CHECK_EXISTS([gtk+-3.0 >= $GTK_MINIMUM
|
|
|
|
glib-2.0 >= $GLIB_MINIMUM
|
|
|
|
gio-2.0 >= $GIO_MINIMUM,
|
|
|
|
gmodule-2.0 >= $GLIB_MINIMUM
|
|
|
|
gthread-2.0 >= $GLIB_MINIMUM],
|
|
|
|
[have_gtk=yes],
|
|
|
|
[have_gtk=no])
|
2012-09-22 22:23:04 +00:00
|
|
|
AC_ARG_WITH([gtk], AS_HELP_STRING([--with-gtk],[with Gtk]),
|
2012-07-14 19:26:55 +00:00
|
|
|
[with_gtk=$withval],
|
2012-07-22 16:55:50 +00:00
|
|
|
[with_gtk=$have_gtk])
|
2011-10-11 04:17:54 +00:00
|
|
|
AM_CONDITIONAL([BUILD_GTK],[test "x$with_gtk" = "xyes"])
|
2010-02-07 19:32:35 +00:00
|
|
|
use_libappindicator=no
|
2011-10-11 04:17:54 +00:00
|
|
|
if test "x$with_gtk" = "xyes" ; then
|
|
|
|
|
|
|
|
if test "x$enable_nls" = "xno" ; then
|
2011-11-08 20:49:20 +00:00
|
|
|
AC_MSG_ERROR("The gtk client cannot be built without nls support. Try adding either --enable-nls or --without-gtk" )
|
2011-10-11 04:17:54 +00:00
|
|
|
fi
|
|
|
|
|
2012-07-14 19:26:55 +00:00
|
|
|
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= $GTK_MINIMUM
|
|
|
|
glib-2.0 >= $GLIB_MINIMUM
|
|
|
|
gio-2.0 >= $GIO_MINIMUM,
|
|
|
|
gmodule-2.0 >= $GLIB_MINIMUM
|
|
|
|
gthread-2.0 >= $GLIB_MINIMUM])
|
|
|
|
PKG_CHECK_MODULES([LIBAPPINDICATOR],
|
|
|
|
[appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM],
|
|
|
|
[have_libappindicator=yes],
|
|
|
|
[have_libappindicator=no])
|
2010-04-01 22:17:52 +00:00
|
|
|
if test "x$have_libappindicator" = "xyes"; then
|
2011-10-11 04:17:54 +00:00
|
|
|
use_libappindicator=yes
|
2012-02-03 16:44:07 +00:00
|
|
|
AC_DEFINE([HAVE_LIBAPPINDICATOR], 1)
|
2011-10-11 04:17:54 +00:00
|
|
|
else
|
|
|
|
LIBAPPINDICATOR_CFLAGS=
|
|
|
|
LIBAPPINDICATOR_LIBS=
|
2010-02-07 19:32:35 +00:00
|
|
|
fi
|
2008-04-13 02:56:26 +00:00
|
|
|
fi
|
|
|
|
|
2009-06-23 14:15:23 +00:00
|
|
|
dnl This section is only used for internationalization.
|
|
|
|
dnl If you don't need translations and this section gives you trouble --
|
|
|
|
dnl such as if you're building for a headless system --
|
|
|
|
dnl it's okay to tear this section out and re-build the configure script.
|
2009-06-24 14:58:27 +00:00
|
|
|
dnl
|
|
|
|
dnl Note to packagers: the bump to intltool 0.40 was made to fix
|
|
|
|
dnl a "make check" failure on some systems. if upgrading to 0.40 is
|
|
|
|
dnl a problem and the old version was working fine for you,
|
|
|
|
dnl it should be safe to re-edit 0.40 back down to 0.23
|
|
|
|
|
2008-12-03 14:44:52 +00:00
|
|
|
use_nls=no
|
|
|
|
if test "x$enable_nls" = "xyes" ; then
|
|
|
|
use_nls=yes
|
2012-02-03 17:28:48 +00:00
|
|
|
m4_ifdef([IT_PROG_INTLTOOL],
|
|
|
|
[IT_PROG_INTLTOOL([0.35.0],[no-xml])],
|
|
|
|
[AC_MSG_ERROR("--enable-nls requires intltool to be installed.")])
|
2008-12-03 14:44:52 +00:00
|
|
|
AC_CHECK_HEADERS([libintl.h])
|
2010-08-05 12:57:54 +00:00
|
|
|
GETTEXT_PACKAGE=transmission-gtk
|
2008-12-03 14:44:52 +00:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
|
|
|
|
AC_SUBST(transmissionlocaledir)
|
|
|
|
fi
|
2010-02-26 16:51:27 +00:00
|
|
|
AC_SUBST(INTLLIBS)
|
2008-01-13 17:29:50 +00:00
|
|
|
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl platform-specific stuff.
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
2008-01-13 17:29:50 +00:00
|
|
|
have_darwin="no"
|
|
|
|
have_msw="no"
|
2007-07-18 23:04:26 +00:00
|
|
|
case $host_os in
|
|
|
|
|
2009-08-09 18:04:33 +00:00
|
|
|
*mingw32*)
|
2008-01-13 17:29:50 +00:00
|
|
|
have_msw="yes"
|
2007-07-18 23:04:26 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
|
2014-12-13 15:22:39 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DWIN32_LEAN_AND_MEAN"
|
2014-12-13 16:00:14 +00:00
|
|
|
# CPPFLAGS="$CPPFLAGS -D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1"
|
2010-06-22 00:12:52 +00:00
|
|
|
LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
|
2007-07-18 23:04:26 +00:00
|
|
|
transmissionlocaledir="locale"
|
|
|
|
if test -z "$host_alias"; then
|
|
|
|
hostaliaswindres=
|
|
|
|
else
|
|
|
|
hostaliaswindres="$host_alias-windres";
|
|
|
|
fi
|
2008-09-06 04:31:08 +00:00
|
|
|
AC_CHECK_TOOL(WINDRES, windres)
|
2007-07-18 23:04:26 +00:00
|
|
|
;;
|
|
|
|
|
2007-07-19 01:30:45 +00:00
|
|
|
*darwin*)
|
2008-01-13 17:29:50 +00:00
|
|
|
have_darwin="yes"
|
2007-07-18 23:04:26 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
2008-01-13 17:29:50 +00:00
|
|
|
|
2011-01-27 03:53:02 +00:00
|
|
|
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"])
|
2012-02-03 16:44:07 +00:00
|
|
|
if test "x$enable_lightweight" = "xyes" ; then
|
2011-01-27 03:53:02 +00:00
|
|
|
AC_DEFINE([TR_LIGHTWEIGHT],[1],[optimize libtransmission for low-resource systems])
|
2012-02-03 16:44:07 +00:00
|
|
|
fi
|
2011-01-27 03:53:02 +00:00
|
|
|
|
2008-01-13 17:29:50 +00:00
|
|
|
AC_ARG_ENABLE([cli],
|
2008-12-16 21:56:13 +00:00
|
|
|
[AS_HELP_STRING([--enable-cli],[build command-line client])],
|
2008-01-13 17:29:50 +00:00
|
|
|
[build_cli=${enableval}],
|
|
|
|
[build_cli="yes"])
|
|
|
|
AM_CONDITIONAL([BUILD_CLI],[test "x$build_cli" = "xyes"])
|
|
|
|
|
2008-08-15 21:01:02 +00:00
|
|
|
AC_ARG_ENABLE([mac],
|
2009-07-17 12:36:40 +00:00
|
|
|
[AS_HELP_STRING([--enable-mac],[build Mac client])],
|
2008-08-15 21:01:02 +00:00
|
|
|
[build_mac=${enableval}],
|
|
|
|
[build_mac=${have_darwin}])
|
|
|
|
AM_CONDITIONAL([BUILD_MAC],[test "x$build_mac" = "xyes"])
|
2008-01-13 17:29:50 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE([daemon],
|
2008-12-16 21:56:13 +00:00
|
|
|
[AS_HELP_STRING([--enable-daemon],[build daemon])],
|
2008-01-13 17:29:50 +00:00
|
|
|
[build_daemon=${enableval}],
|
|
|
|
[build_daemon="yes"])
|
|
|
|
AM_CONDITIONAL([BUILD_DAEMON],[test "x$build_daemon" = "xyes"])
|
|
|
|
|
|
|
|
|
2010-01-29 19:11:56 +00:00
|
|
|
if test "x$build_mac" = "xyes" ; then
|
2013-10-27 19:31:36 +00:00
|
|
|
AC_DEFINE([BUILD_MAC_CLIENT], 1)
|
2010-01-29 19:11:56 +00:00
|
|
|
# Make sure the proper Mac SDK is installed
|
|
|
|
if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
|
|
|
|
cat << EOF
|
|
|
|
You need to install the Mac OS X 10.5 SDK in order to build Transmission
|
|
|
|
with --enable-mac:
|
|
|
|
Get your Xcode CD or package
|
|
|
|
Restart the install
|
|
|
|
When it gets to "Installation Type", select "Customize"
|
|
|
|
Select "Mac OS X 10.5 SDK" under "Cross Development"
|
|
|
|
Finish the install.
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2008-09-05 15:13:03 +00:00
|
|
|
AM_CONDITIONAL(WIN32, test "x$have_msw" = "xyes")
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl
|
|
|
|
dnl Generate the output
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
2010-08-05 12:57:54 +00:00
|
|
|
transmission-gtk.spec
|
2007-07-18 23:04:26 +00:00
|
|
|
cli/Makefile
|
|
|
|
daemon/Makefile
|
2010-08-02 02:49:52 +00:00
|
|
|
extras/Makefile
|
2007-07-18 23:04:26 +00:00
|
|
|
libtransmission/Makefile
|
2010-06-16 14:27:24 +00:00
|
|
|
utils/Makefile
|
2007-08-14 19:26:49 +00:00
|
|
|
third-party/Makefile
|
2009-05-19 18:38:26 +00:00
|
|
|
third-party/dht/Makefile
|
2015-01-01 21:16:36 +00:00
|
|
|
third-party/libb64/Makefile
|
2011-10-10 20:23:24 +00:00
|
|
|
third-party/libutp/Makefile
|
|
|
|
third-party/libnatpmp/Makefile
|
|
|
|
third-party/miniupnp/Makefile
|
2007-07-18 23:04:26 +00:00
|
|
|
macosx/Makefile
|
2007-11-01 19:14:40 +00:00
|
|
|
gtk/Makefile
|
2008-02-07 20:02:06 +00:00
|
|
|
gtk/icons/Makefile
|
2012-02-04 01:55:58 +00:00
|
|
|
qt/config.pri
|
2009-12-15 16:24:03 +00:00
|
|
|
web/Makefile
|
|
|
|
web/images/Makefile
|
2011-10-14 22:24:23 +00:00
|
|
|
web/style/Makefile
|
|
|
|
web/style/jqueryui/Makefile
|
|
|
|
web/style/jqueryui/images/Makefile
|
|
|
|
web/style/transmission/Makefile
|
|
|
|
web/style/transmission/images/Makefile
|
|
|
|
web/style/transmission/images/buttons/Makefile
|
2009-12-15 16:24:03 +00:00
|
|
|
web/javascript/Makefile
|
|
|
|
web/javascript/jquery/Makefile
|
2007-11-01 19:14:40 +00:00
|
|
|
po/Makefile.in])
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
echo "
|
|
|
|
|
|
|
|
Configuration:
|
|
|
|
|
2010-03-15 15:30:48 +00:00
|
|
|
Source code location: ${srcdir}
|
|
|
|
Compiler: ${CXX}
|
2010-02-15 14:39:04 +00:00
|
|
|
|
2011-01-27 03:53:02 +00:00
|
|
|
Build libtransmission: yes
|
|
|
|
* optimized for low-resource systems: ${enable_lightweight}
|
2011-02-18 00:45:44 +00:00
|
|
|
* µTP enabled: ${build_utp}
|
2015-01-07 02:04:08 +00:00
|
|
|
* crypto library: ${CRYPTO_PKG}
|
2011-01-27 03:53:02 +00:00
|
|
|
|
2010-03-15 15:30:48 +00:00
|
|
|
Build Command-Line client: ${build_cli}
|
2010-02-15 14:39:04 +00:00
|
|
|
|
2012-07-14 19:26:55 +00:00
|
|
|
Build GTK+ client: ${with_gtk}
|
2010-05-25 19:46:28 +00:00
|
|
|
* libappindicator for an Ubuntu-style tray: ${use_libappindicator}
|
2010-03-15 15:30:48 +00:00
|
|
|
|
|
|
|
Build Daemon: ${build_daemon}
|
|
|
|
|
|
|
|
Build Mac client: ${build_mac}
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
"
|