1 ?RCS: $Id: d_linuxstd.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
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.
11 ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
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
17 ?MAKE:d_linuxstd: d_stdstdio cppstdin cppflags cppminus \
18 contains rm Setvar Findhdr
19 ?MAKE: -pick add $@ %<
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.
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.
29 ?H:#$d_linuxstd USE_LINUX_STDIO /**/
33 : see if stdio is like that in linux
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
45 echo "You don't have linux stdio, either." >&4