2008-02-17 22:29:06 +03:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2005 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.
|
2011-11-03 06:14:47 +04:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2008-02-17 22:29:06 +03:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2012-02-21 01:38:27 +04:00
|
|
|
# Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved.
|
2011-11-03 06:14:47 +04:00
|
|
|
# Copyright (c) 2011 Los Alamos National Security, LLC.
|
|
|
|
# All rights reserved.
|
2008-02-17 22:29:06 +03:00
|
|
|
# $COPYRIGHT$
|
2011-11-03 06:14:47 +04:00
|
|
|
#
|
2008-02-17 22:29:06 +03:00
|
|
|
# Additional copyrights may follow
|
2011-11-03 06:14:47 +04:00
|
|
|
#
|
2008-02-17 22:29:06 +03:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2008-02-28 04:57:57 +03:00
|
|
|
# MCA_ess_alps_CONFIG([action-if-found], [action-if-not-found])
|
2008-02-17 22:29:06 +03:00
|
|
|
# -----------------------------------------------------------
|
2010-09-18 03:04:06 +04:00
|
|
|
AC_DEFUN([MCA_orte_ess_alps_CONFIG],[
|
|
|
|
AC_CONFIG_FILES([orte/mca/ess/alps/Makefile])
|
|
|
|
|
2011-11-03 06:14:47 +04:00
|
|
|
AC_CHECK_HEADERS([catamount/cnos_mpi_os.h],
|
|
|
|
[orte_mca_ess_alps_have_cnos=1],
|
|
|
|
[AC_CHECK_HEADERS([cnos_mpi_os.h],
|
|
|
|
[orte_mca_ess_alps_have_cnos=1],
|
|
|
|
[orte_mca_ess_alps_have_cnos=0],
|
|
|
|
[AC_INCLUDES_DEFAULT])],
|
|
|
|
[AC_INCLUDES_DEFAULT])
|
|
|
|
|
|
|
|
dnl one last check to make certain that we have all the right CNOS stuff to
|
|
|
|
dnl continue with CNOS support
|
|
|
|
AS_IF([test "$orte_mca_ess_alps_have_cnos" = "1"],
|
|
|
|
[AC_CHECK_FUNC([cnos_get_rank],
|
|
|
|
[orte_mca_ess_alps_have_cnos=1],
|
|
|
|
[orte_mca_ess_alps_have_cnos=0])])
|
|
|
|
|
|
|
|
dnl was ess alps requested?
|
|
|
|
ORTE_CHECK_ALPS([ess_alps],
|
|
|
|
[orte_mca_ess_alps_happy="yes"],
|
|
|
|
[orte_mca_ess_alps_happy="no"])
|
|
|
|
|
2013-02-27 01:27:48 +04:00
|
|
|
AS_IF([test "$orte_mca_ess_alps_happy" = "yes" -a "$orte_mca_ess_alps_have_cnos" = 1],
|
2011-11-03 06:14:47 +04:00
|
|
|
[$1],
|
|
|
|
[$2])
|
2008-02-17 22:29:06 +03:00
|
|
|
])dnl
|