3
# It should not be necessary to edit this file. The configuration for
4
# BerkeleyDB is controlled from the file config.in
7
BEGIN { die "BerkeleyDB needs Perl 5.004_04 or greater" if $] < 5.004_04 ; }
10
use ExtUtils::MakeMaker ;
13
# Check for the presence of sfio
14
if ($Config{'d_sfio'}) {
17
WARNING: Perl seems to have been built with SFIO support enabled.
18
Please read the SFIO Notes in the README file.
39
# OS2 is a special case, so check for it now.
41
$OS2 = "-DOS2" if $^O eq 'os2' ;
45
LIBS => ["-L${LIB_DIR} $LIBS"],
46
#MAN3PODS => {}, # Pods will be built by installman.
48
VERSION_FROM => 'BerkeleyDB.pm',
49
XSPROTOARG => '-noprototypes',
51
#'macro' => { INSTALLDIRS => 'perl' },
52
'dist' => {COMPRESS=>'gzip', SUFFIX=>'gz'},
54
? (ABSTRACT_FROM => 'BerkeleyDB.pod',
55
AUTHOR => 'Paul Marquess <Paul.Marquess@btinternet.com>')
63
$(NAME).pod: $(NAME).pod.P t/examples.t.T t/examples3.t.T mkpod
80
my @Options = qw( INCLUDE LIB DBNAME ) ;
81
my %ValidOption = map {$_, 1} @Options ;
82
my %Parsed = %ValidOption ;
83
my $CONFIG = 'config.in' ;
85
print "Parsing $CONFIG...\n" ;
87
# DBNAME is optional, so pretend it has been parsed.
88
delete $Parsed{'DBNAME'} ;
90
open(F, "$CONFIG") or die "Cannot open file $CONFIG: $!\n" ;
93
next if /^\s*$/ or /^\s*#/ ;
96
($k, $v) = split(/\s+=\s+/, $_, 2) ;
98
if ($ValidOption{$k}) {
108
print "Unknown keys in $CONFIG ignored [@badkey]\n"
111
# check parsed values
113
die "The following keys are missing from $CONFIG file: [@missing]\n"
114
if @missing = keys %Parsed ;
116
$INC_DIR = $ENV{'BERKELEYDB_INCLUDE'} || $Info{'INCLUDE'} ;
117
$LIB_DIR = $ENV{'BERKELEYDB_LIB'} || $Info{'LIB'} ;
118
$DB_NAME = $Info{'DBNAME'} if defined $Info{'DBNAME'} ;
119
print "Looks Good.\n" ;
123
# end of file Makefile.PL