-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
56 lines (44 loc) · 1.34 KB
/
Makefile.PL
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
48
49
50
51
52
53
54
55
56
use strict;
#use warnings;
use warnings FATAL => 'all';
#no warnings 'redefine';
use mod_perl2;
# XXX: need to check that the same perl is used as the one mod_perl
# was built with, otherwise unresolved symbols problems occur:
# e.g. try using mod_perl.so built with blead-perl and build the
# scoreboard with blead-ithreads-perl
#use Apache::Build ();
#my $build = Apache::Build->new;
#use lib qw(../lib ../Apache-Test/lib);
use ModPerl::MM ();
# enable 'make test|clean'
use Apache::TestMM qw(test clean);
# prerequisites
my %require = (
"Apache::Test" => "1.10", # ipv6 fixes
"mod_perl" => "2.00",
);
my @scripts = qw(t/TEST);
# accept the configs from command line
Apache::TestMM::filter_args();
Apache::TestMM::generate_script('t/TEST');
# get the apr header files, depending on where they are
my $apr_config = `which apr-config 2>/dev/null` || `which apr-1-config 2>/dev/null`;
chomp $apr_config;
my $apr_inc = `$apr_config --includedir`;
chomp $apr_inc;
my $extra_inc;
$extra_inc = "-I$apr_inc" if ($apr_inc);
ModPerl::MM::WriteMakefile(
NAME => 'Apache::Scoreboard',
VERSION_FROM => 'lib/Apache/Scoreboard.pm',
PREREQ_PM => \%require,
clean => {
FILES => "@{ clean_files() }",
},
INC => join " ", $extra_inc, ModPerl::MM::get_def_opt('INC'),
);
sub clean_files {
return \@scripts;
}
__END__