This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / d_lc_monetary_2008.U
1 ?RCS: You may redistribute only under the terms of the Artistic License,
2 ?RCS: as specified in the README file that comes with the distribution.
3 ?RCS: You may reuse parts of this distribution only within the terms of
4 ?RCS: that same Artistic License; a copy of which may be found at the root
5 ?RCS: of the source tree for dist 3.0.
6 ?RCS:
7 ?MAKE:d_lc_monetary_2008: cat Compile rm_try d_locconv
8 ?MAKE:  -pick add $@ %<
9 ?S:d_lc_monetary_2008:
10 ?S:     This variable conditionally defines HAS_LC_MONETARY_2008 if libc
11 ?S:     has the international currency locale rules from POSIX
12 ?S:     1003.1-2008.
13 ?S:.
14 ?C:HAS_LC_MONETARY_2008:
15 ?C:     This symbol, if defined, indicates that the localeconv routine is
16 ?C:     available and has the additional members added in POSIX 1003.1-2008.
17 ?C:.
18 ?H:#$d_lc_monetary_2008 HAS_LC_MONETARY_2008            /**/
19 ?H:.
20 : see if libc has the POSIX.1-2008 currency locale rules
21 case "$d_locconv:$d_lc_monetary_2008" in
22 $define:)
23         $cat >try.c <<EOCP
24 #include <locale.h>
25 int main() {
26         struct lconv *lc = localeconv();
27         char int_p_cs_precedes = lc->int_p_cs_precedes;
28         return 0;
29 }
30 EOCP
31         set try
32         if eval $compile; then
33                 d_lc_monetary_2008="$define"
34         else
35                 d_lc_monetary_2008="$undef"
36         fi;
37         $rm_try
38         ;;
39 esac
40