Commits

Satish Balay committed 0d57309

configure: check fortranDatatypes only when fortran is enabled
[this fixes configure crash with --with-fc=0]

Comments (0)

Files changed (1)

config/PETSc/utilities/Regression.py

       jobs.append('C')
       if self.x.found:
         jobs.append('C_X')
-      if self.fortrancpp.fortranDatatypes and hasattr(self.compilers, 'FC'):
+      if hasattr(self.compilers, 'FC') and self.fortrancpp.fortranDatatypes:
         jobs.append('F90_DataTypes')
       elif hasattr(self.compilers, 'FC'):
         jobs.append('Fortran')