… | |
… | |
2 | |
2 | |
3 | use Config; |
3 | use Config; |
4 | |
4 | |
5 | require "autoconf.pm"; |
5 | require "autoconf.pm"; |
6 | |
6 | |
|
|
7 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
|
|
8 | |
|
|
9 | # configuration on windows is hardcoded - as always |
|
|
10 | |
|
|
11 | die "your platform is not standards-compliant, you have to port this module first\n";#d# |
|
|
12 | |
|
|
13 | } else { |
|
|
14 | |
7 | if ($^O =~ /freebsd/i) { |
15 | if ($^O =~ /freebsd/i) { |
|
|
16 | print <<EOF; |
|
|
17 | |
|
|
18 | This package seems to deadlock or otherwise misbehave under FreeBSD. As |
|
|
19 | documentation on FreeBSD threading is sorely lacking and confusing, I'll |
|
|
20 | just call FreeBSD broken with regards to threading. |
|
|
21 | |
|
|
22 | If you find out whats wrong, please tell me. |
|
|
23 | |
|
|
24 | Some people had luck with using OPTIMIZE=-O instead of -O2, so you might |
|
|
25 | want to try that. |
|
|
26 | |
|
|
27 | EOF |
|
|
28 | } |
|
|
29 | |
|
|
30 | autoconf::run_script() |
|
|
31 | and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
|
|
32 | } |
|
|
33 | |
|
|
34 | if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
8 | print <<EOF; |
35 | print <<EOF; |
9 | |
36 | |
10 | This package seems to deadlock under FreeBSD. As documentation on FreeBSD |
37 | *** |
11 | threading is sorely lacking and confusing, I'll just call FreeBSD broken |
38 | *** WARNING: |
12 | with regards to threading. |
39 | *** |
13 | |
40 | *** Your perl uses it's own memory allocator (-Dusemymalloc=y), |
14 | If you get it to work, tell me how (maybe you need to specify magical link |
41 | *** which is known not to be threadsafe on GNU/Linux and probably |
15 | flags despite man pthread telling me otherwise, maybe yo need special |
42 | *** other platforms (even when not used concurrently, it trashes |
16 | library, maybe you need magical preprocessor symbols, maybe you need to |
43 | *** the data structures of the system malloc running concurrently), |
17 | recompile or re-link perl with threads enabled (a bad idea) - I have no |
44 | *** for perls up to 5.8.8 and possibly later versions. |
18 | idea, and I no longer care). |
45 | *** |
|
|
46 | *** If you are unsure wether your perl has been fixed, your system |
|
|
47 | *** is safe for other reasons, or you experience spurious segfaults, |
|
|
48 | *** please compile your perl with -Dusemymalloc=n. |
|
|
49 | *** |
19 | |
50 | |
20 | EOF |
51 | EOF |
21 | } |
52 | } |
22 | |
|
|
23 | autoconf::run_script(); |
|
|
24 | |
53 | |
25 | my $mm = MM->new({ |
54 | my $mm = MM->new({ |
26 | dist => { |
55 | dist => { |
27 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
56 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
28 | COMPRESS => 'gzip -9v', |
57 | COMPRESS => 'gzip -9v', |