2007-07-26 02:28:04 +04:00
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
|
|
|
|
# All rights reserved.
|
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2007-07-21 01:36:11 +04:00
|
|
|
AC_DEFUN([MCA_pml_v_CONFIG],[
|
2007-09-12 22:46:37 +04:00
|
|
|
# We are going to make recursive call in shell, nothing is impossible
|
2008-01-26 02:57:01 +03:00
|
|
|
# Still, we need to be extra careful
|
2007-09-12 22:46:37 +04:00
|
|
|
(
|
2008-01-29 09:07:57 +03:00
|
|
|
vprotocol_parent_component=$component
|
|
|
|
# Move the root of our project to the current component
|
|
|
|
srcdir=`cd $srcdir && pwd`/$project/mca/$framework
|
|
|
|
cd "$project/mca/$framework"
|
2008-01-26 02:57:01 +03:00
|
|
|
|
2008-01-29 09:07:57 +03:00
|
|
|
MCA_CONFIGURE_FRAMEWORK($vprotocol_parent_component, vprotocol, 1)
|
2007-09-12 22:46:37 +04:00
|
|
|
|
2008-01-29 09:07:57 +03:00
|
|
|
# Save results
|
|
|
|
cat >$vprotocol_parent_component/mca_vprotocol_config_output <<EOF
|
2008-01-26 02:57:01 +03:00
|
|
|
#
|
|
|
|
# /!\ This is Automatically generated file. Do not edit.
|
|
|
|
#
|
2007-09-12 22:46:37 +04:00
|
|
|
|
2008-01-26 02:57:01 +03:00
|
|
|
# Apply the modifications to current shell context
|
2008-01-29 09:07:57 +03:00
|
|
|
# and remove leading mca/vprotocol from subdirs
|
|
|
|
|
2008-01-26 02:57:01 +03:00
|
|
|
MCA_vprotocol_ALL_COMPONENTS="$MCA_vprotocol_ALL_COMPONENTS"
|
|
|
|
MCA_vprotocol_STATIC_COMPONENTS="$MCA_vprotocol_STATIC_COMPONENTS"
|
|
|
|
MCA_vprotocol_DSO_COMPONENTS="$MCA_vprotocol_DSO_COMPONENTS"
|
|
|
|
MCA_vprotocol_STATIC_LTLIBS="$MCA_vprotocol_STATIC_LTLIBS"
|
|
|
|
|
2008-01-29 09:07:57 +03:00
|
|
|
MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS"
|
|
|
|
MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS"
|
|
|
|
MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS"
|
|
|
|
|
|
|
|
m4_foreach(mca_component, [mca_vprotocol_no_config_component_list],
|
|
|
|
[m4_ifval(mca_component, [
|
|
|
|
[BUILD_vprotocol_]mca_component[_DSO]="$[BUILD_vprotocol_]mca_component[_DSO]"
|
|
|
|
AM_CONDITIONAL([OMPI_BUILD_vprotocol_]mca_component[_DSO], test "\$[BUILD_vprotocol_]mca_component[_DSO]" = "1")])])
|
|
|
|
|
|
|
|
m4_foreach(mca_component, [mca_vprotocol_m4_config_component_list],
|
|
|
|
[m4_ifval(mca_component, [
|
|
|
|
[BUILD_vprotocol_]mca_component[_DSO]= $[BUILD_vprotocol_]mca_component[_DSO]
|
|
|
|
AM_CONDITIONAL([OMPI_BUILD_vprotocol_]mca_component[_DSO], test "\$[BUILD_vprotocol_]mca_component[_DSO]" = "1")])])
|
|
|
|
|
2007-09-12 22:46:37 +04:00
|
|
|
EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
# Reload the output from vprotocol framework's config
|
|
|
|
. $project/mca/$framework/$component/mca_vprotocol_config_output
|
2008-01-26 12:56:02 +03:00
|
|
|
rm $project/mca/$framework/$component/mca_vprotocol_config_output
|
2008-01-26 02:57:01 +03:00
|
|
|
|
|
|
|
AC_SUBST(MCA_vprotocol_ALL_COMPONENTS)
|
|
|
|
AC_SUBST(MCA_vprotocol_STATIC_COMPONENTS)
|
|
|
|
AC_SUBST(MCA_vprotocol_DSO_COMPONENTS)
|
|
|
|
AC_SUBST(MCA_vprotocol_STATIC_LTLIBS)
|
|
|
|
|
|
|
|
AC_SUBST(MCA_vprotocol_ALL_SUBDIRS)
|
|
|
|
AC_SUBST(MCA_vprotocol_STATIC_SUBDIRS)
|
|
|
|
AC_SUBST(MCA_vprotocol_DSO_SUBDIRS)
|
|
|
|
|
2007-07-21 01:36:11 +04:00
|
|
|
])
|