} else {
# Ignore lines with no compiler commands.
- next if $line !~ /\b(cc\b|gcc\b|g\+\+|c\+\+)/;
+ next if $line !~ /\b(cc|gcc|g\+\+|c\+\+)(\s|\\)/;
# Ignore false positives.
#
}
foreach my $line (@input) {
+ # Ignore false positives.
+ #
+ # ./configure summary.
+ next if $line =~ /^Compiler:\s+(cc|gcc|g\+\+|c\+\+)$/;
+
# Is this a compiler or linker command?
my $compiler = 1;
my $linker = 0;