Paul D. Smith writes:

> Bruno, do you have any thoughts on how we could _safely_ auto-detect a
> "good" gettext implementation?  I think it would be satisfactory to
> detect a version of GNU gettext, and brand all other versions "bad",

That's good enough, yes. You can detect GNU gettext by checking for an
external variable '_nl_msg_cat_cntr', by compiling

int main ()
{
  extern int _nl_msg_cat_cntr;
  int x = _nl_msg_cat_cntr;
}

Bruno

Reply via email to