File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -970,16 +970,15 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
970970
971971 AC_ARG_ENABLE ( [ builtin-atomics] ,
972972 [ AC_HELP_STRING ([ --enable-builtin-atomics] ,
973- [ Enable use of __sync builtin atomics (default: enabled)] )] ,
974- [ ] , [ enable_builtin_atomics="yes"] )
973+ [ Enable use of __sync builtin atomics (default: enabled)] )] )
975974
976975 opal_cv_asm_builtin="BUILTIN_NO"
977- if test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes" ; then
978- OPAL_CHECK_GCC_ATOMIC_BUILTINS([ opal_cv_asm_builtin="BUILTIN_GCC"] , [ ] )
979- fi
980- if test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes" ; then
981- OPAL_CHECK_SYNC_BUILTINS( [ opal_cv_asm_builtin="BUILTIN_SYNC" ] , [ ] )
982- fi
976+ AS_IF ( [ test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" ! = "no" ] ,
977+ [ OPAL_CHECK_GCC_ATOMIC_BUILTINS([ opal_cv_asm_builtin="BUILTIN_GCC"] , [ ] ) ] )
978+ AS_IF ( [ test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" != "no" ] ,
979+ [ OPAL_CHECK_SYNC_BUILTINS( [ opal_cv_asm_builtin="BUILTIN_SYNC" ] , [ ] ) ] )
980+ AS_IF ( [ test "$ opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes" ] ,
981+ [ AC_MSG_ERROR ( [ __sync builtin atomics requested but not found. ] ) ] )
983982
984983 OPAL_CHECK_ASM_PROC
985984 OPAL_CHECK_ASM_TEXT
You can’t perform that action at this time.
0 commit comments