Handle newlib C library's langinfo constant names
authorMichael Gran <spk121@yahoo.com>
Sun, 24 Feb 2019 00:33:50 +0000 (16:33 -0800)
committerMichael Gran <spk121@yahoo.com>
Sun, 24 Feb 2019 00:33:50 +0000 (16:33 -0800)
commit92105d13ad1363b511214589b7d62d95304beb17
treedce678d260679afdd928d40fc86a8fd98211f893
parent9ba449643d4c2ac1d2174befca7d765af222bcc0
Handle newlib C library's langinfo constant names

The newlib C library (used in Cygwin) has alternative names for
nl_langinfo GNU extensions

* configure.ac (_NL_NUMERIC_GROUPING): new test
* libguile/i18n.c (INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP)
   (MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, GROUPING, INT_FRAC_DIGITS)
   (FRAC_DIGITS, P_CS_PRECEDES, P_SEP_BY_SPACE, N_CS_PRECEDES, N_SEP_BY_SPACE)
   (P_SIGN_POSN, N_SIGN_POSN, INT_P_CS_PRECEDES, INT_P_SEP_BY_SPACE)
   (INT_N_CS_PRECEDES, INT_N_SEP_BY_SPACE, INT_P_SIGN_POSN, INT_N_SIGN_POSN)
   [HAVE_DECL__NL_NUMERIC_GROUPING]: map to newlib C constants, when present
configure.ac
libguile/i18n.c