--- Python-3.12.2/configure.ac.~6~ Tue Feb 20 09:37:41 2024 +++ Python-3.12.2/configure.ac Tue Feb 20 09:44:29 2024 @@ -540,6 +540,7 @@ # ac_sys_system and ac_sys_release are used for setting # a lot of different things including 'define_xopen_source' # in the case statement below. + ac_sys_release= case "$host" in *-*-linux-android*) ac_sys_system=Linux-android @@ -559,12 +560,15 @@ *-*-wasi) ac_sys_system=WASI ;; + *-*-solaris*) + ac_sys_system=SunOS + ac_sys_release=5.11 + ;; *) # for now, limit cross builds to known configurations MACHDEP="unknown" AC_MSG_ERROR([cross build not supported for $host]) esac - ac_sys_release= else ac_sys_system=`uname -s` if test "$ac_sys_system" = "AIX" \ @@ -619,6 +623,16 @@ wasm32-*-* | wasm64-*-*) _host_cpu=$host_cpu ;; + *-*-solaris*) + case "$host_cpu" in + aarch64*) + _host_cpu=arm + ;; + *) + _host_cpu=$host_cpu + esac + ;; + *) # for now, limit cross builds to known configurations MACHDEP="unknown" @@ -1100,6 +1114,14 @@ # else # error unknown wasm64 platform # endif +#elif defined(__illumos__) +# if defined(__x86_64__) + x86_64-pc-solaris2 +# elif defined(__aarch64__) + aarch64-unknown-solaris2 +# else +# error unknown illumos platform +# endif #else # error unknown platform triplet #endif