This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add socklen_t probe; Configure maintenance.
[perl5.git] / ext / DB_File / Makefile.PL
CommitLineData
88108326
PP
1use ExtUtils::MakeMaker 5.16 ;
2use Config ;
3
4# OS2 is a special case, so check for it now.
5my $OS2 = "-DOS2" if $Config{'osname'} eq 'os2' ;
8e07c86e 6
1f70e1ea
PM
7my $LIB = "-ldb" ;
8# so is win32
9$LIB = "-llibdb" if $^O eq 'MSWin32' ;
10
8e07c86e 11WriteMakefile(
88108326 12 NAME => 'DB_File',
1f70e1ea 13 LIBS => ["-L/usr/local/lib $LIB"],
69158f75 14 MAN3PODS => {}, # Pods will be built by installman.
88108326 15 #INC => '-I/usr/local/include',
c07a80fd 16 VERSION_FROM => 'DB_File.pm',
039d031f 17 OBJECT => 'version$(OBJ_EXT) DB_File$(OBJ_EXT)',
88108326 18 XSPROTOARG => '-noprototypes',
6570f784 19 DEFINE => $OS2 || "",
88108326 20 );
8e07c86e 21
039d031f
PM
22sub MY::postamble {
23 '
24version$(OBJ_EXT): version.c
25
26' ;
27}
28