This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix Copyright
[metaconfig.git] / U / perl / d_newlocale.U
1 ?RCS: You may distribute under the terms of either the GNU General Public
2 ?RCS: License or the Artistic License, as specified in the README file.
3 ?RCS:
4 ?MAKE:d_newlocale d_freelocale d_uselocale d_duplocale d_querylocale i_xlocale: Inlibc Inhdr
5 ?MAKE:  -pick add $@ %<
6 ?S:d_newlocale:
7 ?S:     This variable conditionally defines the HAS_NEWLOCALE symbol, which
8 ?S:     indicates to the C program that the newlocale() routine is available
9 ?S:     to return a new locale object or modify an existing locale object.
10 ?S:.
11 ?S:d_freelocale:
12 ?S:     This variable conditionally defines the HAS_FREELOCALE symbol, which
13 ?S:     indicates to the C program that the freelocale() routine is available
14 ?S:     to deallocates the resources associated with a locale object.
15 ?S:.
16 ?S:d_uselocale:
17 ?S:     This variable conditionally defines the HAS_USELOCALE symbol, which
18 ?S:     indicates to the C program that the uselocale() routine is available
19 ?S:     to set the current locale for the calling thread.
20 ?S:.
21 ?S:d_duplocale:
22 ?S:     This variable conditionally defines the HAS_DUPLOCALE symbol, which
23 ?S:     indicates to the C program that the duplocale() routine is available
24 ?S:     to duplicate a locale object.
25 ?S:.
26 ?S:d_querylocale:
27 ?S:     This variable conditionally defines the HAS_QUERYLOCALE symbol, which
28 ?S:     indicates to the C program that the querylocale() routine is available
29 ?S:     to return the name of the locale for a category mask.
30 ?S:.
31 ?S:i_xlocale:
32 ?S:     This symbol, if defined, indicates to the C program that it should
33 ?S:     include <xlocale.h> to get uselocale() and its friends
34 ?S:.
35 ?C:HAS_NEWLOCALE:
36 ?C:     This symbol, if defined, indicates that the newlocale routine is
37 ?C:     available to return a new locale object or modify an existing
38 ?C:     locale object.
39 ?C:.
40 ?C:HAS_FREELOCALE:
41 ?C:     This symbol, if defined, indicates that the freelocale routine is
42 ?C:     available to deallocates the resources associated with a locale object.
43 ?C:.
44 ?C:HAS_USELOCALE:
45 ?C:     This symbol, if defined, indicates that the uselocale routine is
46 ?C:     available to set the current locale for the calling thread.
47 ?C:.
48 ?C:HAS_DUPLOCALE:
49 ?C:     This symbol, if defined, indicates that the duplocale routine is
50 ?C:     available to duplicate a locale object.
51 ?C:.
52 ?C:HAS_QUERYLOCALE:
53 ?C:     This symbol, if defined, indicates that the querylocale routine is
54 ?C:     available to return the name of the locale for a category mask.
55 ?C:.
56 ?C:I_XLOCALE:
57 ?C:     This symbol, if defined, indicates to the C program that it should
58 ?C:     include <xlocale.h> to get uselocale() and its friends.
59 ?C:.
60 ?H:#$d_newlocale        HAS_NEWLOCALE   /**/
61 ?H:#$d_freelocale       HAS_FREELOCALE  /**/
62 ?H:#$d_uselocale        HAS_USELOCALE   /**/
63 ?H:#$d_duplocale        HAS_DUPLOCALE   /**/
64 ?H:#$d_querylocale      HAS_QUERYLOCALE /**/
65 ?H:#$i_xlocale  I_XLOCALE               /**/
66 ?H:.
67 ?LINT:set i_xlocale
68 ?LINT:set d_newlocale
69 ?LINT:set d_freelocale
70 ?LINT:set d_uselocale
71 ?LINT:set d_duplocale
72 ?LINT:set d_querylocale
73 : see if this is an xlocale.h system
74 set xlocale.h i_xlocale
75 eval $inhdr
76
77 : see if newlocale exists
78 set newlocale d_newlocale
79 eval $inlibc
80
81 : see if freelocale exists
82 set freelocale d_freelocale
83 eval $inlibc
84
85 : see if uselocale exists
86 set uselocale d_uselocale
87 eval $inlibc
88
89 : see if duplocale exists
90 set duplocale d_duplocale
91 eval $inlibc
92
93 : see if querylocale exists
94 set querylocale d_querylocale
95 eval $inlibc
96