--- gentoo-0.20.7.orig/configure 2026-10-18 06:35:58.419559424 +0200 +++ gentoo-0.20.7/configure 2026-10-18 06:35:58.428593953 +0200 @@ -5784,10 +5784,18 @@ bitstest=`cat <&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int st_size_is_64[sizeof(((struct stat *)0)->st_size) >= 8 ? 1 : -1]; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + bits=64 +else + bits=32 +fi +rm -f conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5809,7 +5817,18 @@ $as_echo_n "checking again, with -D_FILE CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" bits="test failed" if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int st_size_is_64[sizeof(((struct stat *)0)->st_size) >= 8 ? 1 : -1]; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + bits=64 +else CPPFLAGS=$oldflags +fi +rm -f conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */