This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / d_linuxstd.U
CommitLineData
d8875586
MBT
1?RCS: $Id: d_linuxstd.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 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 4.0.
10?RCS:
11?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
12?RCS:
13?RCS: $Log: d_linuxstd.U,v $
14?RCS: Revision 3.0.1.1 1994/10/29 16:14:05 ram
15?RCS: patch36: created by ADO
16?RCS:
17?MAKE:d_linuxstd: d_stdstdio cppstdin cppflags cppminus \
18 contains rm Setvar Findhdr
19?MAKE: -pick add $@ %<
20?S:d_linuxstd:
21?S: This variable conditionally defines USE_LINUX_STDIO if this system
22?S: has a FILE structure declaring _IO_read_base, _IO_read_ptr,
23?S: and _IO_read_end in stdio.h.
24?S:.
25?C:USE_LINUX_STDIO:
26?C: This symbol is defined if this system has a FILE structure declaring
27?C: _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
28?C:.
29?H:#$d_linuxstd USE_LINUX_STDIO /**/
30?H:.
31?T:xxx
32?LINT:set d_linuxstd
33: see if stdio is like that in linux
34case "$d_stdstdio" in
35"$undef")
36 echo " "
37 xxx=`./findhdr stdio.h`
38 $cppstdin $cppflags $cppminus < "$xxx" > stdio.E
39 if $contains 'char.*_IO_read_base' stdio.E >/dev/null 2>&1 && \
40 $contains '_IO_read_ptr' stdio.E >/dev/null 2>&1 && \
41 $contains '_IO_read_end' stdio.E >/dev/null 2>&1 ; then
42 echo "Your stdio looks like linux." >&4
43 val="$define"
44 else
45 echo "You don't have linux stdio, either." >&4
46 val="$undef"
47 fi
48 $rm -f stdio.E
49 ;;
50*) val="$undef" ;;
51esac
52
53set d_linuxstd
54eval $setvar
55