use ExtUtils::MakeMaker; my %options = ( 'NAME' => 'P4::Journal', 'VERSION_FROM' => 'Journal.pm', # finds $VERSION ); # Ask if they have a compiler and want to use it. print <; my $opt_build = 1; if ( $reply !~ /^y/i ) { $options{ 'C' } = []; $opt_build = 0; print( "OK, I'll disable the C components...\n" ); } WriteMakefile( %options );