dnl -*- shell-script -*- dnl dnl Copyright (c) 2016 Los Alamos National Security, LLC. All rights dnl reserved. dnl Copyright (c) 2016 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2016 Research Organization for Information Science dnl and Technology (RIST). All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow dnl dnl $HEADER$ dnl AC_DEFUN([OPAL_SUMMARY_ADD],[ OPAL_VAR_SCOPE_PUSH([ompi_summary_section ompi_summary_line ompi_summary_section_current]) dnl need to replace spaces in the section name with somethis else. _ seems like a reasonable dnl choice. if this changes remember to change OMPI_PRINT_SUMMARY as well. ompi_summary_section=$(echo $1 | tr ' ' '_') ompi_summary_line="$2: $4" ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section) if test -z "$ompi_summary_section_current" ; then if test -z "$ompi_summary_sections" ; then ompi_summary_sections=$ompi_summary_section else ompi_summary_sections="$ompi_summary_sections $ompi_summary_section" fi eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\" else eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\" fi OPAL_VAR_SCOPE_POP ]) AC_DEFUN([OPAL_SUMMARY_PRINT],[ OPAL_VAR_SCOPE_PUSH([ompi_summary_section ompi_summary_section_name]) cat <