2cbc0e8472
PR open-mpi/ompi#2432 introduced a regression where configure and build with --disable-dlopn caused build failure owing to unresolved alps lli symbols in the libopal-pal shared library. This commit fixes this problem. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
41 строка
1.2 KiB
Bash
41 строка
1.2 KiB
Bash
# -*- 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])
|
|
|
|
])
|