1 # This -*- perl -*- script makes the Makefile
3 BEGIN { require 5.006_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 if ($] < 5.008 and !$PERL_CORE) {
24 print FH "const char * T_PV\n";
28 #--- Write the Makefile
31 VERSION_FROM => "IO.pm",
33 OBJECT => '$(O_FILES)',
34 ABSTRACT => 'Perl core IO modules',
35 AUTHOR => 'Graham Barr <gbarr@cpan.org>',
39 INSTALLDIRS => 'perl',
40 clean => {FILES => 'typemap'},
43 ($define ? (DEFINE => $define) : ()),
44 ((ExtUtils::MakeMaker->VERSION() gt '6.30') ? ('LICENSE' => 'perl') : ()),