--- Python-3.9.1/config.sub 2021-01-17 20:15:56.796000000 +0100 +++ Python-3.9.1/config.sub 2021-01-17 20:21:04.324828217 +0100 @@ -1485,6 +1485,8 @@ -oss*) os=-sysv3 ;; + -serenity*) + ;; -svr4*) os=-sysv4 ;; --- Python-3.9.1/configure.ac 2021-01-17 20:33:50.524295313 +0100 +++ Python-3.9.1/configure.ac 2021-01-17 20:34:24.631127320 +0100 @@ -382,6 +382,9 @@ # a lot of different things including 'define_xopen_source' # in the case statement below. case "$host" in + *-*-serenity*) + ac_sys_system=Serenity + ;; *-*-linux-android*) ac_sys_system=Linux-android ;; @@ -428,6 +431,9 @@ AC_SUBST(_PYTHON_HOST_PLATFORM) if test "$cross_compiling" = yes; then case "$host" in + *-*-serenity*) + _host_cpu=$host_cpu + ;; *-*-linux*) case "$host_cpu" in arm*) --- Python-3.9.1/configure 2021-01-17 20:35:39.813757019 +0100 +++ Python-3.9.1/configure 2021-01-17 20:36:00.538654942 +0100 @@ -3292,6 +3292,9 @@ # a lot of different things including 'define_xopen_source' # in the case statement below. case "$host" in + *-*-serenity*) + ac_sys_system=Serenity + ;; *-*-linux-android*) ac_sys_system=Linux-android ;; @@ -3339,6 +3342,9 @@ if test "$cross_compiling" = yes; then case "$host" in + *-*-serenity*) + _host_cpu=$host_cpu + ;; *-*-linux*) case "$host_cpu" in arm*)