https://bugs.winehq.org/show_bug.cgi?id=31836
--- Comment #38 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Rafał Mużyło from comment #37)
The way I read wine's configure.ac and glibconfig.h, the check you really want here is slightly different and in a slightly different position.
Namely, first the checks AC_CHECK_HEADER/AC_CHECK_LIB should run. Then, if they succeed, the next check to run would be AC_COMPILE_IFELSE for 'GLIB_SIZEOF_LONG == sizeof(long)'. If that fails, you want to AC_MSG_ERROR right here, cause this would mean exactly that the mentioned toolchain mistake took place.
I'd happily approve of a patch to improve this detection and its diagnostic message. I'd probably go with a warning instead of an error, since many distros don't ship 32-bit gstreamer and I don't want to kill those builds because they happen to have 64-bit gstreamer installed.