Browse Source

Fix Fortran compiler detection

- Test with '-x' operator to ensure file is executable.
- 'break' is not a valid Perl keyword.
tags/v0.2.0^2
Zaheer Chothia 13 years ago
parent
commit
44124d3055
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      f_check

+ 3
- 2
f_check View File

@@ -32,11 +32,12 @@ if ($compiler eq "") {
"pgf95", "pgf90", "pgf77",
"ifort");
OUTER:
foreach $lists (@lists) {
foreach $path (@path) {
if (-f $path . "/" . $lists) {
if (-x $path . "/" . $lists) {
$compiler = $lists;
break;
last OUTER;
}
}
}


Loading…
Cancel
Save