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

Comparing Coro/Coro/Makefile.PL (file contents):
Revision 1.26 by root, Thu May 8 00:55:30 2003 UTC vs.
Revision 1.27 by root, Fri May 9 01:16:13 2003 UTC

46The default (enabled) has been in-use on productions servers for some time 46The default (enabled) has been in-use on productions servers for some time
47now, without any problem reports so far. 47now, without any problem reports so far.
48 48
49EOF 49EOF
50 50
51print "Do you want to enable C context sharing (y/n) [y]? "; 51if (prompt ("Do you want to enable C context sharing (y/n)", "y") !~ /^\s*n/i) {
52
53if (<> !~ /^\s*n/i) {
54 print "\nExperimental context sharing enabled.\n\n"; 52 print "\nExperimental context sharing enabled.\n\n";
55 $DEFINE .= " -DCORO_LAZY_STACK"; 53 $DEFINE .= " -DCORO_LAZY_STACK";
56} 54}
57 55
58if ($iface) { 56if ($iface) {
81 (it's fast), although s and u should also work now. 79 (it's fast), although s and u should also work now.
82 80
83EOF 81EOF
84 82
85retry: 83retry:
86 print "Use which implementation,\n",
87 "<s>etjmp/longjump, <u>context, <i>rix or <l>inux [$iface]? ";
88 84
89 my $r = <>; 85 my $r = prompt "Use which implementation,\n" .
86 "<s>etjmp/longjump, <u>context, <i>rix or <l>inux?",
87 $iface;
90 $iface = lc $1 if $r =~ /(\S)/; 88 $iface = lc $1 if $r =~ /(\S)/;
91 89
92 if ($iface eq "u") { 90 if ($iface eq "u") {
93 $DEFINE .= " -DCORO_UCONTEXT"; 91 $DEFINE .= " -DCORO_UCONTEXT";
94 print "\nUsing ucontext implementation\n\n"; 92 print "\nUsing ucontext implementation\n\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines