Index: "b/M:\\repo\\mingw-w64-libgpg-error\\libgpg-error-1.15\\configure.ac =================================================================== --- "b/M:\\repo\\mingw-w64-libgpg-error\\libgpg-error-1.15\\configure.ac +++ "b/M:\\repo\\mingw-w64-libgpg-error\\libgpg-error-1.15\\configure.ac @@ -521,3 +521,38 @@ *** G10EOF fi + +STR_TEST_FAILED=no +AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include +typedef struct +{ + long _vers; + union { + volatile char _priv[8]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#pragma pack(push, 8) +typedef struct +{ + long vers; + volatile long initdone; + volatile long started; + CRITICAL_SECTION csec; +} _gpgrt_lock_t; +#pragma pack(pop) + + int main() { + return (sizeof (gpgrt_lock_t) < sizeof (_gpgrt_lock_t)) ? 1 : 0; + } + ]])],[ac_cv_sin_port_size=long],[STR_TEST_FAILED=yes],[]) +echo "TEST FAILED=$STR_TEST_FAILED" +if test $STR_TEST_FAILED == "yes"; then +AC_MSG_ERROR([[ +*** +*** STR_TEST_FAILED !!!! +***]]) +fi \ No newline at end of file