Commit Graph

284 Commits (83691981e3a2d93a35e8e80b80e1175891799082)

Author SHA1 Message Date
Nils Maier aa02545fba Use mpz_pown_sec where available 2014-04-13 18:51:06 +02:00
Nils Maier ead6685b18 Warn (or error with explicit --with-libgmp) if gmp is not actually found 2014-04-13 18:51:06 +02:00
Nils Maier 7600886d3d Implement falloc equivalent in OSX 2014-04-12 02:55:31 +02:00
Tatsuhiro Tsujikawa 305ef84e5d Bump up version number to 1.18.5 2014-03-30 18:20:32 +09:00
Tatsuhiro Tsujikawa 1188e4f1a2 Fix mingw32 build with gcc 4.8.2
Now mingw-w64 C++ compiler defines __USE_MINGW_ANSI_STDIO to 1, we
have to follow it as well.  We hope that mingw version of stdio
function behaves like Linux ones.  We have not tested them thoroughly
yet.  pthread for windows defines its own HAVE_STRUCT_TIMESPEC macro.
To avoid warning, we rename our version of it as
HAVE_A2_STRUCT_TIMESPEC.
2014-03-24 00:37:30 +09:00
Tatsuhiro Tsujikawa 96ffc3dfd4 Bump up version number to 1.18.4 2014-03-23 21:35:15 +09:00
Ryo ONODERA f2fa24b418 Avoid bash way, improve posix shell portability 2014-01-23 21:36:22 +09:00
Tatsuhiro Tsujikawa b98a5d62b4 Bump up version number to 1.18.3 2014-01-05 19:01:12 +09:00
Tatsuhiro Tsujikawa 1be26c0ec3 Bump up version number to 1.18.2 2013-12-26 23:41:38 +09:00
Nils Maier 337d8ac929 Allow using libgmp with AppleTLS/WinTLS 2013-12-09 08:28:56 +01:00
Nils Maier 3096601ffe Fix static builds on darwin 2013-12-05 17:47:54 +01:00
Tatsuhiro Tsujikawa cdbd4f0095 Adjust libtool and linker flags
Since we use libtool, -static-libgcc and -static-libstdc++ are
stripped by libtool and not used. We just use -all-static libtool flag
for this purpose.

To create windows dll, it turns out that we need -no-undefined flag.
2013-10-24 00:13:05 +09:00
Tatsuhiro Tsujikawa 0d0a8a1c35 Bump up version number to 1.18.1 2013-10-20 22:03:10 +09:00
Nils Maier 00dd83b461 Implement WinTLS 2013-09-30 13:53:21 +02:00
Nils Maier 99f170b888 Provide internal ARC4 implementation
Now you can build bittorrent support without without external
libraries, meaning you can skip libnettle, libgmp, libgcrypt, GnuTLS and
OpenSSL on OSX (for now).
2013-09-24 19:11:26 +02:00
Nils Maier e854463b2d Internal implementation of DHKeyExchange
Reusing a bignum (well, unsigned very-long) implementation I had lying
around for years and just cleaned up a bit and brought to C++11 land.

It might not be the most performant implementation, but it shoud be fast
enough for our purposes and will go a long way of removing gcrypt,
nettle, gmp, openssl dependencies when using AppleTLS and WinTLS
(upcoming).
2013-09-24 19:11:00 +02:00
Nils Maier 7cb69c4d9e Add --disable-ssl configure option 2013-09-20 23:06:50 +02:00
Nils Maier 38bdea4e06 Add internal md5 and sha1 message digests 2013-09-20 23:06:50 +02:00
Nils Maier a1deb0e9f1 Only use AppleMessageDigest when using AppleTLS 2013-09-20 23:06:50 +02:00
Nils Maier a4e29303ef WinTLS: Implement messsage digest using the Cryptography Provider 2013-09-20 23:06:49 +02:00
Tatsuhiro Tsujikawa e3a41a51da Fix link error with Android NDK r9
Since Android ndk r9, __set_errno is deprecated. It is now defined as
inline function in errno.h. The syscall assembly calls __set_errno,
but since libc.so does not export it, the link fails. To workaround
this, replace all occurrences of __set_errno with a2_set_errno and
define it as normal C function.
2013-09-18 23:10:25 +09:00
Tatsuhiro Tsujikawa 4bd4aa2dc3 mingw: Deactivate __USE_MINGW_ANSI_STDIO
Deactivate __USE_MINGW_ANSI_STDIO because it causes lots of errors for
PRId64.
2013-09-10 01:25:28 +09:00
Tatsuhiro Tsujikawa 9a164bb4b1 Bump up version number to 1.18.0 2013-09-08 16:41:56 +09:00
Nils Maier 3b0ad59ee5 Use AM subdir-objects
Doing so in AM_INIT_AUTOMAKE seems to be the most compatible way of
doing so.

Closes GH-120
2013-08-25 16:17:05 +02:00
Nils Maier c3b42da8d9 AM_SILENT_RULES([yes]) with backwards-compatiblity
Supported since automake-1.11. There is no point in having the very
verbose compile stuff running about, which cannot even silenced properly
with `make -s` by default. Otherwise, `make V=1` or
`--disable-silent-rules` are your friends
2013-08-24 19:44:12 +02:00
Nils Maier a3f86f313e Fix automake-1.14 am_aux_dir
AC_USE_SYSTEM_EXTENSIONS will cause AC_PROG_CC, which is overridden by
automake-1.14, which will then init (part) of automake, in particular
am_aux_dir expansion, which in turn relies on ac_aux-dir, which is not
initialized at this point, and thus: certain doom (or fun, depending on
your POV and mood :p)

