@@ -11,7 +11,7 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California.
1111dnl All rights reserved.
1212dnl Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
1313dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
14- dnl Copyright (c) 2015 Research Organization for Information Science
14+ dnl Copyright (c) 2015-2016 Research Organization for Information Science
1515dnl and Technology (RIST). All rights reserved.
1616dnl Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
1717dnl reserved.
@@ -1234,8 +1234,6 @@ AC_DEFUN([OPAL_ASM_FIND_FILE], [
12341234 AC_REQUIRE ( [ AC_PROG_FGREP ] )
12351235
12361236if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUILTIN_SYNC" && test "$opal_cv_asm_builtin" != "BUILTIN_OSX" ; then
1237- AC_CHECK_PROG ( [ PERL] , [ perl] , [ perl] )
1238-
12391237 # see if we have a pre-built one already
12401238 AC_MSG_CHECKING ( [ for pre-built assembly file] )
12411239 opal_cv_asm_file=""
@@ -1256,27 +1254,21 @@ if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUIL
12561254 rm -rf conftest.*
12571255
12581256 if test "$opal_cv_asm_file" = "" ; then
1259- if test ! "$PERL" = "" ; then
1260- # we have perl... Can we generate a file?
1261- AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1262- mkdir -p opal/asm/generated
1263- opal_cv_asm_file="atomic-local.s"
1264- 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'
1265- if AC_TRY_EVAL(opal_try) ; then
1266- # save the warnings
1267- cat conftest.out >&AC_FD_CC
1268- AC_MSG_RESULT ( [ yes] )
1269- else
1270- # save output
1271- cat conftest.out >&AC_FD_CC
1272- opal_cv_asm_file=""
1273- AC_MSG_RESULT ( [ failed] )
1274- AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
1275- AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
1276- fi
1257+ # Can we generate a file?
1258+ AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1259+ mkdir -p opal/asm/generated
1260+ opal_cv_asm_file="atomic-local.s"
1261+ 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'
1262+ if AC_TRY_EVAL(opal_try) ; then
1263+ # save the warnings
1264+ cat conftest.out >&AC_FD_CC
1265+ AC_MSG_RESULT ( [ yes] )
12771266 else
1278- AC_MSG_WARN ( [ Could not find prebuilt atomic operations file and could not] )
1279- AC_MSG_WARN ( [ find perl to attempt to generate a custom assembly file.] )
1267+ # save output
1268+ cat conftest.out >&AC_FD_CC
1269+ opal_cv_asm_file=""
1270+ AC_MSG_RESULT ( [ failed] )
1271+ AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
12801272 AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
12811273 fi
12821274 fi
0 commit comments