blob: f36d51a1f5be5f77f5a2991e3d3fd55ab0613176 [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001#!/usr/bin/perl
2
3#
4#//===----------------------------------------------------------------------===//
5#//
6#// The LLVM Compiler Infrastructure
7#//
8#// This file is dual licensed under the MIT and the University of Illinois Open
9#// Source Licenses. See LICENSE.txt for details.
10#//
11#//===----------------------------------------------------------------------===//
12#
13
14# Pragmas.
15use strict;
16use warnings;
17
18use FindBin;
19use lib "$FindBin::Bin/lib";
20
21# LIBOMP modules.
22use Platform ":vars";
23use tools;
24
25our $VERSION = "0.015";
26
27my $pedantic;
28
29# --------------------------------------------------------------------------------------------------
30# Helper functions
31# --------------------------------------------------------------------------------------------------
32
33
34sub run($\$\$;\$) {
35 my ( $cmd, $stdout, $stderr, $path ) = @_;
36 my ( @path, $rc );
37 @path = which( $cmd->[ 0 ], -all => 1 );
38 if ( @path > 0 ) {
39 if ( @path > 1 and $pedantic ) {
40 warning( "More than one \"$cmd->[ 0 ]\" found in PATH:", map( " $_", @path ) );
41 }; # if
42 debug( "\"$cmd->[ 0 ]\" full path is \"$path[ 0 ]\"." );
43 if ( defined( $path ) ) {
44 $$path = $path[ 0 ];
45 }; # if
46 debug( "Executing command: \"" . join ( " ", @$cmd ) . "\"." );
47 $rc =
48 execute(
49 $cmd,
50 -ignore_signal => 1, -ignore_status => 1,
51 -stdout => $stdout, -stderr => $stderr, -stdin => undef
52 );
53 if ( $rc < 0 ) {
54 warning( "Cannot run \"$cmd->[ 0 ]\": $@" );
55 }; # if
56 debug( "stdout:", $$stdout, "(eof)", "stderr:", $$stderr, "(eof)" );
57 } else {
58 warning( "No \"$cmd->[ 0 ]\" found in PATH." );
59 $rc = -1;
60 }; # if
61 return $rc;
62}; # sub run
63
64
65sub get_arch($$$) {
66 my ( $name, $str, $exps ) = @_;
67 my ( $arch, $count );
68 $count = 0;
69 foreach my $re ( keys( %$exps ) ) {
70 if ( $str =~ $re ) {
71 $arch = $exps->{ $re };
72 ++ $count;
73 }; # if
74 }; # for
75 if ( $count != 1 or not Platform::canon_arch( $arch ) ) {
76 warning( "Cannot detect $name architecture: $str" );
77 return undef;
78 }; # if
79 return $arch;
80}; # sub get_arch
81
82sub encode($) {
83 my ( $str ) = @_;
84 $str =~ s{ }{_}g;
85 return $str;
86}; # sub encode
87
88
89# --------------------------------------------------------------------------------------------------
90# get_xxx_version subroutines.
91# --------------------------------------------------------------------------------------------------
92#
93# Some of get_xxx_version() subroutines accept an argument -- a tool name. For example,
94# get_intel_compiler_version() can report version of C, C++, or Fortran compiler. The tool for
95# report should be specified by argument, for example: get_intel_compiler_version( "ifort" ).
96#
97# get_xxx_version() subroutines returns list of one or two elements:
98# 1. The first element is short tool name (like "gcc", "g++", "icl", etc).
99# 2. The second element is version string.
100# If returned list contain just one element, it means there is a problem with the tool.
101#
102
103sub get_perl_version() {
104 my ( $rc, $stdout, $stderr, $version );
105 my $tool = "perl";
106 my ( @ret ) = ( $tool );
107 $rc = run( [ $tool, "--version" ], $stdout, $stderr );
108 if ( $rc >= 0 ) {
109 # Typical perl output:
110 # This is perl, v5.10.0 built for x86_64-linux-thread-multi
111 # This is perl, v5.8.8 built for MSWin32-x64-multi-thread
112 # This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
113 if ( $stdout !~ m{^This is perl.*v(\d+\.\d+(?:\.\d+)).*built for}m ) {
114 warning( "Cannot parse perl output:", $stdout, "(oef)" );
115 }; # if
116 $version = $1;
117 if ( $target_os eq "win" ) {
118 if ( $stdout !~ m{Binary build (.*) provided by ActiveState } ) {
119 warning( "Perl is not ActiveState one" );
120 }; # if
121 }; # if
122 }; # if
123 push( @ret, $version );
124 return @ret;
125}; # sub get_perl_version
126
127
128sub get_gnu_make_version() {
129 my ( $rc, $stdout, $stderr, $version );
130 my $tool = "make";
131 my ( @ret ) = ( $tool );
132 my ( $path );
133 $rc = run( [ $tool, "--version" ], $stdout, $stderr, $path );
134 if ( $rc >= 0 ) {
135 # Typical make output:
136 # GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
137 # GNU Make 3.81
138 if ( $stdout =~ m{^GNU Make (?:version )?(\d+\.\d+(?:\.\d+)?)(?:,|\s)} ) {
139 $version = $1;
140 }; # if
141 if ( $target_os eq "win" and $stdout =~ m{built for ([a-z0-9-]+)} ) {
142 my $built_for = $1;
143 debug( "GNU Make built for: \"$built_for\"." );
144 if ( $built_for =~ m{cygwin}i ) {
145 warning( "\"$path\" is a Cygwin make, it is *not* suitable." );
146 return @ret;
147 }; # if
148 }; # if
149 }; # if
150 push( @ret, $version );
151 return @ret;
152}; # sub get_gnu_make_version
153
154
155sub get_intel_compiler_version($) {
156 my ( $tool ) = @_; # Tool name, like "icc", "icpc", "icl", or "ifort".
157 my ( @ret ) = ( $tool );
158 my ( $rc, $stdout, $stderr, $tool_re );
159 my $version;
160 my $ic_archs = {
161 qr{32-bit|IA-32} => "32",
162 qr{Intel\(R\) 64} => "32e",
163 qr{Intel\(R\) [M][I][C] Architecture} => "32e",
164 };
165 $tool_re = quotemeta( $tool );
166 $rc = run( [ $tool, ( $target_os eq "win" ? () : ( "-V" ) ) ], $stdout, $stderr );
167 if ( $rc < 0 ) {
168 return @ret;
169 }; # if
170 # Intel compiler version string is in the first line of stderr. Get it.
171 #$stderr =~ m{\A(.*\n?)};
172 # AC: Let's look for version string in the first line which contains "Intel" string.
173 # This allows to use 11.1 and 12.0 compilers on new MAC machines by ignoring
174 # huge number of warnings issued by old compilers.
175 $stderr =~ m{^(Intel.*)$}m;
176 my $vstr = $1;
177 my ( $apl, $ver, $bld, $pkg );
178 if ( 0 ) {
179 } elsif ( $vstr =~ m{^Intel.*?Compiler\s+(.*?),?\s+Version\s+(.*?)\s+Build\s+(\S+)(?:\s+Package ID: (\S+))?} ) {
180 # 9.x, 10.x, 11.0.
181 ( $apl, $ver, $bld, $pkg ) = ( $1, $2, $3, $4 );
182 } elsif ( $vstr =~ m{^Intel's (.*?) Compiler,?\s+Version\s+(.*?)\s+Build\s+(\S+)} ) {
183 # 11.1
184 ( $apl, $ver, $bld ) = ( $1, $2, $3 );
185 } else {
186 warning( "Cannot parse ${tool}'s stderr:", $stderr, "(eof)" );
187 return @ret;
188 }; # if
189 my $ic_arch = get_arch( "Intel compiler", $apl, $ic_archs );
190 if ( not defined( $ic_arch ) ) {
191 return @ret;
192 }; # if
193 if ( Platform::canon_arch( $ic_arch ) ne $target_arch ) {
194 warning( "Target architecture is $target_arch, $tool for $ic_arch found." );
195 return @ret;
196 }; # if
197 # Normalize version.
198 my $stage;
199 $ver =~ s{\s+}{ }g;
200 $ver = lc( $ver );
201 if ( $ver =~ m{\A(\d+\.\d+(?:\.\d+)?) ([a-z]+)\a}i ) {
202 ( $version, $stage ) = ( $1, $2 );
203 } else {
204 ( $version, $stage ) = ( $ver, "" );
205 }; # if
206 # Parse package.
207 if ( defined( $pkg ) ) {
208 if ( $pkg !~ m{\A[lwm]_[a-z]+_[a-z]_(\d+\.\d+\.\d+)\z}i ) {
209 warning( "Cannot parse Intel compiler package: $pkg" );
210 return @ret;
211 }; # if
212 $pkg = $1;
213 $version = $pkg;
214 }; # if
215 push( @ret, "$version " . ( $stage ? "$stage " : "" ) . "($bld) for $ic_arch" );
216 # Ok, version of Intel compiler found successfully. Now look at config file.
217 # Installer of Intel compiler tends to add a path to MS linker into compiler config file.
218 # It leads to troubles. For example, all the environment set up for MS VS 2005, but Intel
219 # compiler uses lnker from MS VS 2003 because it is specified in config file.
220 # To avoid such troubles, make sure:
221 # ICLCFG/IFORTCFG environment variable exists or
222 # compiler config file does not exist, or
223 # compiler config file does not specify linker.
224 if ( $target_os eq "win" ) {
225 if ( not exists( $ENV{ uc( $tool . "cfg" ) } ) ) {
226 # If ICLCFG/IFORTCFG environment varianle exists, everything is ok.
227 # Otherwise check compiler's config file.
228 my $path = which( $tool );
229 $path =~ s{\.exe\z}{}i; # Drop ".exe" suffix.
230 $path .= ".cfg"; # And add ".cfg" one.
231 if ( -f $path ) {
232 # If no config file exists, it is ok.
233 # Otherwise analyze its content.
234 my $bulk = read_file( $path );
235 $bulk =~ s{#.*\n}{}g; # Remove comments.
236 my @options = ( "Qvc", "Qlocation,link," );
237 foreach my $opt ( @options ) {
238 if ( $bulk =~ m{[-/]$opt} ) {
239 warning( "Compiler config file \"$path\" contains \"-$opt\" option." );
240 }; # if
241 }; # foreach
242 }; # if
243 }; # if
244 }; # if
245 return @ret;
246}; # sub get_intel_compiler_version
247
248
249sub get_gnu_compiler_version($) {
250 my ( $tool ) = @_;
251 my ( @ret ) = ( $tool );
252 my ( $rc, $stdout, $stderr, $version );
253 $rc = run( [ $tool, "--version" ], $stdout, $stderr );
254 if ( $rc >= 0 ) {
255 my ( $ver, $bld );
256 if ( $target_os eq "mac" ) {
257 # i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
258 # i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
259 # i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
260 $stdout =~ m{^.*? \(GCC\) (\d+\.\d+\.\d+) \(.*Apple.*?Inc\. build (\d+)\)}m;
261 ( $ver, $bld ) = ( $1, $2 );
262 } else {
263 if ( 0 ) {
264 } elsif ( $stdout =~ m{^.*? \(GCC\) (\d+\.\d+\.\d+)(?: (\d+))?}m ) {
265 # g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
266 # GNU Fortran (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
267 ( $ver, $bld ) = ( $1, $2 );
268 } elsif ( $stdout =~ m{^.*? \(SUSE Linux\) (\d+\.\d+\.\d+)\s+\[.*? (\d+)\]}m ) {
269 # gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
270 ( $ver, $bld ) = ( $1, $2 );
Jim Cownie181b4bb2013-12-23 17:28:57 +0000271 } elsif ( $stdout =~ m{^.*? \(SUSE Linux\) (\d+\.\d+\.\d+)\s+\d+\s+\[.*? (\d+)\]}m ) {
272 # gcc (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]
273 ( $ver, $bld ) = ( $1, $2 );
Jim Cownie5e8470a2013-09-27 10:38:44 +0000274 } elsif ( $stdout =~ m{^.*? \((Debian|Ubuntu).*?\) (\d+\.\d+\.\d+)}m ) {
275 # gcc (Debian 4.7.2-22) 4.7.2
276 # Debian support from Sylvestre Ledru
277 # Thanks!
278 $ver = $2;
279 }; # if
280 }; # if
281 if ( defined( $ver ) ) {
282 $version = $ver . ( defined( $bld ) ? " ($bld)" : "" );
283 } else {
284 warning( "Cannot parse GNU compiler version:", $stdout, "(eof)" );
285 }; # if
286 }; # if
287 push( @ret, $version );
288 return @ret;
289}; # sub get_gnu_compiler_version
290
291
Jim Cownie181b4bb2013-12-23 17:28:57 +0000292sub get_clang_compiler_version($) {
293 my ( $tool ) = @_;
294 my ( @ret ) = ( $tool );
295 my ( $rc, $stdout, $stderr, $version );
296 $rc = run( [ $tool, "--version" ], $stdout, $stderr );
297 if ( $rc >= 0 ) {
298 my ( $ver, $bld );
Alp Tokerc5df02f2014-02-24 12:29:09 +0000299 if ( $target_os eq "mac" and $stdout =~ m{^.*? (\d+\.\d+) \(.*-(\d+\.\d+\.\d+)\)}m ) {
Jim Cownie181b4bb2013-12-23 17:28:57 +0000300 # Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Jim Cownie181b4bb2013-12-23 17:28:57 +0000301 ( $ver, $bld ) = ( $1, $2 );
302 } else {
303 if ( 0 ) {
Alp Tokerc5df02f2014-02-24 12:29:09 +0000304 } elsif ( $stdout =~ m{^.*? (\d+\.\d+)( \((.*)\))?}m ) {
Jim Cownie181b4bb2013-12-23 17:28:57 +0000305 # clang version 3.3 (tags/RELEASE_33/final)
Alp Tokerc5df02f2014-02-24 12:29:09 +0000306 ( $ver, $bld ) = ( $1, $3 );
Jim Cownie181b4bb2013-12-23 17:28:57 +0000307 }
308 }; # if
309 if ( defined( $ver ) ) {
310 $version = $ver . ( defined( $bld ) ? " ($bld)" : "" );
311 } else {
312 warning( "Cannot parse Clang compiler version:", $stdout, "(eof)" );
313 }; # if
314 }; # if
315 push( @ret, $version );
316 return @ret;
317}; # sub get_gnu_compiler_version
318
319
Jim Cownie5e8470a2013-09-27 10:38:44 +0000320sub get_ms_compiler_version() {
321 my ( $rc, $stdout, $stderr, $version );
322 my $tool = "cl";
323 my ( @ret ) = ( $tool );
324 my $mc_archs = {
325 qr{80x86} => "IA-32 architecture",
326 qr{AMD64|x64} => "Intel(R) 64",
327 };
328 $rc = run( [ $tool ], $stdout, $stderr );
329 if ( $rc < 0 ) {
330 return @ret;
331 }; # if
332 if ( $stderr !~ m{^Microsoft .* Compiler Version (.*?) for (.*)\s*$}m ) {
333 warning( "Cannot parse MS compiler output:", $stderr, "(eof)" );
334 return @ret;
335 }; # if
336 my ( $ver, $apl ) = ( $1, $2 );
337 if ( $ver !~ m{\A\d+(?:\.\d+)+\z} ) {
338 warning( "Cannot parse MS compiler version: $ver" );
339 return @ret;
340 }; # if
341 my $mc_arch = get_arch( "MS compiler", $apl, $mc_archs );
342 if ( not defined( $mc_arch ) ) {
343 return @ret;
344 }; # if
345 if ( Platform::canon_arch( $mc_arch ) ne $target_arch ) {
346 warning( "Target architecture is $target_arch, $tool for $mc_arch found" );
347 return @ret;
348 }; # if
349 $version = "$ver for $target_arch";
350 push( @ret, $version );
351 return @ret;
352}; # sub get_ms_compiler_version
353
354
355sub get_ms_linker_version() {
356 my ( $rc, $stdout, $stderr, $version );
357 my $tool = "link";
358 my ( @ret ) = ( $tool );
359 my ( $path );
360 $rc = run( [ $tool ], $stdout, $stderr, $path );
361 if ( $rc < 0 ) {
362 return @ret;
363 }; # if
364 if ( $stdout !~ m{^Microsoft \(R\) Incremental Linker Version (\d+(?:\.\d+)+)\s*$}m ) {
365 warning( "Cannot parse MS linker output:", $stdout, "(eof)" );
366 if ( $stderr =~ m{^link: missing operand} ) {
367 warning( "Seems \"$path\" is a Unix-like \"link\" program, not MS linker." );
368 }; # if
369 return @ret;
370 }; # if
371 $version = ( $1 );
372 push( @ret, $version );
373 return @ret;
374}; # sub get_ms_linker_version
375
376
377# --------------------------------------------------------------------------------------------------
378# "main" program.
379# --------------------------------------------------------------------------------------------------
380
381my $make;
382my $intel = 1; # Check Intel compilers.
Jim Cownie181b4bb2013-12-23 17:28:57 +0000383my $fortran = 0; # Check for corresponding Fortran compiler, ifort for intel
384 # gfortran for gnu
385 # gfortran for clang
386my $clang = 0; # Check Clang Compilers.
Jim Cownie5e8470a2013-09-27 10:38:44 +0000387my $intel_compilers = {
388 "lin" => { c => "icc", cpp => "icpc", f => "ifort" },
389 "lrb" => { c => "icc", cpp => "icpc", f => "ifort" },
390 "mac" => { c => "icc", cpp => "icpc", f => "ifort" },
391 "win" => { c => "icl", cpp => undef, f => "ifort" },
392};
Jim Cownie181b4bb2013-12-23 17:28:57 +0000393my $gnu_compilers = {
394 "lin" => { c => "gcc", cpp => "g++", f => "gfortran" },
395 "mac" => { c => "gcc", cpp => "g++", f => "gfortran" },
396};
397my $clang_compilers = {
398 "lin" => { c => "clang", cpp => "clang++" },
399 "mac" => { c => "clang", cpp => "clang++" },
400};
Jim Cownie5e8470a2013-09-27 10:38:44 +0000401
402get_options(
403 Platform::target_options(),
404 "intel!" => \$intel,
Jim Cownie181b4bb2013-12-23 17:28:57 +0000405 "fortran" => \$fortran,
406 "clang" => \$clang,
Jim Cownie5e8470a2013-09-27 10:38:44 +0000407 "make" => \$make,
408 "pedantic" => \$pedantic,
409);
410
411my @versions;
412push( @versions, [ "Perl", get_perl_version() ] );
413push( @versions, [ "GNU Make", get_gnu_make_version() ] );
414if ( $intel ) {
415 my $ic = $intel_compilers->{ $target_os };
416 push( @versions, [ "Intel C Compiler", get_intel_compiler_version( $ic->{ c } ) ] );
417 if ( defined( $ic->{ cpp } ) ) {
418 # If Intel C++ compiler has a name different from C compiler, check it as well.
419 push( @versions, [ "Intel C++ Compiler", get_intel_compiler_version( $ic->{ cpp } ) ] );
420 }; # if
Jim Cownie181b4bb2013-12-23 17:28:57 +0000421 # fortran check must be explicitly specified on command line with --fortran
422 if ( $fortran ) {
423 if ( defined( $ic->{ f } ) ) {
424 push( @versions, [ "Intel Fortran Compiler", get_intel_compiler_version( $ic->{ f } ) ] );
425 }; # if
426 };
Jim Cownie5e8470a2013-09-27 10:38:44 +0000427}; # if
428if ( $target_os eq "lin" or $target_os eq "mac" ) {
Jim Cownie181b4bb2013-12-23 17:28:57 +0000429 if ( $clang ) {
430 push( @versions, [ "Clang C Compiler", get_clang_compiler_version( $clang_compilers->{ $target_os }->{ c } ) ] );
431 push( @versions, [ "Clang C++ Compiler", get_clang_compiler_version( $clang_compilers->{ $target_os }->{ cpp } ) ] );
Alp Toker0032b4d2014-02-24 11:47:00 +0000432 } else {
433 push( @versions, [ "GNU C Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ c } ) ] );
434 push( @versions, [ "GNU C++ Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ cpp } ) ] );
435 }; # if
Jim Cownie181b4bb2013-12-23 17:28:57 +0000436 # if intel fortran has been checked then gnu fortran is unnecessary
437 # also, if user specifies clang as build compiler, then gfortran is assumed fortran compiler
438 if ( $fortran and not $intel ) {
439 push( @versions, [ "GNU Fortran Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ f } ) ] );
440 };
441};
Jim Cownie5e8470a2013-09-27 10:38:44 +0000442if ( $target_os eq "win" ) {
443 push( @versions, [ "MS C/C++ Compiler", get_ms_compiler_version() ] );
444 push( @versions, [ "MS Linker", get_ms_linker_version() ] );
445}; # if
Jim Cownie181b4bb2013-12-23 17:28:57 +0000446
Jim Cownie5e8470a2013-09-27 10:38:44 +0000447my $count = 0;
448foreach my $item ( @versions ) {
449 my ( $title, $tool, $version ) = @$item;
450 if ( not defined( $version ) ) {
451 $version = "--- N/A ---";
452 ++ $count;
453 }; # if
454 if ( $make ) {
455 printf( "%s=%s\n", encode( $tool ), encode( $version ) );
456 } else {
457 printf( "%-25s: %s\n", $title, $version );
458 }; # if
459}; # foreach
460
461exit( $count == 0 ? 0 : 1 );
462
463__END__
464
465=pod
466
467=head1 NAME
468
469B<check-tools.pl> -- Check development tools availability and versions.
470
471=head1 SYNOPSIS
472
473B<check-tools.pl> I<OPTION>...
474
475=head1 OPTIONS
476
477=over
478
479=item B<--make>
480
481Produce output suitable for using in makefile: short tool names (e. g. "icc" instead of "Intel C
482Compiler"), spaces in version strings replaced with underscores.
483
484=item Tools selection
485
486=over
487
488=item B<-->[B<no->]B<-gnu-fortran>
489
490Check GNU Fortran compiler. By default, it is not checked.
491
492=item B<-->[B<no->]B<intel>
493
494Check Intel C, C++ and Fortran compilers. This is default.
495
496=back
497
498=item Platform selection
499
500=over
501
502=item B<--architecture=>I<str>
503
504Specify target architecture. Used in cross-builds, for example when building 32-bit applications on
505Intel(R) 64 machine.
506
507If architecture is not specified explicitly, value of LIBOMP_ARCH environment variable is used.
508If LIBOMP_ARCH is not defined, host architecture detected.
509
510=item B<--os=>I<str>
511
512Specify target OS name. Used in cross-builds, for example when building Intel(R) Many Integrated Core Architecture applications on
513Windows* OS.
514
515If OS is not specified explicitly, value of LIBOMP_OS environment variable is used.
516If LIBOMP_OS is not defined, host OS detected.
517
518=back
519
520=back
521
522=head2 Standard Options
523
524=over
525
526=item B<--doc>
527
528=item B<--manual>
529
530Print full help message and exit.
531
532=item B<--help>
533
534Print short help message and exit.
535
536=item B<--usage>
537
538Print very short usage message and exit.
539
540=item B<--verbose>
541
542Do print informational messages.
543
544=item B<--version>
545
546Print version and exit.
547
548=item B<--quiet>
549
550Work quiet, do not print informational messages.
551
552=back
553
554=head1 DESCRIPTION
555
556This script checks availability and versions of development tools. By default, the script checks:
557Perl, GNU Make, Intel compilers, GNU C and C++ compilers (Linux* OS and OS X*),
558Microsoft C/C++ compiler and linker (Windows* OS).
559
560The sript prints nice looking table or machine-readable strings.
561
562=head2 EXIT
563
564=over
565
566=item *
567
5680 -- All programs found.
569
570=item *
571
5721 -- Some of tools are not found.
573
574=back
575
576=head1 EXAMPLES
577
578 $ check-tools.pl
579 Perl : 5.8.0
580 GNU Make : 3.79.1
581 Intel C Compiler : 11.0 (20080930) for 32e
582 Intel C++ Compiler : 11.0 (20080930) for 32e
583 Intel Fortran Compiler : 10.1.008 (20070913) for 32e
584 GNU C Compiler : 3.2.3 (20030502)
585 GNU C++ Compiler : 3.2.3 (20030502)
586
587 > check-tools.pl --make
588 perl=5.8.8
589 make=3.81
590 icl=10.1_(20070913)_for_32e
591 ifort=10.1_(20070913)_for_32e
592 cl=14.00.40310.41_for_32e
593 link=8.00.40310.39
594
595=back
596
597=cut
598
599# end of file #
600