@@ -11,7 +11,7 @@ dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212dnl All rights reserved.
1313dnl Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
14- dnl Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
14+ dnl Copyright (c) 2013-2019 Intel, Inc. All rights reserved.
1515dnl $COPYRIGHT $
1616dnl
1717dnl Additional copyrights may follow
@@ -262,11 +262,6 @@ AC_DEFUN([PMIX_MCA],[
262262 [MCA_pmix_]mca_framework[_CONFIG](mca_framework),
263263 [MCA_CONFIGURE_FRAMEWORK(mca_framework, 1)])])])
264264
265- # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project
266- pmix_mca_wrapper_extra_cppflags=" $mca_wrapper_extra_cppflags "
267- pmix_mca_wrapper_extra_ldflags=" $mca_wrapper_extra_ldflags "
268- pmix_mca_wrapper_extra_libs=" $mca_wrapper_extra_libs "
269-
270265 AC_SUBST(MCA_pmix_FRAMEWORKS)
271266 AC_SUBST(MCA_pmix_FRAMEWORKS_SUBDIRS)
272267 AC_SUBST(MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS)
@@ -622,14 +617,6 @@ AC_DEFUN([MCA_CONFIGURE_ALL_CONFIG_COMPONENTS],[
622617 AC_MSG_WARN([MCA component configure script told me to abort])
623618 AC_MSG_ERROR([cannot continue])
624619 fi
625-
626- m4_foreach(flags, [LDFLAGS, LIBS],
627- [[line= " ` $GREP WRAPPER_EXTRA_]flags[= $infile | cut -d= -f 2-` " ]
628- eval " line=$line "
629- if test -n " $line " ; then
630- $2 [_]$3 [_WRAPPER_EXTRA_]flags[=" $line " ]
631- fi
632- ])dnl
633620 fi
634621
635622 MCA_PROCESS_COMPONENT($1 , $component , $2 , $3 , $4 , $5 , $compile_mode )
@@ -754,38 +741,6 @@ AC_MSG_ERROR([*** $1 component $2 was supposed to be direct-called, but
754741*** Aborting])
755742 fi
756743 fi
757-
758- # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
759- # WRAPPER_EXTRA_LIBS. If the component doesn't specify it's
760- # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
761- # component didn't have it's own configure script (in which case,
762- # we know it didn't set LDFLAGS and LIBS because it can't) Don't
763- # have to do this if the component is building dynamically,
764- # because it will link against these (without a dependency from
765- # libmpi.so to these flags)
766- if test " $7 " = " static" ; then
767- AS_LITERAL_IF([$2 ],
768- [m4_foreach(flags, [LDFLAGS, LIBS],
769- [AS_IF([test " $$ 1_$2 _WRAPPER_EXTRA_]flags[" = " " ],
770- [PMIX_FLAGS_APPEND_UNIQ([mca_wrapper_extra_]m4_tolower(flags), [$$ 1_$2 _]flags)],
771- [PMIX_FLAGS_APPEND_UNIQ([mca_wrapper_extra_]m4_tolower(flags), [$$ 1_$2 _WRAPPER_EXTRA_]flags)])
772- ])],
773- [m4_foreach(flags, [LDFLAGS, LIBS],
774- [[str=" line= \$ $1 _$2 _WRAPPER_EXTRA_]flags[" ]
775- eval " $str "
776- PMIX_FLAGS_APPEND_UNIQ([mca_wrapper_extra_]m4_tolower(flags), [$line ])])])
777- fi
778-
779- # if needed, copy over WRAPPER_EXTRA_CPPFLAGS. Since a configure script
780- # component can never be used in a STOP_AT_FIRST framework, we
781- # don't have to implement the else clause in the literal check...
782- AS_LITERAL_IF([$2 ],
783- [AS_IF([test " $$ 1_$2 _WRAPPER_EXTRA_CPPFLAGS" != " " ],
784- [m4_if(PMIX_EVAL_ARG([MCA_pmix_$1 _CONFIGURE_MODE]), [STOP_AT_FIRST], [stop_at_first=1], [stop_at_first=0])
785- AS_IF([test " $7 " = " static" && test " $stop_at_first " = " 1" ],
786- [AS_IF([test " $with_devel_headers " = " yes" ],
787- [PMIX_FLAGS_APPEND_UNIQ([mca_wrapper_extra_cppflags], [$$ 1_$2 _WRAPPER_EXTRA_CPPFLAGS])])],
788- [AC_MSG_WARN([ignoring $1 _$2 _WRAPPER_EXTRA_CPPFLAGS ($$ 1_$2 _WRAPPER_EXTRA_CPPFLAGS): component conditions not met])])])])
789744])
790745
791746
0 commit comments