@@ -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$
1717dnl
@@ -1111,8 +1111,6 @@ AC_DEFUN([OPAL_ASM_FIND_FILE], [
11111111 AC_REQUIRE ( [ AC_PROG_FGREP ] )
11121112
11131113if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUILTIN_SYNC" && test "$opal_cv_asm_builtin" != "BUILTIN_OSX" ; then
1114- AC_CHECK_PROG ( [ PERL] , [ perl] , [ perl] )
1115-
11161114 # see if we have a pre-built one already
11171115 AC_MSG_CHECKING ( [ for pre-built assembly file] )
11181116 opal_cv_asm_file=""
@@ -1133,27 +1131,21 @@ if test "$opal_cv_asm_arch" != "WINDOWS" && test "$opal_cv_asm_builtin" != "BUIL
11331131 rm -rf conftest.*
11341132
11351133 if test "$opal_cv_asm_file" = "" ; then
1136- if test ! "$PERL" = "" ; then
1137- # we have perl... Can we generate a file?
1138- AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1139- mkdir -p opal/asm/generated
1140- opal_cv_asm_file="atomic-local.s"
1141- 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'
1142- if AC_TRY_EVAL(opal_try) ; then
1143- # save the warnings
1144- cat conftest.out >&AC_FD_CC
1145- AC_MSG_RESULT ( [ yes] )
1146- else
1147- # save output
1148- cat conftest.out >&AC_FD_CC
1149- opal_cv_asm_file=""
1150- AC_MSG_RESULT ( [ failed] )
1151- AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
1152- AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
1153- fi
1134+ # Can we generate a file?
1135+ AC_MSG_CHECKING ( [ whether possible to generate assembly file] )
1136+ mkdir -p opal/asm/generated
1137+ opal_cv_asm_file="atomic-local.s"
1138+ 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'
1139+ if AC_TRY_EVAL(opal_try) ; then
1140+ # save the warnings
1141+ cat conftest.out >&AC_FD_CC
1142+ AC_MSG_RESULT ( [ yes] )
11541143 else
1155- AC_MSG_WARN ( [ Could not find prebuilt atomic operations file and could not] )
1156- AC_MSG_WARN ( [ find perl to attempt to generate a custom assembly file.] )
1144+ # save output
1145+ cat conftest.out >&AC_FD_CC
1146+ opal_cv_asm_file=""
1147+ AC_MSG_RESULT ( [ failed] )
1148+ AC_MSG_WARN ( [ Could not build atomic operations assembly file.] )
11571149 AC_MSG_WARN ( [ There will be no atomic operations for this build.] )
11581150 fi
11591151 fi
0 commit comments