Apache-Wyrd

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

require 5.6.1;
use ExtUtils::MakeMaker;
use lib qw(../blib/lib lib );
use Cwd;

push @ARGV, '-maxclients', '2';

my $mod_perl_ok = 0;
my $mod_perl_version = 'unknown or uninstalled';
eval 'use Apache';
unless ($@) {
	$mod_perl_version = $Apache::VERSION;
	$mod_perl_ok = 1 if (($mod_perl_version < 1.99) and ($mod_perl_version >= 1.26));
}

unless ($mod_perl_ok) {
	print <<__MSG__;

These modules are designed to work under Apache 1.X using mod_perl 1.26
or greater (but not mod_perl 1.99 or better).  This does not seem to be
an appropriate platform.  If you know what you're doing, or if you just
want to examine these modules, you can opt to continue.  Otherwise,
please install the appropriate software before continuing.  See
http://perl.apache.org for details.

__MSG__
	my $ok = prompt('Continue (y/n)?', 'n');
	if (lc($ok) ne 'y') {
		print "OK, aborting...\n\n";
		exit 0;
	}
}

my $have_atest = 1;
my $atest_version = 0;
eval 'use Apache::Test';
unless ($@) {
	eval 'use Apache::Test';
	$atest_version = $Apache::Test::VERSION;
}

eval ('use Apache::TestMM qw(test clean)') if ($atest_version >= 1.08);
if ($@ or ($atest_version < 1.08)) {
	$have_atest = 0;
	print <<__MSG__;

The test suite for this module requires Apache::Test version 1.08 or
better, which is apparently not available.  It is highly recommended
that you run the test suite, but it is not absolutely required.  If you
choose to continue, you may install Apache::Wyrd, but it may be
unusable.  Do you want to continue?

__MSG__
	my $ok = prompt('Continue (y/n)?', 'n');
	if (lc($ok) ne 'y') {
		print "OK, aborting...\n\n";
		exit 0;
	} else {
		print <<__MSG__;

OK. Tests will fail if you 'make test', but this will not necessarily
mean the modules are unusable.  However, if you run into problems,
please install Apache::Test v 1.08+ and run the complete test suite



( run in 2.783 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )