summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-05-23 15:17:18 +0200
committerLudovic Courtès <ludo@gnu.org>2012-05-23 15:17:18 +0200
commit2ce4a1ae88dca60bcc7a2b5eb0e75eb5ba021e57 (patch)
tree5cc768f7e75e9d7b4af1dc977faa7f2e6b72cdf1
parente7e267be016f23ed51ec4e68bd627683961553ca (diff)
downloadguile-2ce4a1ae88dca60bcc7a2b5eb0e75eb5ba021e57.tar.gz
configure: Provide guesses for `AC_RUN_IFELSE' tests when cross-compiling.
* configure.in: Define PTHREAD_ATTR_GETSTACK_WORKS when cross-compiling.
-rw-r--r--configure.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index b46f88f23..f0588417f 100644
--- a/configure.in
+++ b/configure.in
@@ -1446,11 +1446,18 @@ int main ()
#endif
]])],
[works=yes
-AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1], [Define when pthread_att_get_stack works for the main thread])],
-[works=no],
-[])
+ AC_MSG_RESULT([yes])],
+[works=no
+ AC_MSG_RESULT([no])],
+[works=yes
+ AC_MSG_RESULT([assuming it does])])
+
+if test "x$works" = "xyes"; then
+ AC_DEFINE(PTHREAD_ATTR_GETSTACK_WORKS, [1],
+ [Define when pthread_att_get_stack works for the main thread])
+fi
+
CFLAGS="$old_CFLAGS"
-AC_MSG_RESULT($works)
fi # with_threads=pthreads