gcc happened to be invoked via the name cc, and completely ignores
the far more reliable 'gccversion' variable
So here's one using 'usethreads' that ought to work everywhere.
p4raw-id: //depot/perl@22768
=head1 SYNOPSIS
use Config;
- if ($Config{'cc'} =~ /gcc/) {
- print "built by gcc\n";
+ if ($Config{usethreads}) {
+ print "has thread support\n"
}
use Config qw(myconfig config_sh config_vars config_re);