Backport of #1638: %zd configure test fails on Linux
3 files changed