use 5.006;
use ExtUtils::MakeMaker;

my $bits_are_64 = unpack("L!", pack("LL", 0x12345678, 0x9ABCDEF)) < 2**32;
if ($bits_are_64) {
	$| = 1;
	print "*** 64-BIT WARNING ***  *** 64-BIT WARNING ***  *** 64-BIT WARNING ***
Mac-Carbon does not run under 64-bit perl, and it appears you're running
a 64-bit perl.  We can try to compile anyway, in case this is a fat binary:
we'll try to leave out the 64-bit compilation.  Give it a go? [Yn] ";
	if (<> =~ /n/i) {
		print "\nExiting.\n\n";
		exit;
	} else {
		print "\nWish us luck.\n\n";
	}
}

WriteMakefile(
	'NAME'			=> 'Mac::Carbon',
	'VERSION_FROM'		=> 'Carbon.pm',
	'PM'			=> { 'Carbon.pm' => '$(INST_LIBDIR)/Carbon.pm' },
	'PREREQ_PM'	=> {
    		'Test::More'		=> 0,
	},
	'clean'		=> {
		'FILES'		=> 'Mac-Carbon-*'
	},
	'test'		=> {
		'TESTS' 	=> 't/*.t */t/*.t'
	},
	'NO_META'		=> 1,
);