100-fix_cross_compile.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -19,7 +19,6 @@ AC_SUBST(LIBTORRENT_INTERFACE_VERSION_NO
  4. AM_INIT_AUTOMAKE
  5. AC_CONFIG_HEADERS(config.h)
  6. -AM_PATH_CPPUNIT(1.9.6)
  7. AC_PROG_CXX
  8. --- a/scripts/checks.m4
  9. +++ b/scripts/checks.m4
  10. @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
  11. AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
  12. AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
  13. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  14. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  15. #include <fcntl.h>
  16. #include <stdlib.h>
  17. #include <unistd.h>
  18. --- a/scripts/common.m4
  19. +++ b/scripts/common.m4
  20. @@ -153,7 +153,7 @@ dnl Need to fix this so that it uses t
  21. AC_DEFUN([TORRENT_CHECK_EXECINFO], [
  22. AC_MSG_CHECKING(for execinfo.h)
  23. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  24. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  25. #include <execinfo.h>
  26. int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
  27. ])],
  28. @@ -168,7 +168,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
  29. AC_DEFUN([TORRENT_CHECK_ALIGNED], [
  30. AC_MSG_CHECKING(the byte alignment)
  31. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  32. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  33. #include <inttypes.h>
  34. int main() {
  35. char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };