[t][tools] Allow assigning to lowercase register names in parrot_debugger, since...
[parrot.git] / config / auto / thread.pm
blobc7266fa742f2940cfe7f419e93290600a2a20fc0
1 # Copyright (C) 2009, Parrot Foundation.
2 # $Id$
4 =head1 NAME
6 config/auto/thread.pm - Thread support
8 =head1 DESCRIPTION
10 Determining if the system has a Thread support.
12 =cut
14 package auto::thread;
16 use strict;
17 use warnings;
19 use base qw(Parrot::Configure::Step);
21 use Parrot::Configure::Utils ':auto';
23 sub _init {
24 my $self = shift;
25 my %data;
26 $data{description} = q{Does your system has thread};
27 $data{result} = q{};
28 return \%data;
31 sub runstep {
32 my ( $self, $conf ) = @_;
34 my ( $verbose, $without ) = $conf->options->get(
35 qw|
36 verbose
37 without-threads
41 if ($without) {
42 $conf->data->set( HAS_THREADS => 0 );
43 $self->set_result('no');
44 return 1;
47 if ($conf->data->get_p5('OSNAME') eq 'MSWin32'
48 || $conf->data->get('i_pthread') eq 'define') {
49 $conf->data->set( HAS_THREADS => 1 );
50 $self->set_result('yes');
52 else {
53 $conf->data->set( HAS_THREADS => 0 );
54 $self->set_result('no');
57 return 1;
62 # Local Variables:
63 # mode: cperl
64 # cperl-indent-level: 4
65 # fill-column: 100
66 # End:
67 # vim: expandtab shiftwidth=4: