When cross-compiling, avoid a check for __builtin_return_address

This commit is contained in:
Juan Jose Garcia Ripoll 2011-01-28 22:19:29 +01:00
parent 1214dfd8f6
commit e762cad053
2 changed files with 4 additions and 0 deletions

2
src/aclocal.m4 vendored
View file

@ -768,6 +768,7 @@ dnl --------------------------------------------------------------
dnl Determine whether GCC supports backtraces
dnl
AC_DEFUN([ECL_GCC_BACKTRACE],[
if test "x${cross_compiling}" != "xyes"; then
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
void *foo() { return __builtin_return_address(1); }
@ -776,6 +777,7 @@ AC_RUN_IFELSE(
}]])],
[AC_DEFINE(HAVE___BUILTIN_RETURN_ADDRESS)],
[])
fi
])
dnl ----------------------------------------------------------------------

2
src/configure vendored
View file

@ -9038,6 +9038,7 @@ $as_echo "#define ECL_SMALL_BYTECODES 1" >>confdefs.h
fi
if test "x${cross_compiling}" != "xyes"; then
if test "$cross_compiling" = yes; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
@ -9060,6 +9061,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
fi
if test "x${enable_threads}" != "xno"; then