Hence call AC_USE_SYSTEM_EXTENSIONS only after AM_INIT_AUTOMAKE. This,
of course, caused a lot of related macro shuffling.

Tested against automake-1.10 (OSX Lion/XCode version) and automake-1.14
(homebrew version)
2013-08-24 19:43:28 +02:00
Nils Maier 2dd14236a3 Require external gettext for --enable-nls
And stop using the internal flavor with ./intl
2013-08-24 10:51:21 +02:00
Nils Maier b888088dc3 Make the configure check for C++11 compiler mandatory
Remove stray "dnl", so that mandatory actually works with (my)
autoreconf.
2013-08-21 23:19:01 +02:00
Nils Maier 322bd45cfb Check for sphinx-build during configure 2013-08-18 05:27:17 +02:00
Nils Maier a982dee961 Switch CA_BUNDLE to AC_DEFINE 2013-08-16 22:32:16 +02:00
Nils Maier 303f987ee9 Add --with-disk-cache configure option
Enables packagers more fine grained control over the default value
without having to mess with config files.

See GH-115
2013-08-16 22:31:56 +02:00
Nils Maier 90c39522a2 Libuv: Compatiblity fix with master 2013-08-16 22:29:14 +02:00
Tatsuhiro Tsujikawa 28d5c7408f Check that C++ compiler supports override keyword
If the compiler supports override, define CXX11_OVERRIDE as override,
otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
2013-07-06 15:54:03 +09:00
Tatsuhiro Tsujikawa d1a17e5ef3 Use AX_CXX_COMPILE_STDCXX_11 macro to detect C++0x/C++11 support in compiler 2013-06-22 21:43:31 +09:00
Tatsuhiro Tsujikawa 07d270c87e Require -std=c++11 and use std::shared_ptr instead of SharedHandle 2013-06-22 01:10:38 +09:00
Tatsuhiro Tsujikawa 61a830c905 Bump up version 1.17.1 2013-05-18 19:01:40 +09:00
Tatsuhiro Tsujikawa 13e064e4e1 Add code to detect rst2html.py or rst2html 2013-05-17 21:38:51 +09:00
Tatsuhiro Tsujikawa 5bc5665c6a Support off64_t for Android build
Android NDK R8e does not provide ftruncate64, but bionic has the
assembler code to access kernel function. We borrowed those
ftruncate64.S files from android source code repository.  It turns out
that x86 asm.h in NDK R8e is also broken, so latest asm.h was also
borrowed.
2013-05-06 19:12:17 +09:00
Tatsuhiro Tsujikawa 774e1b8a10 Check zlib availability usin AC_CHECK_LIB
This is workaround for zlib 1.2.3 which does not come with pkg-config
file.
2013-05-05 17:31:41 +09:00
Tatsuhiro Tsujikawa 1b920e4011 Add --enable-libaria2 configure option
By default, libaria2 feature is disabled. Use --enable-libaria2
to enable it. libaria2 static build is also disabled by default.
Use --enable-static to enable it.
2013-05-05 00:37:11 +09:00
Tatsuhiro Tsujikawa 2bf2dba544 Merge branch 'libaria2' 2013-05-05 00:13:17 +09:00
Tatsuhiro Tsujikawa b886ade311 Merge branch 'mallocs' of https://github.com/nmaier/aria2 into nmaier-mallocs 2013-05-01 11:32:04 +09:00
Nils Maier cc8b006a8e mallocs: Remove bogus pkg-config _LDFLAGS lines 2013-04-30 21:55:13 +02:00
Tatsuhiro Tsujikawa db2e22132d Merge branch 'libuv-eventpoll' of https://github.com/nmaier/aria2 into nmaier-libuv-eventpoll 2013-04-30 14:53:42 +09:00
Nils Maier d2c1fbd792 Add configure support for linking tcmalloc_minimal and/or jemalloc
Both tcmalloc_minimal and jemalloc outperform the native malloc
implemention on Windows (MSVCRT) in terms of committed memory
consumption (~-30%) and performance (e.g. far less page faults, ~-60%),
depending, of course, on the actual workload.
The longer the download queue, the bigger the impact ;)

On *nix the picture is a little different... tcmalloc usually still
outperforms the native malloc implementation, but not that significantly
than on Windows. jemalloc however is only marginally better than recent
native Linux implementations, while it is already used by some BSD as the
native allocator.

tcmalloc is part of gperftools and very mature and tested by now. It
doesn't work on OSX in the default configuration, however.
http://code.google.com/p/gperftools/

jemalloc is the default allocator at least on FreeBSD and NetBSD and
used in Firefox.
http://www.canonware.com/jemalloc/index.html
2013-04-28 21:35:22 +02:00
Tatsuhiro Tsujikawa bbb978948d Add preliminary libtool files for libaria2 2013-04-25 11:38:26 +09:00
Tatsuhiro Tsujikawa e548a1a225 Add missing check for sigaction 2013-04-25 11:38:02 +09:00
Nils Maier 0cccc2d27a Libuv: Proper configure detection 2013-04-17 15:53:24 +02:00
Tatsuhiro Tsujikawa 71713709e5 Bump up version number to 1.17.0 2013-04-16 21:30:28 +09:00
Tatsuhiro Tsujikawa 994eb551f1 Append --static to pkg-config arguments when ARIA2_STATIC=yes 2013-04-13 00:47:38 +09:00