summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fc65234..87a1375 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2472,7 +2472,10 @@ AS_CASE([$rb_cv_coroutine], [yes|''], [
rb_cv_coroutine=emscripten
],
[
- rb_cv_coroutine=ucontext
+ AC_CHECK_FUNCS([getcontext swapcontext makecontext],
+ [rb_cv_coroutine=ucontext],
+ [rb_cv_coroutine=copy; break]
+ )
]
)
AC_MSG_RESULT(${rb_cv_coroutine})