>From fc80796464b051294280bba5af8ee4c25bef7c70 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Thu, 15 Apr 2010 01:01:23 +0200 Subject: [PATCH] don't run the pthread_att_get_stack check when cross compiling --- configure.ac | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 73a4bd2..c6f480a 100644 --- a/configure.ac +++ b/configure.ac @@ -1413,6 +1413,7 @@ if test "$with_threads" = pthreads; then AC_MSG_CHECKING(whether pthread_attr_getstack works for the main thread) old_CFLAGS="$CFLAGS" CFLAGS="$PTHREAD_CFLAGS $CFLAGS" +if test "$cross_compiling" = "no"; then AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_PTHREAD_ATTR_GETSTACK #include @@ -1443,6 +1444,9 @@ int main () AC_DEFINE([PTHREAD_ATTR_GETSTACK_WORKS], [1], [Define when pthread_att_get_stack works for the main thread])], [works=no], []) +else +works=no +fi CFLAGS="$old_CFLAGS" AC_MSG_RESULT($works) -- 1.5.6.5