--- cvsroot/EV/Makefile.PL 2008/11/20 00:35:16 1.38 +++ cvsroot/EV/Makefile.PL 2010/11/28 06:34:10 1.48 @@ -1,4 +1,4 @@ -use 5.006; +use 5.008002; use strict qw(vars subs); use Config; @@ -37,7 +37,7 @@ POSIX optionally offers support for a monotonic clock source. EV -can take advantage of this clock source to detect time jumps +can take advantage of this clock source to detect time jumps more reliably. Unfortunately, some systems are bound to be broken, so you can disable this here: you can completely disable the detection and use of the monotonic clock by answering 'n' here. Support for this clock type @@ -56,20 +56,19 @@ POSIX optionally offers support for a (potentially) high-resolution realtime clock interface. In a good implementation, using it is faster than the normal method of using gettimeofday. Unfortunately, this option -is also bound to be broken on some systems, so you can disable use and -probing of this feature altogether here. Otherwise support for this clock -type will be autodetected at compiletime. +is also bound to be broken on some systems, and current EV versions do not +actually call gettimeofday very often, so it defaults to no. EOF -$DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") =~ /[yY]/)); +$DEFINE .= " -DEV_USE_REALTIME=" . (0 + (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "n") =~ /[yY]/)); print < 2.6) : (); +my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 5.29 } ? (AnyEvent => 5.29) : (); WriteMakefile( dist => { @@ -250,6 +280,7 @@ LIBS => [$LIBS], PREREQ_PM => { @anyevent, + "common::sense" => 0, }, VERSION_FROM => "EV.pm", PM => {