Might I suggest the following patch.  This makes it much more pleasant
to build CPAN modules that ask lots of questions during the
'perl Makefile.PL'-stage.


--- perl-current/lib/ExtUtils/MakeMaker.pm      Fri Oct 19 07:22:46 2001
+++ perl-hack/lib/ExtUtils/MakeMaker.pm Fri Oct 19 16:38:55 2001
@@ -139,7 +139,7 @@
     my $ans;
     local $|=1;
     print "$mess $dispdef";
-    if ($ISA_TTY) {
+    if ($ISA_TTY && !$ENV{PERL_MM_USE_DEFAULT}) {
        chomp($ans = <STDIN>);
     } else {
        print "$def\n";
@@ -2146,6 +2146,11 @@
 Command line options used by C<MakeMaker-E<gt>new()>, and thus by
 C<WriteMakefile()>.  The string is split on whitespace, and the result
 is processed before any actual command line arguments are processed.
+If set to a true value then MakeMaker's prompt function will
+always return the default without waiting for user input.
Only in perl-hack/lib/ExtUtils: MakeMaker.pm~

Reply via email to