1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
|
|
use Config; |
4 |
|
|
|
5 |
root |
1.3 |
require "autoconf.pm"; |
6 |
|
|
|
7 |
root |
1.9 |
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 |
|
|
|
15 |
|
|
if ($^O =~ /freebsd/i) { |
16 |
|
|
print <<EOF; |
17 |
root |
1.5 |
|
18 |
root |
1.8 |
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 |
root |
1.5 |
|
27 |
|
|
EOF |
28 |
root |
1.9 |
} |
29 |
|
|
|
30 |
|
|
autoconf::run_script() |
31 |
|
|
and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
32 |
root |
1.5 |
} |
33 |
|
|
|
34 |
root |
1.1 |
my $mm = MM->new({ |
35 |
|
|
dist => { |
36 |
|
|
PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
37 |
|
|
COMPRESS => 'gzip -9v', |
38 |
|
|
SUFFIX => '.gz', |
39 |
|
|
}, |
40 |
|
|
NAME => "IO::AIO", |
41 |
|
|
VERSION_FROM => "AIO.pm", |
42 |
root |
1.2 |
LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], |
43 |
root |
1.4 |
clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, |
44 |
root |
1.1 |
}); |
45 |
|
|
|
46 |
|
|
$mm->flush; |
47 |
|
|
|