@@ -1255,27 +1255,21 @@ if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUIL
12551255 rm -rf conftest.*
12561256
12571257 if test "$opal_cv_asm_file" = "" ; then
1258- if test ! "$PERL" = "" ; then
1259- # we have perl... Can we generate a file?
1260- AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1261- mkdir -p opal/asm/generated
1262- opal_cv_asm_file="atomic-local.s"
1263- opal_try='$PERL $OPAL_TOP_SRCDIR/opal/asm/generate-asm.pl $opal_cv_asm_arch "$opal_cv_asm_format" $OPAL_TOP_SRCDIR/opal/asm/base $OPAL_TOP_BUILDDIR/opal/asm/generated/$opal_cv_asm_file >conftest.out 2>&1'
1264- if AC_TRY_EVAL(opal_try) ; then
1265- # save the warnings
1266- cat conftest.out >&AC_FD_CC
1267- AC_MSG_RESULT ( [ yes] )
1268- else
1269- # save output
1270- cat conftest.out >&AC_FD_CC
1271- opal_cv_asm_file=""
1272- AC_MSG_RESULT ( [ failed] )
1273- AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
1274- AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
1275- fi
1258+ # Can we generate a file?
1259+ AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1260+ mkdir -p opal/asm/generated
1261+ opal_cv_asm_file="atomic-local.s"
1262+ opal_try='$PERL $OPAL_TOP_SRCDIR/opal/asm/generate-asm.pl $opal_cv_asm_arch "$opal_cv_asm_format" $OPAL_TOP_SRCDIR/opal/asm/base $OPAL_TOP_BUILDDIR/opal/asm/generated/$opal_cv_asm_file >conftest.out 2>&1'
1263+ if AC_TRY_EVAL(opal_try) ; then
1264+ # save the warnings
1265+ cat conftest.out >&AC_FD_CC
1266+ AC_MSG_RESULT ( [ yes] )
12761267 else
1277- AC_MSG_WARN ( [ Could not find prebuilt atomic operations file and could not] )
1278- AC_MSG_WARN ( [ find perl to attempt to generate a custom assembly file.] )
1268+ # save output
1269+ cat conftest.out >&AC_FD_CC
1270+ opal_cv_asm_file=""
1271+ AC_MSG_RESULT ( [ failed] )
1272+ AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
12791273 AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
12801274 fi
12811275 fi
0 commit comments