1Using AC_RUN_IFELSE prevent people from configuring package for 2cross-compiling. Don't run code while configuring package. 3 4Upstream-Status: Pending 5Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> 6 7Index: git/scripts/common.m4 8=================================================================== 9--- git.orig/scripts/common.m4 10+++ git/scripts/common.m4 11@@ -153,7 +153,7 @@ dnl Need to fix this so that it uses t 12 AC_DEFUN([TORRENT_CHECK_EXECINFO], [ 13 AC_MSG_CHECKING(for execinfo.h) 14 15- AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 16+ AC_LINK_IFELSE([AC_LANG_SOURCE([ 17 #include <execinfo.h> 18 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;} 19 ])], 20@@ -168,7 +168,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [ 21 AC_DEFUN([TORRENT_CHECK_ALIGNED], [ 22 AC_MSG_CHECKING(the byte alignment) 23 24- AC_RUN_IFELSE([AC_LANG_SOURCE([ 25+ AC_LINK_IFELSE([AC_LANG_SOURCE([ 26 #include <inttypes.h> 27 int main() { 28 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 }; 29