diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-05-02 22:40:18 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-05-02 22:40:18 +0000 |
commit | 63f18be62c0fc11b05936631f648c4dd5ea77236 (patch) | |
tree | 1c0d1c69d84f06dc0a4d908ef2fb087535c0d9af /configpm | |
parent | dd2b5970cf2cbf18f4a44daa7156a78ccc309dd8 (diff) | |
download | perl-63f18be62c0fc11b05936631f648c4dd5ea77236.tar.gz |
It seems daft to me that we have a synopis example that will fail if
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
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -435,8 +435,8 @@ Config - access Perl configuration information =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); |