1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
|
|
use Config; |
4 |
|
|
|
5 |
root |
1.4 |
if ($^O =~ /win32/i or $^O =~ /mswin/) { |
6 |
|
|
|
7 |
|
|
# configuration on windows is hardcoded - as always |
8 |
|
|
|
9 |
|
|
warn "your platform is not standards-compliant, you have to port this module first\n"; |
10 |
|
|
warn "using some hardcoded config that will not work on your system\n"; |
11 |
|
|
|
12 |
|
|
$INC = "-I/Perl/lib/CORE -I/sdk/include -I/vc98/include -I/gtk/include -I/gtk/include/pango-1.0 -I/gtk/include/glib-2.0 -I/gtk/lib/glib-2.0/include/ -I/gtk/include/freetype2"; |
13 |
|
|
$LIBS = ["-L/gtk/lib -ldb44"]; # -lpthreadVC2"]; |
14 |
|
|
} else { |
15 |
|
|
$INC = ""; |
16 |
|
|
$LIBS = ['-lpthread -ldb'], |
17 |
|
|
} |
18 |
|
|
|
19 |
root |
1.1 |
if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
20 |
|
|
print <<EOF; |
21 |
|
|
|
22 |
|
|
*** |
23 |
|
|
*** WARNING: |
24 |
|
|
*** |
25 |
|
|
*** Your perl uses it's own memory allocator (-Dusemymalloc=y), |
26 |
|
|
*** which is known not to be threadsafe on GNU/Linux and probably |
27 |
|
|
*** other platforms (even when not used concurrently, it trashes |
28 |
|
|
*** the data structures of the system malloc running concurrently), |
29 |
|
|
*** for perls up to 5.8.8 and possibly later versions. |
30 |
|
|
*** |
31 |
|
|
*** If you are unsure wether your perl has been fixed, your system |
32 |
|
|
*** is safe for other reasons, or you experience spurious segfaults, |
33 |
|
|
*** please compile your perl with -Dusemymalloc=n. |
34 |
|
|
*** |
35 |
|
|
|
36 |
|
|
EOF |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
my $mm = MM->new({ |
40 |
|
|
dist => { |
41 |
|
|
PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
42 |
|
|
COMPRESS => 'gzip -9v', |
43 |
|
|
SUFFIX => '.gz', |
44 |
|
|
}, |
45 |
root |
1.2 |
NAME => "BDB", |
46 |
|
|
VERSION_FROM => "BDB.pm", |
47 |
root |
1.4 |
INC => $INC, |
48 |
|
|
LIBS => $LIBS, |
49 |
root |
1.1 |
PM => { |
50 |
root |
1.3 |
'BDB.pm' => '$(INST_LIBDIR)/BDB.pm', |
51 |
root |
1.1 |
}, |
52 |
|
|
}); |
53 |
|
|
|
54 |
|
|
$mm->flush; |
55 |
|
|
|