ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/Makefile.PL
(Generate patch)

Comparing IO-AIO/Makefile.PL (file contents):
Revision 1.14 by root, Sun Jul 8 13:43:29 2007 UTC vs.
Revision 1.15 by root, Sat May 10 18:06:41 2008 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use Config; 3use Config;
4
5require "autoconf.pm";
6 4
7if ($^O =~ /win32/i or $^O =~ /mswin/) { 5if ($^O =~ /win32/i or $^O =~ /mswin/) {
8 6
9 # configuration on windows is hardcoded - as always 7 # configuration on windows is hardcoded - as always
10 8
32want to try that. 30want to try that.
33 31
34EOF 32EOF
35 } 33 }
36 34
37 autoconf::run_script() 35 {
38 and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; 36 local %ENV = %ENV;
37
38 while (my ($k, $v) = each %Config) {
39 $ENV{$k} = $v;
40 }
41
42 $ENV{MAKE} = $Config{make};
43 $ENV{SHELL} = $Config{sh};
44 $ENV{CC} = $Config{cc};
45 $ENV{CPPFLAGS} = $Config{cppflags};
46 $ENV{CFLAGS} = $Config{ccflags};
47 $ENV{LDFLAGS} = $Config{ldflags};
48 $ENV{LIBS} = $Config{libs};
49 $ENV{LINKER} = $Config{ld}; # nonstandard
50
51 system $ENV{SHELL}, -c => "cd libeio && ./configure --prefix \Q$Config{prefixexp}\E"
52 and exit $? >> 8;
53 }
39} 54}
40 55
41if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { 56if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") {
42 print <<EOF; 57 print <<EOF;
43 58
62 dist => { 77 dist => {
63 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 78 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
64 COMPRESS => 'gzip -9v', 79 COMPRESS => 'gzip -9v',
65 SUFFIX => '.gz', 80 SUFFIX => '.gz',
66 }, 81 },
82 depend => {
83 "AIO.c" => "libeio/eio.h libeio/eio.c libeio/config.h",
84 },
67 NAME => "IO::AIO", 85 NAME => "IO::AIO",
68 VERSION_FROM => "AIO.pm", 86 VERSION_FROM => "AIO.pm",
69 INC => $INC, 87 INC => $INC,
70 LIBS => $LIBS, 88 LIBS => $LIBS,
71 PM => { 89 PM => {
72 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', 90 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm',
73 }, 91 },
74 clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, 92 clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" },
75}); 93});
76 94
77$mm->flush; 95$mm->flush;
78 96

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines