1use ExtUtils::MakeMaker; 2 3my $ans = "n"; 4 5my $tests = 't/*.t'; 6 7if ( $ans =~ /^y/i ) { 8 print "Enterprise tests enabled.\n"; 9 print "Enterprise test will query HTTP service records from zeroconf.org\n"; 10 $tests = 't/*.t t/*.ot'; 11} else { 12 print "Enterprise tests will be skipped.\n"; 13} 14 15WriteMakefile( 16 'NAME' => 'Net::Bonjour', 17 'VERSION_FROM' => 'lib/Net/Bonjour.pm', 18 'DISTNAME' => 'Net-Bonjour', 19 'PREREQ_PM' => { 'Net::DNS' => 0.50, 'Socket' => 1.75 }, 20 'AUTHOR' => 'George Chlipala <george@walnutcs.com>', 21 'ABSTRACT' => "Module for DNS service discovery (Apple's Bonjour)", 22 'LICENSE' => 'perl', 23 'test' => { 'TESTS' => $tests } 24) 25