getlocalename_l-unsafe: New module. * lib/getlocalename_l-unsafe.h: New file, based on lib/getlocalename_l.c. * lib/getlocalename_l-unsafe.c: New file. * lib/getlocalename_l.c: Most code moved to lib/getlocalename_l-unsafe.c. (getlocalename_l): Implement based on getlocalename_l_unsafe. * m4/getlocalename_l.m4 (gl_FUNC_GETLOCALENAME_L_UNSAFE, gl_PREREQ_GETLOCALENAME_L_UNSAFE): New macros. (gl_FUNC_GETLOCALENAME_L_SIMPLE): Require gl_FUNC_GETLOCALENAME_L_UNSAFE. (gl_PREREQ_GETLOCALENAME_L_SIMPLE): Now empty. * modules/getlocalename_l-unsafe: New file. * modules/getlocalename_l-simple (Files): Remove lib/localename-table.h, lib/localename-table.c, m4/intl-thread-locale.m4. (Depends-on): Add getlocalename_l-unsafe. Remove setlocale-messages, setlocale-null, free-posix. (Makefile.am): Don't compile localename-table.c.