From 5087a6a9244066f966b1d213142258f01a4bbd13 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Aug 2021 13:45:30 +0900 Subject: Fix COROUTINE_SRC on emscripten Select the C source if exists, otherwise the assembler source, instead of selecting by the coroutine type. --- configure.ac | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 755e556ac1..2449887301 100644 --- a/configure.ac +++ b/configure.ac @@ -2573,14 +2573,9 @@ AS_CASE([$coroutine_type], [yes|''], [ COROUTINE_H=coroutine/$coroutine_type/Context.h AS_IF([test ! -f "$srcdir/$COROUTINE_H"], [AC_MSG_ERROR('$coroutine_type' is not supported as coroutine)]) -AS_CASE([$coroutine_type], - [ucontext|pthread], [ - COROUTINE_SRC=coroutine/$coroutine_type/Context.c - ], - [ - COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)' - ] -) +COROUTINE_SRC=coroutine/$coroutine_type/Context.c +AS_IF([test ! -f "$srcdir/$COROUTINE_SRC"], + [COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)']) AC_DEFINE_UNQUOTED(COROUTINE_H, ["$COROUTINE_H"]) AC_SUBST(X_COROUTINE_H, [$COROUTINE_H]) AC_SUBST(X_COROUTINE_SRC, [$COROUTINE_SRC]) -- cgit v1.2.3