12
12
# All rights reserved.
13
13
# Copyright (c) 2011-2013 Los Alamos National Security, LLC.
14
14
# All rights reserved.
15
- # Copyright (c) 2010-2016 Cisco Systems, Inc. All rights reserved.
16
- # Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
15
+ # Copyright (c) 2010-2017 Cisco Systems, Inc. All rights reserved.
16
+ # Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
17
17
# Copyright (c) 2015-2016 Research Organization for Information Science
18
18
# and Technology (RIST). All rights reserved.
19
19
# $COPYRIGHT$
28
28
AC_DEFUN([MCA_opal_pmix_pmix2x_CONFIG],[
29
29
AC_CONFIG_FILES([opal/mca/pmix/pmix2x/Makefile])
30
30
31
- OPAL_VAR_SCOPE_PUSH([PMIX_VERSION opal_pmix_pmix2x_save_CPPFLAGS opal_pmix_pmix2x_save_LDFLAGS opal_pmix_pmix2x_save_LIBS opal_pmix_pmix2x_basedir opal_pmix_pmix2x_save_cflags opal_pmix_pmix2x_sm_flag])
31
+ OPAL_VAR_SCOPE_PUSH([PMIX_VERSION opal_pmix_pmix2x_save_CPPFLAGS opal_pmix_pmix2_save_CFLAGS opal_pmix_pmix2x_save_LDFLAGS opal_pmix_pmix2x_save_LIBS opal_pmix_pmix2x_basedir opal_pmix_pmix2x_args opal_pmix_pmix2x_happy opal_pmix_pmix2x_sm_flag pmix_pmix2x_status_filename ])
32
32
33
33
opal_pmix_pmix2x_basedir= opal/mca/pmix/pmix2x
34
34
@@ -49,7 +49,7 @@ AC_DEFUN([MCA_opal_pmix_pmix2x_CONFIG],[
49
49
opal_pmix_pmix2x_sm_flag=--disable-dstore
50
50
fi
51
51
52
- opal_pmix_pmix2x_args= " --with-pmix-symbol-rename=OPAL_MCA_PMIX3X_ $opal_pmix_pmix2x_sm_flag --without-tests-examples --disable-visibility --enable-embedded-libevent --with-libevent-header=\\\" opal/mca/event/$opal_event_base_include \\\" "
52
+ opal_pmix_pmix2x_args= " --with-pmix-symbol-rename=OPAL_MCA_PMIX2X_ $opal_pmix_pmix2x_sm_flag --without-tests-examples --disable-visibility --enable-embedded-libevent --with-libevent-header=\\\" opal/mca/event/$opal_event_base_include \\\" "
53
53
AS_IF([test " $enable_debug " = " yes" ],
54
54
[opal_pmix_pmix2x_args= " --enable-debug $opal_pmix_pmix2x_args "
55
55
CFLAGS= " $OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS -g" ],
@@ -82,15 +82,29 @@ AC_DEFUN([MCA_opal_pmix_pmix2x_CONFIG],[
82
82
[AC_MSG_RESULT([yes - using the internal v2.x library])
83
83
# Build flags for our Makefile.am
84
84
opal_pmix_pmix2x_LDFLAGS=
85
- opal_pmix_pmix2x_LIBS= ' $( OPAL_TOP_BUILDDIR)/ ' " $opal_pmix_pmix2x_basedir " ' /pmix/src/libpmix.la'
86
- opal_pmix_pmix2x_CPPFLAGS= ' -I$( OPAL_TOP_BUILDDIR)/opal/mca/ pmix/pmix2x/pmix/ include -I$( OPAL_TOP_BUILDDIR)/opal/mca/ pmix/pmix2x/pmix -I$( OPAL_TOP_SRCDIR)/opal/mca/ pmix/pmix2x/pmix/ include -I$( OPAL_TOP_SRCDIR)/opal/mca/ pmix/pmix2x/pmix '
87
- opal_pmix_pmix2x_DEPENDENCIES= ' $( OPAL_TOP_BUILDDIR)/opal/mca/ pmix/pmix2x/pmix/ src/libpmix.la' ])
85
+ opal_pmix_pmix2x_LIBS= " $ OPAL_TOP_BUILDDIR/ $opal_pmix_pmix2x_basedir /pmix/src/libpmix.la"
86
+ opal_pmix_pmix2x_CPPFLAGS= " -I$OPAL_TOP_BUILDDIR / $opal_pmix_pmix2x_basedir / pmix/include -I$OPAL_TOP_BUILDDIR / $opal_pmix_pmix2x_basedir / pmix -I$OPAL_TOP_SRCDIR / $opal_pmix_pmix2x_basedir / pmix/include -I$OPAL_TOP_SRCDIR / $opal_pmix_pmix2x_basedir / pmix"
87
+ opal_pmix_pmix2x_DEPENDENCIES= " $ OPAL_TOP_BUILDDIR/ $opal_pmix_pmix2x_basedir / pmix/src/libpmix.la" ])
88
88
89
89
AC_SUBST([opal_pmix_pmix2x_LIBS])
90
90
AC_SUBST([opal_pmix_pmix2x_CPPFLAGS])
91
91
AC_SUBST([opal_pmix_pmix2x_LDFLAGS])
92
92
AC_SUBST([opal_pmix_pmix2x_DEPENDENCIES])
93
93
94
+ # Finally, add some flags to the wrapper compiler so that our
95
+ # headers can be found.
96
+ pmix_pmix2x_status_filename= " $OPAL_TOP_BUILDDIR /$opal_pmix_pmix2x_basedir /pmix/config.status"
97
+ pmix_pmix2x_WRAPPER_EXTRA_CPPFLAGS= ` egrep PMIX_EMBEDDED_CPPFLAGS $pmix_pmix2x_status_filename | cut -d\" -f4`
98
+ pmix_pmix2x_WRAPPER_EXTRA_LDFLAGS= ` egrep PMIX_EMBEDDED_LDFLAGS $pmix_pmix2x_status_filename | cut -d\" -f4`
99
+ pmix_pmix2x_WRAPPER_EXTRA_LIBS= ` egrep PMIX_EMBEDDED_LIBS $pmix_pmix2x_status_filename | cut -d\" -f4`
100
+
101
+ AC_MSG_CHECKING([PMIx extra wrapper CPPFLAGS])
102
+ AC_MSG_RESULT([$pmix_pmix2x_WRAPPER_EXTRA_CPPFLAGS ])
103
+ AC_MSG_CHECKING([PMIx extra wrapper LDFLAGS])
104
+ AC_MSG_RESULT([$pmix_pmix2x_WRAPPER_EXTRA_LDFLAGS ])
105
+ AC_MSG_CHECKING([PMIx extra wrapper LIBS])
106
+ AC_MSG_RESULT([$pmix_pmix2x_WRAPPER_EXTRA_LIBS ])
107
+
94
108
AS_IF([test $opal_pmix_pmix2x_happy -eq 1],
95
109
[$1 ],
96
110
[$2 ])
0 commit comments