perl 5.0 alpha 9
[p5sagit/p5-mst-13.2.git] / U / d_isascii.U
CommitLineData
2304df62 1?RCS: $Id: d_isascii.U,v 3.0 1993/08/18 12:06:44 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: d_isascii.U,v $
12?RCS: Revision 3.0 1993/08/18 12:06:44 ram
13?RCS: Baseline for dist 3.0 netwide release.
14?RCS:
85e6fe83 15?MAKE:d_isascii: cc cat cppflags rm Setvar Findhdr
2304df62 16?MAKE: -pick add $@ %<
17?S:d_isascii:
18?S: This variable conditionally defines the HAS_ISASCII manifest constant,
19?S: which indicates to the C program that isascii() is available.
20?S:.
21?C:HAS_ISASCII (ISASCII):
22?C: This manifest constant lets the C program know that the
23?C: isascii is available.
24?C:.
25?H:#$d_isascii HAS_ISASCII /**/
26?H:.
27?LINT:set d_isascii
28: Look for isascii
29echo " "
30$cat >isascii.c <<'EOCP'
31#include <stdio.h>
32#include <ctype.h>
33main() {
34 int c = 'A';
35 if (isascii(c))
36 exit(0);
37 else
38 exit(1);
39}
40EOCP
41if $cc $cppflags -o isascii isascii.c >/dev/null 2>&1 ; then
42 echo "isascii() found."
43 val="$define"
44else
45 echo "isascii() NOT found."
46 val="$undef"
47fi
48set d_isascii
49eval $setvar
50$rm -f isascii*