blob: b8d8b9a5a88b324ef8976929cd54749149e72cdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: i_sysfile.U,v $
?RCS: Revision 3.0.1.2 1995/07/25 14:11:36 ram
?RCS: patch56: removed <> characters from comment, per metalint suggestion
?RCS:
?RCS: Revision 3.0.1.1 1993/08/25 14:01:23 ram
?RCS: patch6: added default for i_sysfile
?RCS:
?RCS: Revision 3.0 1993/08/18 12:08:31 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:i_sysfile: h_sysfile Inhdr Setvar
?MAKE: -pick add $@ %<
?S:i_sysfile:
?S: This variable conditionally defines the I_SYS_FILE symbol, and indicates
?S: whether a C program should include <sys/file.h> to get R_OK and friends.
?S:.
?C:I_SYS_FILE (I_SYSFILE):
?C: This symbol, if defined, indicates to the C program that it should
?C: include <sys/file.h> to get definition of R_OK and friends.
?C:.
?H:#$i_sysfile I_SYS_FILE /**/
?H:.
?T:val
?D:i_sysfile=''
?LINT:change h_sysfile
?LINT:set i_sysfile
: see if this is a sys/file.h system
val=''
set sys/file.h val
eval $inhdr
: do we need to include sys/file.h ?
case "$val" in
"$define")
echo " "
if $h_sysfile; then
val="$define"
echo "We'll be including <sys/file.h>." >&4
else
val="$undef"
echo "We won't be including <sys/file.h>." >&4
fi
;;
*)
h_sysfile=false
;;
esac
set i_sysfile
eval $setvar
|