Index: Makefile.PL =================================================================== --- Makefile.PL (revision 55268) +++ Makefile.PL (working copy) @@ -183,6 +183,7 @@ }, # be quite explicit about this; afaik CPAN.pm is sensible using this + # also see CURRENT_PM below 'PREREQ_PM' => { 'Digest::SHA1' => 0, # 2.0 is oldest tested version 'File::Spec' => 0.8, # older versions lack some routines we need @@ -234,11 +235,18 @@ # Don't add META.yml to the MANIFEST for god's sake! 'NO_META' => 1, ); + # That META.yml stuff was introduced with Perl 6.06_03, see # # delete $makefile{'NO_META'} if $mm_version < 6.06_03; +# make sure certain optional modules are up-to-date if they are installed +# also see PREREQ_PM above +my %CURRENT_PM = ( + 'Net::DNS' => (RUNNING_ON_WINDOWS ? 0.46 : 0.34), + 'Razor2::Client::Agent' => 2.40, +); if (bool($opt{'__cruft'}, 0) and not bool($opt{'ignore_cruft'}, 0)) { my $error = <VERSION < $version) { + warn("Warning: optional module $module $version not found (" . + $module->VERSION . + " currently installed)"); + } } #######################################################################