]>
git.saurik.com Git - apple/libc.git/blob - cc-3.3-or-greater
5 use constant VERSION3_3
=> '3.3';
10 my @pieces = split(/\./, $str);
11 for(my $i = 0; $i < 3; $i++) {
12 $vers = 1000 * $vers + $pieces[$i];
17 my $info = `cc -v 2>&1`;
18 my($version) = $info =~ /gcc\s+version\s+(\S+)/;
19 printf "%s\n", (toint
($version) >= toint
(VERSION3_3
) ? 'YES' : 'NO');