--- IO-AIO/Makefile.PL 2005/07/10 17:07:44 1.1 +++ IO-AIO/Makefile.PL 2007/01/23 22:57:34 1.12 @@ -2,6 +2,55 @@ use Config; +require "autoconf.pm"; + +if ($^O =~ /win32/i or $^O =~ /mswin/) { + + # configuration on windows is hardcoded - as always + + die "your platform is not standards-compliant, you have to port this module first\n";#d# + +} else { + + if ($^O =~ /freebsd/i) { + print <new({ dist => { PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -10,7 +59,11 @@ }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", - LIBS => ['-lpthread'], + LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], + PM => { + 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', + }, + clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, }); $mm->flush;