rtorrent: import from packages and update to 0.9.4
[feed/packages.git] / net / rtorrent / patches / 100-fix-cross_compile.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -4,7 +4,6 @@ AC_DEFINE(API_VERSION, 8, api version)
4
5 AM_INIT_AUTOMAKE
6 AC_CONFIG_HEADERS(config.h)
7 -AM_PATH_CPPUNIT(1.9.6)
8
9 AC_PROG_CXX
10 AC_PROG_LIBTOOL
11 --- a/scripts/common.m4
12 +++ b/scripts/common.m4
13 @@ -223,7 +223,7 @@ dnl Need to fix this so that it uses t
14 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
15 AC_MSG_CHECKING(for execinfo.h)
16
17 - AC_RUN_IFELSE([AC_LANG_SOURCE([
18 + AC_LINK_IFELSE([AC_LANG_SOURCE([
19 #include <execinfo.h>
20 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
21 ])],
22 @@ -238,7 +238,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
23 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
24 AC_MSG_CHECKING(the byte alignment)
25
26 - AC_RUN_IFELSE([AC_LANG_SOURCE([
27 + AC_LINK_IFELSE([AC_LANG_SOURCE([
28 #include <inttypes.h>
29 int main() {
30 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };