File: Makefile.PL

package info (click to toggle)
msql-modules 0.91-7
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 248 kB
  • ctags: 142
  • sloc: perl: 1,144; ansic: 549; makefile: 72
file content (47 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (2)
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,
	     );