1 From c4cc0ba76c81e1967c648be423f5f0312ac9d87f Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Mon, 5 Oct 2015 00:40:25 +0100
4 Subject: [PATCH] Fix cross compilation, based on OpenWRT patch.
6 [Vincent: tweak the patch for version 0.13.6]
8 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
12 scripts/checks.m4 | 2 +-
13 scripts/common.m4 | 4 ++--
14 3 files changed, 3 insertions(+), 4 deletions(-)
16 diff --git a/configure.ac b/configure.ac
17 index ba994ee..7696466 100644
20 @@ -19,7 +19,6 @@ AC_SUBST(LIBTORRENT_INTERFACE_VERSION_NO)
23 AC_CONFIG_HEADERS(config.h)
24 -AM_PATH_CPPUNIT(1.9.6)
28 diff --git a/scripts/checks.m4 b/scripts/checks.m4
29 index 598f39b..0e5abe0 100644
30 --- a/scripts/checks.m4
31 +++ b/scripts/checks.m4
32 @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
33 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
34 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
36 - AC_RUN_IFELSE([AC_LANG_SOURCE([
37 + AC_LINK_IFELSE([AC_LANG_SOURCE([
41 diff --git a/scripts/common.m4 b/scripts/common.m4
42 index 5127624..cc68269 100644
43 --- a/scripts/common.m4
44 +++ b/scripts/common.m4
45 @@ -223,7 +223,7 @@ dnl Need to fix this so that it uses the stuff defined by the system.
46 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
47 AC_MSG_CHECKING(for execinfo.h)
49 - AC_RUN_IFELSE([AC_LANG_SOURCE([
50 + AC_LINK_IFELSE([AC_LANG_SOURCE([
52 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
54 @@ -238,7 +238,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
55 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
56 AC_MSG_CHECKING(the byte alignment)
58 - AC_RUN_IFELSE([AC_LANG_SOURCE([
59 + AC_LINK_IFELSE([AC_LANG_SOURCE([
62 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };