This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove trailing whitespace on meta-lines in unit files
[metaconfig.git] / dist / U / d_sgndchr.U
1 ?RCS: $Id$
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: d_sgndchr.U,v $
12 ?RCS: Revision 3.0.1.2  1997/02/28  15:44:25  ram
13 ?RCS: patch61: added a ?F: metalint hint
14 ?RCS:
15 ?RCS: Revision 3.0.1.1  1995/07/25  14:00:24  ram
16 ?RCS: patch56: made cc and ccflags optional dependencies
17 ?RCS:
18 ?RCS: Revision 3.0  1993/08/18  12:07:16  ram
19 ?RCS: Baseline for dist 3.0 netwide release.
20 ?RCS:
21 ?MAKE:d_sgndchr: cat rm +cc +ccflags Setvar
22 ?MAKE:  -pick add $@ %<
23 ?S:d_sgndchr:
24 ?S:     This variable conditionally defines the SIGNEDCHAR symbol, which
25 ?S:     indicates to the C program that signed characters are available.
26 ?S:.
27 ?C:SIGNEDCHAR:
28 ?C:     This symbol, if defined, indicates that characters are a signed type.
29 ?C:     If not defined, things declared as signed characters (and that make
30 ?C:     use of negative values) should probably be declared as shorts instead.
31 ?C:.
32 ?H:#$d_sgndchr SIGNEDCHAR       /**/
33 ?H:.
34 ?F:!try
35 ?LINT:set d_sgndchr
36 : check for signed chars
37 echo " "
38 echo "Checking to see if your C compiler can do signed chars..." >&4
39 $cat >try.c <<'EOCP'
40 int main()
41 {
42         char c = 0;
43
44         c--;
45         exit(c >= 0);
46 }
47 EOCP
48 $cc $ccflags -o try try.c
49 if ./try; then
50         val="$define"
51         echo "It certainly can."
52 else
53         val="$undef"
54         echo "It can't.  I'll have to make some things type short."
55 fi
56 set d_sgndchr
57 eval $setvar
58 $rm -f try*
59