1
1
openmpi/ompi/mca/mtl/portals4/configure.m4
Brian Barrett 91a9973bde * Make flow control on by default
* Move alarm code back into a triggered operation

This commit was SVN r26362.
2012-04-30 22:25:40 +00:00

64 строки
2.5 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
# University Research and Technology
# Corporation. All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
# of Tennessee Research Foundation. All rights
# reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
# All rights reserved.
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2010 Sandia National Laboratories. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# MCA_mtl_portals4_CONFIG(action-if-can-compile,
# [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_ompi_mtl_portals4_CONFIG],[
AC_CONFIG_FILES([ompi/mca/mtl/portals4/Makefile])
OMPI_CHECK_PORTALS4([mtl_portals4],
[mtl_portals4_happy="yes"],
[mtl_portals4_happy="no"])
AS_IF([test "$mtl_portals4_happy" = "yes"],
[mtl_portals4_WRAPPER_EXTRA_LDFLAGS="$mtl_portals4_LDFLAGS"
mtl_portals4_WRAPPER_EXTRA_LIBS="$mtl_portals4_LIBS"
$1],
[$2])
# need to propogate CPPFLAGS to all of OMPI
AS_IF([test "$DIRECT_mtl" = "portals4"],
[CPPFLAGS="$CPPFLAGS $mtl_portals4_CPPFLAGS"])
AC_ARG_ENABLE([mtl-portals4-flow-control],
[AC_HELP_STRING([--enable-mtl-portals4-flow-control],
[enable flow control for Portals 4 MTL (default: disabled)])])
AC_MSG_CHECKING([whether to enable flow control])
if test "$enable_mtl_portals4_flow_control" != "no"; then
AC_MSG_RESULT([yes])
mtl_portals4_flow_control_enabled=1
else
AC_MSG_RESULT([no])
mtl_portals4_flow_control_enabled=0
fi
AC_DEFINE_UNQUOTED([OMPI_MTL_PORTALS4_FLOW_CONTROL],
[$mtl_portals4_flow_control_enabled],
[Enable flow control for Portals4 MTL])
AM_CONDITIONAL([OMPI_MTL_PORTALS4_FLOW_CONTROL],
[test "$mtl_portals4_flow_control_enabled" = "1"])
# substitute in the things needed to build portals4
AC_SUBST([mtl_portals4_CPPFLAGS])
AC_SUBST([mtl_portals4_LDFLAGS])
AC_SUBST([mtl_portals4_LIBS])
])dnl