--- EV/Makefile.PL 2007/11/01 06:48:49 1.10 +++ EV/Makefile.PL 2007/11/01 17:45:30 1.13 @@ -17,12 +17,93 @@ exit 1; } -#$ENV{CC} = $Config{cc}; -#$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags); -#system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode" -# and die "configure failed."; +print <; + +*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** + +Welcome to EV configuration. If you are in a hurry, just press return here +and hope for the best. The defaults should usually do. + +EOF + +if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) { + $ENV{PERL_MM_USE_DEFAULT} = 1; +} + +print < { @@ -31,16 +112,19 @@ SUFFIX => '.gz', }, depend => { - "EV.c" => "EV/EVAPI.h libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c", + "EV.c" => "EV/EVAPI.h " + . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c " + . "libev/event.h libev/event.c libev/evdns.h libev/evdns.c", }, INC => "-Ilibev", + DEFINE => "$DEFINE", NAME => "EV", - LIBS => ["-lrt -lpthread"], + LIBS => [$LIBS], VERSION_FROM => "EV.pm", PM => { 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', - #'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', + 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',