build: check for per-thread locale support
Allows fixing and cleaning up per-thread locale support in Manager and libboinc. locale.h and xlocale.h were checked for libboinc_graphics. Move xlocale.h check to correct place and remove locale.h check. locale.h has been part of C standard library since C89. The support for per-thread locales cannot be reliably inferred from the existence of different headers. Some systems declare uselocale() in locale.h, others in xlocale.h and xlocale.h is no longer included in GNU libc. Instead explicitly check for uselocale() and _configthreadlocale(). Add uselocale() check result to Mac config.h so that the #ifdef mazes can be simplified. Also correct quoting in AC_CHECK_FUNCS and AC_CHECK_HEADERS calls.
Showing with 6 additions and 3 deletions