--- IO-AIO/Makefile.PL 2007/07/08 13:43:29 1.14 +++ IO-AIO/Makefile.PL 2010/11/01 22:03:43 1.22 @@ -1,9 +1,9 @@ +use 5.008002; + use ExtUtils::MakeMaker; use Config; -require "autoconf.pm"; - if ($^O =~ /win32/i or $^O =~ /mswin/) { # configuration on windows is hardcoded - as always @@ -17,25 +17,38 @@ } else { $INC = ""; - $LIBS = ['-lpthread -lrt', '-lpthread', '-lpthreads', '-lpthreadVC2', '']; + $LIBS = ['-lpthread', '-lpthreads', '-lpthreadVC2', '']; - if ($^O =~ /freebsd/i) { + if ($^O =~ /bsd/i) { print < "./configure --prefix \Q$Config{prefixexp}\E" + and exit $? >> 8; + } } if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { @@ -64,14 +77,21 @@ COMPRESS => 'gzip -9v', SUFFIX => '.gz', }, + depend => { + "AIO.c" => "libeio/eio.h libeio/xthread.h libeio/eio.c libeio/config.h", + }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", INC => $INC, LIBS => $LIBS, + EXE_FILES => ["bin/treescan"], PM => { 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', }, - clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, + PREREQ_PM => { + "common::sense" => 0, + }, + clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" }, }); $mm->flush;