>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