Skip to content

Commit 4dd8c4e

Browse files
committed
envmgmt: update configure.ac to prefer mpifort
Signed-off-by: Thomas Naughton <[email protected]>
1 parent d501299 commit 4dd8c4e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

environ-mgmt/configure.ac

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ CFLAGS_save=$CFLAGS
6767
AC_PROG_CC
6868
CFLAGS=$CFLAGS_save
6969

70+
dnl
71+
dnl Fortran compiler - prefer mpifort if available
72+
dnl
73+
74+
if test "$FC" = ""; then
75+
AC_CHECK_PROG(HAVE_MPIFORT, mpifort, yes, no)
76+
if test "$HAVE_MPIFORT" = "yes"; then
77+
FC=mpifort
78+
export FC
79+
fi
80+
fi
81+
7082
FFLAGS_save=$FFLAGS
7183
AC_PROG_FC
7284
FFLAGS=$FFLAGS_save

0 commit comments

Comments
 (0)