File: configure.m4

package info (click to toggle)
openmpi 4.1.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 126,560 kB
  • sloc: ansic: 685,465; makefile: 42,952; f90: 19,220; sh: 7,002; java: 6,360; perl: 3,524; cpp: 2,227; python: 1,350; lex: 989; fortran: 61; tcl: 12
file content (40 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download | duplicates (3)
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])

])