diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fc6523408b..87a13758f2 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}) |