@@ -742,6 +742,7 @@ IPHONEOS_DEPLOYMENT_TARGET
742742EXPORT_MACOSX_DEPLOYMENT_TARGET
743743CONFIGURE_MACOSX_DEPLOYMENT_TARGET
744744_PYTHON_HOST_PLATFORM
745+ APP_STORE_COMPLIANCE_PATCH
745746INSTALLTARGETS
746747FRAMEWORKINSTALLAPPSPREFIX
747748FRAMEWORKUNIXTOOLSPREFIX
@@ -825,6 +826,7 @@ enable_universalsdk
825826with_universal_archs
826827with_framework_name
827828enable_framework
829+ with_app_store_compliance
828830with_cxx_main
829831with_suffix
830832enable_shared
@@ -1536,6 +1538,10 @@ Optional Packages:
15361538 specify the name for the python framework on macOS
15371539 only valid when --enable-framework is set. see
15381540 Mac/README.rst (default is 'Python')
1541+ --with-app-store-compliance=[PATCH-FILE]
1542+ Enable any patches required for compiliance with app
1543+ stores. Optional PATCH-FILE specifies the custom
1544+ patch to apply.
15391545 --with-cxx-main[=COMPILER]
15401546 compile main() and link Python executable with C++
15411547 compiler specified in COMPILER (default is $CXX)
@@ -3485,6 +3491,52 @@ cat >>confdefs.h <<_ACEOF
34853491_ACEOF
34863492
34873493
3494+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-app-store-compliance" >&5
3495+ $as_echo_n "checking for --with-app-store-compliance... " >&6; }
3496+
3497+ # Check whether --with-app_store_compliance was given.
3498+ if test "${with_app_store_compliance+set}" = set; then :
3499+ withval=$with_app_store_compliance;
3500+ case "$withval" in
3501+ yes)
3502+ case $ac_sys_system in
3503+ Darwin|iOS)
3504+ # iOS is able to share the macOS patch
3505+ APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
3506+ ;;
3507+ *) as_fn_error $? "no default app store compliance patch available for $ac_sys_system" "$LINENO" 5 ;;
3508+ esac
3509+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
3510+ $as_echo "applying default app store compliance patch" >&6; }
3511+ ;;
3512+ *)
3513+ APP_STORE_COMPLIANCE_PATCH="${withval}"
3514+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: applying custom app store compliance patch" >&5
3515+ $as_echo "applying custom app store compliance patch" >&6; }
3516+ ;;
3517+ esac
3518+
3519+ else
3520+
3521+ case $ac_sys_system in
3522+ iOS)
3523+ # Always apply the compliance patch on iOS; we can use the macOS patch
3524+ APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
3525+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
3526+ $as_echo "applying default app store compliance patch" >&6; }
3527+ ;;
3528+ *)
3529+ # No default app compliance patching on any other platform
3530+ APP_STORE_COMPLIANCE_PATCH=
3531+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not patching for app store compliance" >&5
3532+ $as_echo "not patching for app store compliance" >&6; }
3533+ ;;
3534+ esac
3535+
3536+ fi
3537+
3538+
3539+
34883540
34893541
34903542# Set name for machine-dependent library files
@@ -3580,12 +3632,12 @@ if test "$cross_compiling" = yes; then
35803632 _host_device=${_host_device:=os}
35813633
35823634 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
3583- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
3584- printf %s "checking iOS deployment target... " >&6; }
3635+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
3636+ $as_echo_n "checking iOS deployment target... " >&6; }
35853637 IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
35863638 IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
3587- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
3588- printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
3639+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
3640+ $as_echo "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
35893641
35903642 case "$host_cpu" in
35913643 aarch64)
0 commit comments