This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[UTIL] Perl system does not default to $_
[metaconfig.git] / dist / U / d_statblks.U
CommitLineData
c6667804 1?RCS: $Id$
d8875586
MBT
2?RCS:
3?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4?RCS:
c6667804 5?RCS: You may redistribute only under the terms of the Artistic License,
d8875586
MBT
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
c6667804 8?RCS: that same Artistic License; a copy of which may be found at the root
d8875586
MBT
9?RCS: of the source tree for dist 4.0.
10?RCS:
11?RCS: $Log: d_statblks.U,v $
12?RCS: Revision 3.0 1993/08/18 12:07:29 ram
13?RCS: Baseline for dist 3.0 netwide release.
14?RCS:
15?MAKE:d_statblks: contains Setvar Findhdr
16?MAKE: -pick add $@ %<
17?S:d_statblks:
18?S: This variable conditionally defines USE_STAT_BLOCKS if this system
19?S: has a stat structure declaring st_blksize and st_blocks.
20?S:.
21?C:USE_STAT_BLOCKS (STATBLOCKS):
22?C: This symbol is defined if this system has a stat structure declaring
23?C: st_blksize and st_blocks.
24?C:.
25?H:#$d_statblks USE_STAT_BLOCKS /**/
26?H:.
27?T:xxx
28?LINT:set d_statblks
29: see if stat knows about block sizes
30echo " "
31xxx=`./findhdr sys/stat.h`
32if $contains 'st_blocks;' "$xxx" >/dev/null 2>&1 ; then
33 if $contains 'st_blksize;' "$xxx" >/dev/null 2>&1 ; then
34 echo "Your stat() knows about block sizes." >&4
35 val="$define"
36 else
37 echo "Your stat() doesn't know about block sizes." >&4
38 val="$undef"
39 fi
40else
41 echo "Your stat() doesn't know about block sizes." >&4
42 val="$undef"
43fi
44set d_statblks
45eval $setvar
46