use 5.008000; use strict; use ExtUtils::MakeMaker; my $BASE; ## ## Check if executed by an automated CPAN Test ## ## In that case, signal the test to stop by not creating a Makefile and ## returning zero. This is necessary because Lingua::Lid implements an ## interface to a commercial library that will most likely not be present ## on any CPAN tester's machine. ## exit 0 if $ENV{AUTOMATED_TESTING}; ## ## Check if the OS is supported by lid ## if ($^O ne "linux" && $^O ne "solaris" && $^O ne "freebsd") { print < 'Lingua::Lid', VERSION_FROM => 'lib/Lingua/Lid.pm', PREREQ_PM => {}, ABSTRACT_FROM => 'lib/Lingua/Lid.pm', AUTHOR => 'Alex Linke ', LIBS => ["-L$BASE/lib -llid"], DEFINE => '', INC => "-I$BASE/include", ); sub lid_missing { print STDERR <