… | |
… | |
185 | required by EV) now, or accept the default. |
185 | required by EV) now, or accept the default. |
186 | |
186 | |
187 | EOF |
187 | EOF |
188 | |
188 | |
189 | my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; |
189 | my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; |
190 | my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; |
190 | #my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; |
|
|
191 | my $librt = "-lpthread -lrt"; |
191 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; |
192 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; |
192 | |
193 | |
193 | |
194 | |
194 | print <<EOF; |
195 | print <<EOF; |
195 | |
196 | |
… | |
… | |
243 | print <<EOF; |
244 | print <<EOF; |
244 | |
245 | |
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | |
247 | |
247 | |
248 | |
248 | EOF |
249 | Very rarely, people want to tweak EV even more, e.g. to exclude |
|
|
250 | or include certain watcher types or backends. This can be done by adding |
|
|
251 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
249 | |
252 | |
|
|
253 | For example, if you run into compile problems because of missing memory |
|
|
254 | fences (or you just want extra performance), you can tell EV to not support |
|
|
255 | smp and threads via -DEV_NO_THREADS. |
|
|
256 | |
|
|
257 | Normal persons just press enter. |
|
|
258 | |
|
|
259 | EOF |
|
|
260 | |
|
|
261 | $DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}"; |
|
|
262 | |
|
|
263 | print <<EOF; |
|
|
264 | |
|
|
265 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
266 | |
|
|
267 | |
|
|
268 | EOF |
|
|
269 | |
250 | my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 2.6 } ? (AnyEvent => 2.6) : (); |
270 | my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 5.29 } ? (AnyEvent => 5.29) : (); |
251 | |
271 | |
252 | WriteMakefile( |
272 | WriteMakefile( |
253 | dist => { |
273 | dist => { |
254 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
274 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
255 | COMPRESS => 'gzip -9v', |
275 | COMPRESS => 'gzip -9v', |