… | |
… | |
34 | $EVENT = 1; |
34 | $EVENT = 1; |
35 | $DEFINE .= " -DHAVE_EVENT=1"; |
35 | $DEFINE .= " -DHAVE_EVENT=1"; |
36 | print "\nEvent version $Event::VERSION found, building Event support.\n\n"; |
36 | print "\nEvent version $Event::VERSION found, building Event support.\n\n"; |
37 | } |
37 | } |
38 | } else { |
38 | } else { |
39 | print "\n*** Event not found, not build Event support.\n\n"; |
39 | print "\n*** Event not found, not building Event support.\n\n"; |
40 | } |
40 | } |
41 | |
41 | |
42 | if (eval { require EV }) { |
42 | if (eval { require EV }) { |
43 | if ($EV::VERSION < 3.3) { |
43 | if ($EV::VERSION < 3.3) { |
44 | print <<EOF |
44 | print <<EOF |
45 | |
45 | |
46 | *** |
46 | *** |
47 | *** WARNING: Event version $EV::VERSION found, NOT building EV support. |
47 | *** WARNING: EV version $EV::VERSION found, NOT building EV support. |
48 | *** |
48 | *** |
49 | *** This version is ABI-incompatible with Coro, please upgrade to at least 3.3. |
49 | *** This version is ABI-incompatible with Coro, please upgrade to at least 3.3. |
50 | *** |
50 | *** |
51 | |
51 | |
52 | EOF |
52 | EOF |
… | |
… | |
54 | $EV = 1; |
54 | $EV = 1; |
55 | $DEFINE .= " -DHAVE_EV=1"; |
55 | $DEFINE .= " -DHAVE_EV=1"; |
56 | print "\nEV version $EV::VERSION found, building EV support.\n\n"; |
56 | print "\nEV version $EV::VERSION found, building EV support.\n\n"; |
57 | } |
57 | } |
58 | } else { |
58 | } else { |
59 | print "\n*** EV not found, not build EV support.\n\n"; |
59 | print "\n*** EV not found, not building EV support.\n\n"; |
60 | } |
60 | } |
61 | |
61 | |
62 | WriteMakefile( |
62 | WriteMakefile( |
63 | dist => { |
63 | dist => { |
64 | PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
64 | PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
… | |
… | |
106 | }, |
106 | }, |
107 | PM => { |
107 | PM => { |
108 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
108 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
109 | |
109 | |
110 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |
110 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |
|
|
111 | 'Coro/jit-amd64-unix.pl' => '$(INST_LIBDIR)/Coro/jit-amd64-unix.pl', |
111 | |
112 | |
112 | 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', |
113 | 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', |
113 | 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', |
114 | 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', |
114 | |
115 | |
115 | # 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', |
116 | # 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', |