This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Put pthread in front of libswanted and add cl
[metaconfig.git] / U / modified / stdchar.U
1 ?RCS: $Id: stdchar.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS:
5 ?RCS: You may redistribute only under the terms of the Artistic License,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic License; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS:
11 ?RCS: $Log: stdchar.U,v $
12 ?RCS: Revision 3.0  1993/08/18  12:09:52  ram
13 ?RCS: Baseline for dist 3.0 netwide release.
14 ?RCS:
15 ?MAKE:stdchar: contains Findhdr cppstdin cppminus rm
16 ?MAKE:  -pick add $@ %<
17 ?S:stdchar:
18 ?S:     This variable conditionally defines STDCHAR to be the type of char
19 ?S:     used in stdio.h.  It has the values "unsigned char" or "char".
20 ?S:.
21 ?C:STDCHAR:
22 ?C:     This symbol is defined to be the type of char used in stdio.h.
23 ?C:     It has the values "unsigned char" or "char".
24 ?C:.
25 ?H:#define STDCHAR $stdchar     /**/
26 ?H:.
27 ?F:!stdioh
28 : see what type of char stdio uses.
29 echo " "
30 ?X: untangle the #include nest
31 echo '#include <stdio.h>' | $cppstdin $cppminus > stdioh
32 if $contains 'unsigned.*char.*_ptr;' stdioh >/dev/null 2>&1 ; then
33         echo "Your stdio uses unsigned chars." >&4
34         stdchar="unsigned char"
35 else
36         echo "Your stdio uses signed chars." >&4
37         stdchar="char"
38 fi
39 $rm -f stdioh
40