1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
# -*- shell-script -*-
#
# Copyright (c) 2014 Intel, Inc. All rights reserved.
# Copyright (c) 2016 Los Alamos National Security, LLC. All rights
# reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# MCA_pmix_cray_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([MCA_opal_pmix_cray_CONFIG], [
AC_CONFIG_FILES([opal/mca/pmix/cray/Makefile])
#
# check specifically for Cray PMI here
#
OPAL_CHECK_CRAY_PMI([pmix_cray], [pmix_cray_good=1], [pmix_cray_good=0])
OPAL_CHECK_ALPS([pmix_alps], [pmix_alps_happy=1], [pmix_alps_happy=0])
# Evaluate succeed / fail
AS_IF([test "$pmix_cray_good" = 1 && test "$pmix_alps_happy" = 1],
[$1
# need to set the wrapper flags for static builds
pmix_cray_WRAPPER_EXTRA_LDFLAGS="$pmix_cray_LDFLAGS $pmix_alps_LDFLAGS"
pmix_cray_WRAPPER_EXTRA_LIBS="$pmix_cray_LIBS $pmix_alps_LIBS"],
[$2])
# set build flags to use in makefile
AC_SUBST([pmix_cray_CPPFLAGS])
AC_SUBST([pmix_cray_LDFLAGS])
AC_SUBST([pmix_cray_LIBS])
AC_SUBST([pmix_alps_CPPFLAGS])
AC_SUBST([pmix_alps_LDFLAGS])
AC_SUBST([pmix_alps_LIBS])
])
|