use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. # That's the minimum. use 5.00503; # If we're not 5.6.0, there's some corrections we need to make: Use # 'use vars' instead of 'our' variables, get rid of 'use warnings' # and other stuff. The eg/5005it.pl script takes care of it. if($] < 5.006) { require "eg/5005it.pl"; print < 'Log::Log4perl', 'VERSION_FROM' => 'lib/Log/Log4perl.pm', # finds $VERSION 'PREREQ_PM' => { Test::More => 0.45, File::Spec => 0.82, }, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'lib/Log/Log4perl.pm', # retrieve abstract from module AUTHOR => 'Mike Schilli ') : ()), 'LIBS' => [''], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' # Insert -I. if you add *.h files later: 'INC' => '', # e.g., '-I/usr/include/other' # Un-comment this if you add C files to link with later: # 'OBJECT' => '$(O_FILES)', # link all the C files too 'clean' => {FILES => "*.tar.gz *.ppd pod2htm*"}, get_man3pods(), ); ########################################## sub get_man3pods { ########################################## # Only done for versions < 5.8.0 return () if $] >= 5.008; print <