1 # This -*- perl -*- script makes the Makefile
3 BEGIN { require 5.008_001 }
4 use ExtUtils::MakeMaker;
5 use Config qw(%Config);
6 my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
8 #--- Attempt to find <poll.h>
12 unless ($PERL_CORE or exists $Config{'i_poll'}) {
13 my @inc = split(/\s+/, join(" ", $Config{'usrinc'}, $Config{'incpth'}, $Config{'locincpth'}));
14 foreach $path (@inc) {
15 if (-f $path . "/poll.h") {
16 $define .= "-DI_POLL ";
22 #--- Write the Makefile
25 VERSION_FROM => "IO.pm",
27 OBJECT => '$(O_FILES)',
28 ABSTRACT => 'Perl core IO modules',
29 AUTHOR => 'Graham Barr <gbarr@cpan.org>',
32 'File::Temp' => '0.15',
37 INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
38 clean => {FILES => 'typemap'},
41 ($define ? (DEFINE => $define) : ()),
42 ((ExtUtils::MakeMaker->VERSION() gt '6.30') ? ('LICENSE' => 'perl') : ()),