File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ dnl University of Stuttgart. All rights reserved.
11
11
dnl Copyright (c) 2004-2005 The Regents of the University of California.
12
12
dnl All rights reserved.
13
13
dnl Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
14
+ dnl Copyright (c) 2019 Triad National Security, LLC. All rights
15
+ dnl reserved.
14
16
dnl $COPYRIGHT $
15
17
dnl
16
18
dnl Additional copyrights may follow
66
68
for flag in $ofi_possible_flags ; do
67
69
if test " $ofi_module_flag " = " " ; then
68
70
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag} subdir $LDFLAGS $LIBS ],
69
- [AS_VAR_SET(fortran_inc_var, [$flag ])
70
- ofi_module_flag= " $flag " ])
71
+ [ofi_module_flag= $flag ],
72
+ dnl try and see if we need to link in a possible object file
73
+ [OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
74
+ ${flag} subdir $LDFLAGS $LIBS ],
75
+ [ofi_module_flag= $flag ])])
71
76
fi
72
77
done
78
+ AS_IF([test -n " $ofi_module_flag " ],
79
+ [AS_VAR_SET(fortran_inc_var, [$ofi_module_flag ])])
73
80
cd ..
74
81
rm -rf conftest.$$
75
82
])
You can’t perform that action at this time.
0 commit comments