http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56779
--- Comment #16 from Marc Glisse <glisse at gcc dot gnu.org> --- > AC_SEARCH_LIBS(gettext, intl, [], USE_NLS=no) seems a bit crude, as it results in this link test: #ifdef __cplusplus extern "C" #endif char gettext (); int main () { return gettext (); ; return 0; } when here we would need something closer to: #include <libintl.h> int main (int argc, char**argv) { gettext(argv[0]); return 0; } so that if libintl.h redirects gettext to libintl_gettext the link test is for the right symbol.