1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/local/bin/perl -sw
use ExtUtils::MakeMaker;
use Config;
eval {require DBI}; # The DBI must be installed before we can build a DBD
if ($@) {
warn q{Warning:
DBI.pm not found in @INC
You will not be able to build DBD::mSQL without prior installation
of the DBI module.
};
open MAKE, ">Makefile" or die "Couldn't open >Makefile: $!";
print MAKE q{
all:
test:
};
close MAKE;
die "Skipping make for DBD::mSQL";
} elsif ($DBI::VERSION < 0.84) {
warn q{WARNING from evaluation of DBD-mSQL/Makefile.PL:
DBI.pm version $DBI::VERSION too old
You will not be able to build DBD::mSQL without prior installation
of the DBI module version 0.84 or higher.
};
open MAKE, ">Makefile" or die "Couldn't open >Makefile: $!";
print MAKE q{
all:
test:
};
close MAKE;
die "Skipping make for DBD::mSQL";
}
WriteMakefile(
NAME => 'DBD::mSQL',
VERSION_FROM => '../lib/DBD/mSQL.pm',
OBJECT => qq[\$(O_FILES)],
SKIP => ['test'],
CONFIGURE => \&Msql::Config::initialize,
);
|