--- IO-AIO/Makefile.PL 2011/07/18 02:59:58 1.24 +++ IO-AIO/Makefile.PL 2015/06/13 00:06:13 1.34 @@ -1,4 +1,4 @@ -use 5.008002; +use Canary::Stability IO::AIO => 1, 5.008002; use ExtUtils::MakeMaker; @@ -16,15 +16,20 @@ *** also, the windows SDK is expected to be installed in /sdk *** and visual C is expected to be installed in /vc98 *** -*** You can set the INC and LIBS environment variables -*** accordingly before running Makeifle.PL, or you can +*** Alternatively, set the INC and LIBS environment variables +*** accordingly before running Makefile.PL, or you can *** pass INC and LIBS arguments to Makefile.PL itself. *** EOF - $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include"; - $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"]; + if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { + $INC = "$ENV{INC} -I/gtk/include"; + $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; + } else { + $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include"; + $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"]; + } open my $fh, ">libeio/config.h" or die "libeio/config.h: $!"; @@ -74,7 +79,7 @@ *** *** WARNING: *** -*** Your perl uses it's own memory allocator (-Dusemymalloc=y), +*** Your perl uses its own memory allocator (-Dusemymalloc=y), *** which is known not to be threadsafe on GNU/Linux and probably *** other platforms (even when not used concurrently, it trashes *** the data structures of the system malloc running concurrently), @@ -93,9 +98,9 @@ PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, depend => { - "AIO.c" => "libeio/eio.h libeio/xthread.h libeio/eio.c libeio/config.h", + "AIO.c" => "schmorp.h libeio/eio.h libeio/xthread.h libeio/etp.c libeio/eio.c libeio/config.h", }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", @@ -103,8 +108,9 @@ LIBS => $LIBS, EXE_FILES => ["bin/treescan"], PM => { - 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', - }, + 'AIO.pm' => '$(INST_LIB)/IO/AIO.pm', + }, + CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 2001 }, PREREQ_PM => { "common::sense" => 0, },