branch Attitude Adjustment packages
[12.09/packages.git] / net / rtorrent / patches / 100-fix-cross_compile.patch
1 Index: rtorrent-0.8.6/scripts/common.m4
2 ===================================================================
3 --- rtorrent-0.8.6.orig/scripts/common.m4
4 +++ rtorrent-0.8.6/scripts/common.m4
5 @@ -184,7 +184,7 @@ AC_DEFUN([TORRENT_CHECK_MADVISE], [
6  AC_DEFUN([TORRENT_CHECK_EXECINFO], [
7    AC_MSG_CHECKING(for execinfo.h)
8  
9 -  AC_RUN_IFELSE(
10 +  AC_LINK_IFELSE(
11      [[#include <execinfo.h>
12        int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
13      ]],
14 @@ -199,7 +199,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
15  AC_DEFUN([TORRENT_CHECK_ALIGNED], [
16    AC_MSG_CHECKING(the byte alignment)
17  
18 -  AC_RUN_IFELSE(
19 +  AC_LINK_IFELSE(
20      [[#include <inttypes.h>
21        int main() {
22          char buf[8] = { 0, 0, 0, 0, 1, 0, 0, 0 };