Skip to content

Commit 36ce201

Browse files
committed
configure.ac: group similar tests together
Add a missing AC_MSG about SPC, and group it together with the rest of the MPI-layer options. Also put the library naming test there, since it emits a message about "libmpi_FOO". Move the OSHMEM tests down below all of that so that the output in that section solely has to do with OSHMEM tests (and not have the results of some OMPI tests tacked on to the end of that section). Finally, make some trivial whitespace fixes. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 6992c64 commit 36ce201

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

configure.ac

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,12 @@ m4_ifdef([project_oshmem],
269269

270270
OPAL_CONFIGURE_OPTIONS
271271

272+
###########################
273+
# Open MPI options
272274
m4_ifdef([project_ompi], [OMPI_CONFIGURE_OPTIONS])
273-
m4_ifdef([project_oshmem], [OSHMEM_CONFIGURE_OPTIONS])
274-
275-
# Set up project specific AM_CONDITIONALs
276-
AS_IF([test "$enable_ompi" != "no"], [project_ompi_amc=true], [project_ompi_amc=false])
277-
m4_ifndef([project_ompi], [project_ompi_amc=false])
278-
279-
AS_IF([test "$enable_oshmem" != "no"], [project_oshmem_amc=true], [project_oshmem_amc="no (disabled)"])
280-
m4_ifndef([project_oshmem], [project_oshmem_amc="no (not available)"])
281275

282276
# Enable/Disable Software-Based Performance Counters Capability
277+
AC_MSG_CHECKING([if want software-based performance counters (SPC)])
283278
AC_ARG_ENABLE([spc],
284279
[AS_HELP_STRING([--enable-spc],
285280
[Enable software-based performance counters capability (default: disabled)])])
@@ -305,10 +300,21 @@ fi
305300
# The library prefixes must be set before we call OPAL MCA. Here is
306301
# as good a place as any.
307302
m4_ifdef([project_opal],
308-
[OPAL_SET_LIB_NAME([open-pal])])
303+
[OPAL_SET_LIB_NAME([open-pal])])
309304

310305
m4_ifdef([project_ompi],
311-
[OMPI_SET_LIB_NAME([])])
306+
[OMPI_SET_LIB_NAME([])])
307+
308+
###########################
309+
# OSHMEM options
310+
m4_ifdef([project_oshmem], [OSHMEM_CONFIGURE_OPTIONS])
311+
312+
# Set up project specific AM_CONDITIONALs
313+
AS_IF([test "$enable_ompi" != "no"], [project_ompi_amc=true], [project_ompi_amc=false])
314+
m4_ifndef([project_ompi], [project_ompi_amc=false])
315+
316+
AS_IF([test "$enable_oshmem" != "no"], [project_oshmem_amc=true], [project_oshmem_amc="no (disabled)"])
317+
m4_ifndef([project_oshmem], [project_oshmem_amc="no (not available)"])
312318

313319
############################################################################
314320
# Libtool: part one

0 commit comments

Comments
 (0)