@@ -1850,7 +1850,7 @@ AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
18501850 LDFLAGS_NODIST="$LDFLAGS_NODIST -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s NODERAWFS=1 -s EXIT_RUNTIME=1 -s USE_PTHREADS -s PROXY_TO_PTHREAD"
18511851 CFLAGS_NODIST="$CFLAGS_NODIST -pthread"
18521852 ] ,
1853- [ WASI] , [
1853+ [ WASI/* ] , [
18541854 AC_DEFINE ( [ _WASI_EMULATED_SIGNAL] , [ 1] , [ Define to 1 if you want to emulate signals on WASI] )
18551855 LIBS="$LIBS -lwasi-emulated-signal"
18561856 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
@@ -6407,6 +6407,7 @@ dnl Use Modules/Setup.stdlib as additional provider?
64076407AC_MSG_CHECKING ( [ for additional Modules/Setup files] )
64086408AS_CASE ( [ $ac_sys_system] ,
64096409 [ Emscripten] , [ MODULES_SETUP_STDLIB=Modules/Setup.stdlib] ,
6410+ [ WASI] , [ MODULES_SETUP_STDLIB=Modules/Setup.stdlib] ,
64106411 [ MODULES_SETUP_STDLIB=]
64116412)
64126413AC_MSG_RESULT ( [ $MODULES_SETUP_STDLIB] )
@@ -6599,16 +6600,16 @@ dnl test modules
65996600PY_STDLIB_MOD([ _testcapi] , [ test "$TEST_MODULES" = yes] )
66006601PY_STDLIB_MOD([ _testinternalcapi] , [ test "$TEST_MODULES" = yes] )
66016602PY_STDLIB_MOD([ _testbuffer] , [ test "$TEST_MODULES" = yes] )
6602- PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] )
6603- PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] )
6603+ PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes ] )
6604+ PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes ] )
66046605PY_STDLIB_MOD([ _xxtestfuzz] , [ test "$TEST_MODULES" = yes] )
66056606PY_STDLIB_MOD([ _ctypes_test] , [ test "$TEST_MODULES" = yes] , [ ] , [ ] , [ -lm] )
66066607
66076608dnl Limited API template modules.
66086609dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
66096610dnl Emscripten does not support shared libraries yet.
6610- PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten" ] )
6611- PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten" ] )
6611+ PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen" = yes ] )
6612+ PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen" = yes ] )
66126613
66136614# substitute multiline block, must come after last PY_STDLIB_MOD()
66146615AC_SUBST ( [ MODULE_BLOCK] )
0 commit comments