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 / i_gdbm.U
CommitLineData
d8875586
MBT
1?RCS: $Id: i_gdbm.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_gdbm.U,v $
12?RCS: Revision 3.0.1.1 1995/05/12 12:16:39 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:19 ram
16?RCS: Baseline for dist 3.0 netwide release.
17?RCS:
18?MAKE:i_gdbm: Inhdr Inlibc Setvar
19?MAKE: -pick add $@ %<
20?S:i_gdbm (d_gdbm):
21?S: This variable conditionally defines the I_GDBM symbol, which
22?S: indicates to the C program that <gdbm.h> exists and should
23?S: be included.
24?S:.
25?C:I_GDBM (HAS_GDBM):
26?C: This symbol, if defined, indicates that <gdbm.h> exists and should
27?C: be included.
28?C:.
29?H:#$i_gdbm I_GDBM /**/
30?H:.
31?T:t_gdbm d_gdbm_open
32?LINT:set i_gdbm
33: see if gdbm.h is available
34?X: t_gdbm is a tentative check. We might just have the .h, not the lib -- ADO
35set gdbm.h t_gdbm
36eval $inhdr
37case "$t_gdbm" in
38$define)
39 : see if gdbm_open exists
40 set gdbm_open d_gdbm_open
41 eval $inlibc
42 case "$d_gdbm_open" in
43 $undef)
44 t_gdbm="$undef"
45 echo "We won't be including <gdbm.h>"
46 ;;
47 esac
48 ;;
49esac
50val="$t_gdbm"
51set i_gdbm
52eval $setvar
53