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 / i_ndbm.U
1 ?RCS: $Id: i_ndbm.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: $Log: i_ndbm.U,v $
12 ?RCS: Revision 3.0.1.1  1995/05/12  12:16:53  ram
13 ?RCS: patch54: made more robust by checking both header and lib (ADO)
14 ?RCS:
15 ?RCS: Revision 3.0  1993/08/18  12:08:23  ram
16 ?RCS: Baseline for dist 3.0 netwide release.
17 ?RCS:
18 ?MAKE:i_ndbm: Inhdr Inlibc Setvar
19 ?MAKE:  -pick add $@ %<
20 ?S:i_ndbm (d_ndbm):
21 ?S:     This variable conditionally defines the I_NDBM symbol, which
22 ?S:     indicates to the C program that <ndbm.h> exists and should
23 ?S:     be included.
24 ?S:.
25 ?C:I_NDBM (HAS_NDBM NDBM):
26 ?C:     This symbol, if defined, indicates that <ndbm.h> exists and should
27 ?C:     be included.
28 ?C:.
29 ?H:#$i_ndbm I_NDBM      /**/
30 ?H:.
31 ?T:t_ndbm d_dbm_open
32 ?LINT:set i_ndbm
33 : see if ndbm.h is available
34 ?X: t_ndbm is a tentative check.  We might just have the .h, not the lib -- ADO
35 set ndbm.h t_ndbm
36 eval $inhdr
37 case "$t_ndbm" in
38 $define)
39         : see if dbm_open exists
40         set dbm_open d_dbm_open
41         eval $inlibc
42         case "$d_dbm_open" in
43         $undef)
44                 t_ndbm="$undef"
45                 echo "We won't be including <ndbm.h>"
46                 ;;
47         esac
48         ;;
49 esac
50 val="$t_ndbm"
51 set i_ndbm
52 eval $setvar
53