1
1
openmpi/opal/mca/memchecker/configure.m4
Ralph Castain 40a2bfa238 WARNING: Work on the temp branch being merged here encountered problems with bugs in subversion. Considerable effort has gone into validating the branch. However, not all conditions can be checked, so users are cautioned that it may be advisable to not update from the trunk for a few days to allow MTT to identify platform-specific issues.
This merges the branch containing the revamped build system based around converting autogen from a bash script to a Perl program. Jeff has provided emails explaining the features contained in the change.

Please note that configure requirements on components HAVE CHANGED. For example. a configure.params file is no longer required in each component directory. See Jeff's emails for an explanation.

This commit was SVN r23764.
2010-09-17 23:04:06 +00:00

49 строки
1.8 KiB
Bash

dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2004-2006 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
dnl
dnl $HEADER$
dnl
dnl we only want one :)
m4_define(MCA_opal_memchecker_CONFIGURE_MODE, STOP_AT_FIRST)
AC_DEFUN([MCA_opal_memchecker_CONFIG],[
ompi_show_subsubtitle "Pre-configuring the framework memchecker"
AC_MSG_CHECKING([if --enable-memchecker was specified])
AC_ARG_ENABLE(memchecker,
AC_HELP_STRING([--enable-memchecker],
[Enable memory and buffer checks. Note that disabling will *also* add "memchecker" to the --enable-mca-no-build list (default: disabled)]))
if test "$enable_memchecker" = "yes"; then
AC_MSG_RESULT([yes])
WANT_MEMCHECKER=1
else
AC_MSG_RESULT([no (adding "memchecker" to --enable-mca-no-build list)])
WANT_MEMCHECKER=0
# Setting this environment variable causes
# MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by
# MCA_CONFIGURE_FRAMEWORK, below) to rule that the component
# should not be built. It is effectively the same as adding
# "memchecker" to the --enable-mca-no-build list.
DISABLE_memchecker=1
fi
AC_DEFINE_UNQUOTED([OMPI_WANT_MEMCHECKER],
[$WANT_MEMCHECKER],
[if the memory and buffer checking should be enabled])
AM_CONDITIONAL([OMPI_WANT_MEMCHECKER],
[test "$WANT_MEMCHECKER" = "1"])
# first, compile all the components
MCA_CONFIGURE_FRAMEWORK($1, $2, 1)
AC_DEFINE_UNQUOTED([OMPI_MEMCHECKER_HAVE_COMPONENT], [$memchecker_base_found],
[Whether any opal memchecker mca components were found])
])