From 9deb83468c56c7484645e6e3a6d0183cd6a0afd7 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 1 Dec 2021 21:43:07 +0200 Subject: bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873) --- configure | 10 +++++++++- configure.ac | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 382e030..4dfd4a5 100755 --- a/configure +++ b/configure @@ -20268,7 +20268,15 @@ $as_echo_n "checking for ensurepip... " >&6; } if test "${with_ensurepip+set}" = set; then : withval=$with_ensurepip; else - with_ensurepip=upgrade + + case $ac_sys_system in #( + Emscripten) : + $with_ensurepip=no ;; #( + *) : + with_ensurepip=upgrade + ;; +esac + fi case $with_ensurepip in #( diff --git a/configure.ac b/configure.ac index 1e5fef3..38f943f 100644 --- a/configure.ac +++ b/configure.ac @@ -5871,7 +5871,12 @@ AC_ARG_WITH(ensurepip, [AS_HELP_STRING([--with-ensurepip@<:@=install|upgrade|no@:>@], ["install" or "upgrade" using bundled pip (default is upgrade)])], [], - [with_ensurepip=upgrade]) + [ + AS_CASE([$ac_sys_system], + [Emscripten], [$with_ensurepip=no], + [with_ensurepip=upgrade] + ) + ]) AS_CASE($with_ensurepip, [yes|upgrade],[ENSUREPIP=upgrade], [install],[ENSUREPIP=install], -- cgit v0.12