File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dnl Copyright (c) 2007 Los Alamos National Security, LLC. All rights
14
14
dnl reserved.
15
15
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
16
16
dnl Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved.
17
- dnl Copyright (c) 2015 Research Organization for Information Science
17
+ dnl Copyright (c) 2015-2016 Research Organization for Information Science
18
18
dnl and Technology (RIST). All rights reserved.
19
19
dnl $COPYRIGHT $
20
20
dnl
@@ -114,13 +114,19 @@ AC_DEFUN([OMPI_SETUP_FC],[
114
114
# "ignore TKR" comment pragmas that it doesn't understand, and
115
115
# will warn about them. From Tony Goetz at Absoft, we can use the
116
116
# -Z790 flag to quell these warnings.
117
+ # The NAG compiler is too picky about naming conventions, so use the
118
+ # -mismatch flag to keep it happy
117
119
AC_MSG_CHECKING([for $FC warnings flags])
118
120
fc_version=` $FC --version 2>&1 `
119
121
case " $fc_version " in
120
122
* Absoft* )
121
123
AC_MSG_RESULT([-Z790])
122
124
FCFLAGS=" $FCFLAGS -Z790"
123
125
;;
126
+ * NAG* )
127
+ AC_MSG_RESULT([-mismatch])
128
+ FCFLAGS=" $FCFLAGS -mismatch"
129
+ ;;
124
130
* )
125
131
AC_MSG_RESULT([none])
126
132
;;
You can’t perform that action at this time.
0 commit comments