--- IO-AIO/Makefile.PL 2006/05/08 17:10:27 1.9 +++ IO-AIO/Makefile.PL 2018/08/14 09:29:50 1.36 @@ -1,34 +1,99 @@ +use Canary::Stability IO::AIO => 1, 5.008002; + use ExtUtils::MakeMaker; use Config; -require "autoconf.pm"; +if ($^O eq "MSWin32") { + # configuration on windows is hardcoded - as always -if ($^O =~ /win32/i or $^O =~ /mswin/) { + print STDERR <config.h" + or die "config.h: $!"; + print $fh < "./configure --prefix \Q$Config{prefixexp}\E" + and exit $? >> 8; } +} + +if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { + print <new({ @@ -36,11 +101,23 @@ PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, + depend => { + "AIO.c" => "schmorp.h libeio/eio.h libeio/xthread.h libeio/etp.c libeio/eio.c config.h", + }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", - LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], - clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, + INC => $INC, + LIBS => $LIBS, + EXE_FILES => ["bin/treescan"], + PM => { + 'AIO.pm' => '$(INST_LIB)/IO/AIO.pm', + }, + CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 2001 }, + PREREQ_PM => { + "common::sense" => 0, + }, + clean => { FILES => "config.h libeio/config.h libeio/config.log libeio/config.status" }, }); $mm->flush;