1 # This -*- perl -*- script makes the Makefile
4 use ExtUtils::MakeMaker;
5 use Config qw(%Config);
13 if($path =~ m:/(RCS|CVS|SCCS|\.svn)/: ||
15 $path =~ m:\.(orig|rej)$:
22 #--- Attempt to find <poll.h>
26 unless (exists $Config{'i_poll'}) {
27 my @inc = split(/\s+/, join(" ",$Config{'usrinc'},$Config{'incpth'},$Config{'locincpth'}));
28 foreach $path (@inc) {
29 if(-f $path . "/poll.h") {
30 $define .= "-DI_POLL ";
36 #--- Write the Makefile
39 VERSION_FROM => "IO.pm",
41 OBJECT => '$(O_FILES)',
44 'clean' => {FILES => join(" ",
45 map { "$_ */$_ */*/$_" }
46 qw(*% *.html *.b[ac]k *.old *.orig))
48 INSTALLDIRS => 'perl',