use ExtUtils::MakeMaker; use FileHandle; print "Checking for SNMP, V5.1 "; $@ = ''; eval "use SNMP 5.1 ();"; if ($@) { $ok = 0; print("\nYou don't have installed the SNMP module, version 5.1 or", " later.\n"); } else { print "ok\n"; } # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( NAME => 'SNMP::Util', DISTNAME => 'SNMP-Util', VERSION_FROM => 'Util.pm', # finds $VERSION dist => { COMPRESS => "gzip", SUFFIX => "gz" }, );