1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
|
|
use 5.005; |
4 |
|
|
|
5 |
|
|
use Config; |
6 |
|
|
|
7 |
|
|
$|=1; |
8 |
|
|
|
9 |
|
|
if (eval { require Event }) { |
10 |
|
|
$EVENT = 1; |
11 |
|
|
$DEFINE .= " -DHAVE_EVENT=1"; |
12 |
|
|
print "\n*** Event version $Event::VERSION found, building Event support.\n", |
13 |
|
|
"*** Please read the INSTALL file, you might need to patch Event.\n\n"; |
14 |
|
|
} else { |
15 |
|
|
print "\n*** Event not found, not build Event support.\n\n"; |
16 |
|
|
$EVENT = 0; |
17 |
|
|
} |
18 |
|
|
|
19 |
|
|
WriteMakefile( |
20 |
|
|
NAME => "Coro::Event", |
21 |
|
|
VERSION_FROM => "Event.pm", |
22 |
|
|
DEFINE => $DEFINE, |
23 |
|
|
DIR => [], |
24 |
|
|
); |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|