This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
5f4f198c657dcb1678a4fc158c09f7147b5b5f42
[metaconfig.git] / U / modified / i_grp.U
1 ?RCS: $Id: i_grp.U,v 3.0 1993/08/18 12:08:20 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: GRPASSWD detection added by Andy Dougherty  July 14, 1998.
12 ?RCS:
13 ?RCS: $Log: i_grp.U,v $
14 ?RCS: Revision 3.0  1993/08/18  12:08:20  ram
15 ?RCS: Baseline for dist 3.0 netwide release.
16 ?RCS:
17 ?MAKE:i_grp d_grpasswd: \
18         contains rm cppstdin cppflags cppminus Inhdr Findhdr Setvar
19 ?MAKE:  -pick add $@ %<
20 ?S:i_grp:
21 ?S:     This variable conditionally defines the I_GRP symbol, and indicates
22 ?S:     whether a C program should include <grp.h>.
23 ?S:.
24 ?S:d_grpasswd:
25 ?S:     This variable conditionally defines GRPASSWD, which indicates
26 ?S:     that struct group in <grp.h> contains gr_passwd.
27 ?S:.
28 ?C:I_GRP:
29 ?C:     This symbol, if defined, indicates to the C program that it should
30 ?C:     include <grp.h>.
31 ?C:.
32 ?C:GRPASSWD:
33 ?C:     This symbol, if defined, indicates to the C program that struct group
34 ?C:     in <grp.h> contains gr_passwd.
35 ?C:.
36 ?H:#$i_grp I_GRP                /**/
37 ?H:#$d_grpasswd GRPASSWD        /**/
38 ?H:.
39 ?LINT:set i_grp d_grpasswd
40 ?T: xxx
41 : see if this is an grp system
42 set grp.h i_grp
43 eval $inhdr
44
45 case "$i_grp" in
46 $define)
47         xxx=`./findhdr grp.h`
48         $cppstdin $cppflags $cppminus < $xxx >$$.h
49
50         if $contains 'gr_passwd' $$.h >/dev/null 2>&1; then
51                 val="$define"
52         else
53                 val="$undef"
54         fi
55         set d_grpasswd
56         eval $setvar
57
58         $rm -f $$.h
59         ;;
60 *)
61         val="$undef";
62         set d_grpasswd; eval $setvar
63         ;;
64 esac
65