This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Metaconfig unit change for #7954.
[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 ?T:stdiohdr
28 : see what type of char stdio uses.
29 echo " "
30 if $contains 'unsigned.*char.*_ptr;' `./findhdr stdio.h` >/dev/null 2>&1 ; then
31         echo "Your stdio uses unsigned chars." >&4
32         stdchar="unsigned char"
33 else
34         : Solaris 7+, others?
35         stdiohdr=`./findhdr stdio_impl.h`
36         case "$stdiohdr" in
37         '') ;;
38         *)      if $contains 'unsigned.*char.*_ptr;' $stdiohdr >/dev/null 2>&1 ; then
39                         echo "Your stdio uses unsigned chars." >&4
40                         stdchar="unsigned char"
41                 else
42                         echo "Your stdio uses signed chars." >&4
43                         stdchar="char"
44                 fi
45                 ;;
46         esac
47 fi
48