This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The metaconfig unit change for #7950.
[metaconfig.git] / U / modified / stdchar.U
1 ?RCS: $Id: stdchar.U,v 3.0 1993/08/18 12:09:52 ram Exp $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
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 Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.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
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 : see what type of char stdio uses.
28 echo " "
29 if $contains 'unsigned.*char.*_ptr;' `./findhdr stdio.h` >/dev/null 2>&1 ; then
30         echo "Your stdio uses unsigned chars." >&4
31         stdchar="unsigned char"
32 else
33         : Solaris 7+
34         if $contains 'unsigned.*char.*_ptr;' `./findhdr stdio_impl.h` >/dev/null 2>&1 ; then
35                 echo "Your stdio uses unsigned chars." >&4
36                 stdchar="unsigned char"
37         else
38                 echo "Your stdio uses signed chars." >&4
39                 stdchar="char"
40         fi
41 fi
42