--- IO-AIO/Makefile.PL 2005/07/10 17:07:44 1.1 +++ IO-AIO/Makefile.PL 2006/05/08 17:10:27 1.9 @@ -2,6 +2,35 @@ 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 +39,8 @@ }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", - LIBS => ['-lpthread'], + LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], + clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, }); $mm->flush;