#!/usr/bin/perl -w require 5.004; use ExtUtils::MakeMaker; BEGIN { @Heap::Simple::implementors = qw(CGI) unless @Heap::Simple::implementors; } # Allows to suppress all questions with -n use Getopt::Std; our $opt_n = 1; getopts("n") || die "Usage: $0 [-n]\n"; my $benchmark = 0; my $benchmark_others = 0; unless ($opt_n) { print <", $new) || die "Could not open '$new': $!"; printf($fh "BENCHMARK=%d\nBENCHMARK_OTHERS=%d\n", $benchmark ? 1 : 0, $benchmark_others ? 1 : 0) || die "Error writing to '$new': $!"; eval { close($fh) || die "Could not close '$new': $!"; rename($new, $option_file) || die "Could not rename '$new' to '$option_file': $!"; }; if ($@) { $fh = undef; # close file if open unlink($new) || die "Could not unlink '$new': $! after $@"; die $@; } WriteMakefile( 'NAME' => 'Heap::Simple::Perl', 'VERSION_FROM' => 'lib/Heap/Simple/Perl.pm', 'PREREQ_PM' => { "Heap::Simple" => 0.09, # implementor switch "Test::More" => 0.11, # For the tests only }, ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (AUTHOR => 'Ton Hospel ') : ()), );