"Unknown Type Name" build failure(s) — clang 2.9

Some type detections are failing or wrong assumptions were made. For example, with strace, old configure are doing some tests on the bool (stdbool.h) declaration but fails on:
conftest.c:84:16: error: initializer element is not a compile-time constant
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Provided by the macro AC_HEADER_STDBOOL but removed in recent release of autoconf
PackageVersionSupposed error messageFull log Bug report
beid 3.5.2.dfsg-10src/winscarp/winscarp.cpp:75:13: error: unknown type name 'SCARD_READERSTATE_A'; did you mean 'SCARD_READERSTATE'? Log
blender 2.58-svn37702-1string2.h:969:1: error: unknown type name '__extern_inline' Log
curves 0.8.19./cvs.h:83:3: error: unknown type name 'VOIDPINT' Log
elilo 3.12-4efibind.h:88:9: error: unknown type name 'uint64_t' Log
fgrun 1.5.2-1./wizard.h:331:3: error: unknown type name 'string' Log
g-wrap 1.9.13-2inttypes.h:298:8: error: unknown type name 'intmax_t' Log
gnome-alsamixer 0.9.7~cvs.20060916.ds.1-2gnome-app-helper.h:620:2: error: unknown type name 'GtkCallbackMarshal' Log
gnu-efi 3.0i-3../../lib/../inc/ia32/efibind.h:88:9: error: unknown type name 'uint64_t' Log
gnupg2 2.0.18-1inttypes.h:298:8: error: unknown type name 'intmax_t' Log
gnusound 0.7.5-3gnome-app-helper.h:620:2: error: unknown type name 'GtkCallbackMarshal' Log
gtklp 1.2.7-2.1./gtklp.h:99:8: error: unknown type name 'ppd_file_t'; did you mean 'cups_file_t'? Log
homebank 4.3-1./ui_account.h:30:38: error: unknown type name 'GtkComboBoxEntry' Log
htcheck 1:2.0.0~rc1-2postypes.h:216:12: error: unknown type name '_Bool' n/a
kdenlive 0.8-4src.h:127:32: error: unknown type name 'uint'; did you mean 'int'? Log
kexec-tools 1:2.0.2-2stdint-gcc.h:60:9: error: unknown type name '__INT_LEAST8_TYPE__' n/a
libjavascript-perl 1.16-3jsalloc.h:46:1: error: unknown type name 'namespace' Log
mediatomb 0.12.1-2../src/zmm/object.h:51:32: error: unknown type name 'size_t' Log
pound 2.5-1./pound.h:340:5: error: unknown type name 'LHASH'; did you mean '_LHASH'? Log
rcs-blame 1.3.1-1inttypes.h:298:8: error: unknown type name 'intmax_t' Log
refit 0.14-2efibind.h:88:9: error: unknown type name 'uint64_t' Log
strace 4.5.20-2.3../strace.c:101:8: error: unknown type name 'bool' Log
xawtv 3.95.dfsg.1-8.2x11/blit.c:43:8: error: unknown type name 'bool' Log
xoscope 2.0-3.1./gtkdatabox.h:103:50: error: unknown type name 'GtkRuler' Log
xpp 1.5-cvs20050828-1.1./xpp.h:101:3: error: unknown type name 'ppd_file_t'; did you mean 'cups_file_t'? Log

24 errors