@@ -455,18 +455,6 @@ AC_DEFUN([MCA_CONFIGURE_FRAMEWORK],[
455
455
[ AS_IF ( [ test $components_last_result -eq 1] , [ best_mca_component_priority=] OPAL_EVAL_ARG ( [ MCA_$1 _$2 _] mca_component [ _PRIORITY] )) ] )
456
456
] ) ] )
457
457
458
- # configure components that provide their own configure script.
459
- # It would be really hard to run these for "find first that
460
- # works", so we don't :)
461
- m4_if ( OPAL_EVAL_ARG ( [ MCA_$1 _] $2 [ _CONFIGURE_MODE] ) , [ STOP_AT_FIRST] , [ ] ,
462
- [ m4_if ( OPAL_EVAL_ARG ( [ MCA_$1 _] $2 [ _CONFIGURE_MODE] ) , [ STOP_AT_FIRST_PRIORITY] , [ ] ,
463
- [ m4_if ( OPAL_EVAL_ARG ( [ MCA_$1 _] $2 [ _CONFIGURE_MODE] ) , [ PRIORITY] , [ ] ,
464
- [ MCA_CHECK_IGNORED_PRIORITY($1 , $2 )
465
- AS_IF ( [ test "$3 " != "0"] ,
466
- [ MCA_CONFIGURE_ALL_CONFIG_COMPONENTS($1 , $2 , [ all_components] ,
467
- [ static_components] , [ dso_components] ,
468
- [ static_ltlibs] )] ) ] ) ] ) ] )
469
-
470
458
AS_VAR_SET_IF ( [ OPAL_EVAL_ARG([ DIRECT_$2 ] )] , [
471
459
AC_MSG_CHECKING ( [ if direct-selection component exists for $2 framework] )
472
460
direct_component_happy=no
@@ -640,74 +628,6 @@ AC_DEFUN([MCA_CONFIGURE_M4_CONFIG_COMPONENT],[
640
628
unset compile_mode
641
629
] )
642
630
643
-
644
- # #####################################################################
645
- #
646
- # MCA_CONFIGURE_ALL_CONFIG_COMPONENTS
647
- #
648
- # configure all components in the given framework that have configure
649
- # scripts and should be configured according to the usual rules...
650
- #
651
- # USAGE:
652
- # MCA_CONFIGURE_ALL_CONFIG_COMPONENTS(project_name,
653
- # framework_name,
654
- # all_components_variable,
655
- # static_components_variable,
656
- # dso_components_variable,
657
- # static_ltlibs_variable)
658
- #
659
- # #####################################################################
660
- AC_DEFUN ( [ MCA_CONFIGURE_ALL_CONFIG_COMPONENTS] ,[
661
- for component_path in $srcdir/$1 /mca/$2 /* ; do
662
- component="`basename $component_path`"
663
- if test -d $component_path && test -x $component_path/configure ; then
664
- opal_show_subsubsubtitle "MCA component $2 :$component (need to configure)"
665
-
666
- opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: before, should_build=$8 "
667
- MCA_COMPONENT_BUILD_CHECK($1 , $2 , $component,
668
- [ should_build=1] , [ should_build=0] )
669
- MCA_COMPONENT_COMPILE_MODE($1 , $2 , $component, compile_mode)
670
- opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
671
-
672
- if test "$should_build" = "1" ; then
673
- OPAL_CONFIG_SUBDIR([ $1 /mca/$2 /$component] ,
674
- [ $opal_subdir_args] ,
675
- [ should_build=1] , [ should_build=0] )
676
- opal_show_verbose "OPAL_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
677
- fi
678
-
679
- if test "$should_build" = "1" ; then
680
- # do some extra work to pass flags back from the
681
- # top-level configure, the way a configure.m4
682
- # component would.
683
- infile="$srcdir/$1 /mca/$2 /$3 /post_configure.sh"
684
- if test -f $infile; then
685
-
686
- # First check for the ABORT tag
687
- line="`$GREP ABORT= $infile | cut -d= -f2-`"
688
- if test -n "$line" && test "$line" != "no"; then
689
- AC_MSG_WARN ( [ MCA component configure script told me to abort] )
690
- AC_MSG_ERROR ( [ cannot continue] )
691
- fi
692
-
693
- m4_foreach ( flags , [ LDFLAGS, LIBS] ,
694
- [ [ line="`$GREP WRAPPER_EXTRA_] flags[ = $infile | cut -d= -f2-`"]
695
- eval "line=$line"
696
- if test -n "$line"; then
697
- $2 [ _] $3 [ _WRAPPER_EXTRA_] flags[ ="$line"]
698
- fi
699
- ] ) dnl
700
- fi
701
-
702
- MCA_PROCESS_COMPONENT($1 , $2 , $component, $3 , $4 , $5 , $6 , $compile_mode)
703
- else
704
- MCA_PROCESS_DEAD_COMPONENT($1 , $2 , $component)
705
- fi
706
- fi
707
- done
708
- ] )
709
-
710
-
711
631
# MCA_COMPONENT_COMPILE_MODE(project_name (1), framework_name (2),
712
632
# component_name (3), compile_mode_variable (4))
713
633
# -------------------------------------------------------------------------
@@ -716,17 +636,15 @@ AC_DEFUN([MCA_CONFIGURE_ALL_CONFIG_COMPONENTS],[
716
636
# the cached value for subsequent tests. The string is not stored in a cache
717
637
# variable (ie .*_cv_.*) because cache variables would not be invalidated
718
638
# based on changes to --enable-mca-dso or --enable-mca-static.
719
- #
720
- # NOTE: component_name may not be determined until runtime....
721
639
AC_DEFUN ( [ MCA_COMPONENT_COMPILE_MODE] ,[
722
640
OAC_ASSERT_LITERAL([ $1 ] , [ 1] )dnl
723
641
OAC_ASSERT_LITERAL([ $2 ] , [ 2] )dnl
642
+ OAC_ASSERT_LITERAL([ $3 ] , [ 3] )dnl
724
643
725
644
AS_VAR_PUSHDEF ( [ compile_mode_cv] , [ $1 _$2 _$3 _compile_mode] ) dnl
726
645
AS_VAR_SET_IF ( [ compile_mode_cv] ,
727
646
[ ] ,
728
- [ AS_LITERAL_IF ( [ $3 ] ,
729
- [ m4_ifdef ( [ MCA_$1 _$2 _$3 _COMPILE_MODE] ,
647
+ [ m4_ifdef ( [ MCA_$1 _$2 _$3 _COMPILE_MODE] ,
730
648
[ dnl We introduced caching of this check after setting the compile
731
649
dnl mode by the substitute macro was common, and there was not a
732
650
dnl polymorphic variable assumption in all those macros, so we use
@@ -735,8 +653,7 @@ AC_DEFUN([MCA_COMPONENT_COMPILE_MODE],[
735
653
MCA_$1 _$2 _$3 _COMPILE_MODE([ $1 ] , [ $2 ] , [ $3 ] , [ component_compile_mode_tmp] )
736
654
AS_VAR_COPY ( [ compile_mode_cv] , [ $component_compile_mode_tmp] )
737
655
OPAL_VAR_SCOPE_POP] ,
738
- [ MCA_COMPONENT_COMPILE_MODE_INTERNAL([ $1 ] , [ $2 ] , [ $3 ] , [ compile_mode_cv] )] ) ] ,
739
- [ MCA_COMPONENT_COMPILE_MODE_INTERNAL([ $1 ] , [ $2 ] , [ $3 ] , [ compile_mode_cv] )] ) ] )
656
+ [ MCA_COMPONENT_COMPILE_MODE_INTERNAL([ $1 ] , [ $2 ] , [ $3 ] , [ compile_mode_cv] )] ) ] )
740
657
AS_VAR_COPY ( [ $4 ] , [ compile_mode_cv] )
741
658
AS_VAR_POPDEF ( [ compile_mode_cv] ) dnl
742
659
] )
@@ -758,10 +675,10 @@ AC_DEFUN([MCA_COMPONENT_COMPILE_MODE_INTERNAL], [
758
675
OPAL_VAR_SCOPE_PUSH([ compile_mode_internal_tmp SHARED_FRAMEWORK SHARED_COMPONENT STATIC_FRAMEWORK STATIC_COMPONENT] )
759
676
760
677
SHARED_FRAMEWORK="$DSO_$2 "
761
- AS_VAR_COPY ( [ SHARED_COMPONENT] , [ DSO_$2 _$3 ] )
678
+ SHARED_COMPONENT="$ DSO_$2 _$3 "
762
679
763
680
STATIC_FRAMEWORK="$STATIC_$2 "
764
- AS_VAR_COPY ( [ STATIC_COMPONENT] , [ STATIC_$2 _$3 ] )
681
+ STATIC_COMPONENT="$ STATIC_$2 _$3 "
765
682
766
683
# Look for the most specific specifier between static/dso. If
767
684
# there is a tie (either neither or both specified), prefer
@@ -819,8 +736,6 @@ AC_DEFUN([OPAL_MCA_STRIP_LAFILES], [
819
736
# ---------------------------------------------------------------------
820
737
# Final setup work for a given component. It should be known before
821
738
# calling that this component can build properly (and exists)
822
- #
823
- # NOTE: component_name may not be determined until runtime....
824
739
AC_DEFUN ( [ MCA_PROCESS_COMPONENT] ,[
825
740
AC_REQUIRE ( [ AC_PROG_GREP ] )
826
741
@@ -893,13 +808,13 @@ AC_MSG_ERROR([*** $2 component $3 was supposed to be direct-called, but
893
808
# wishes all LDFLAGS and LIBS to be provided as wrapper flags.
894
809
AS_IF ( [ test "$8 " = "static"] ,
895
810
[ AS_VAR_SET_IF ( [ $2 _$3 _WRAPPER_EXTRA_LDFLAGS] ,
896
- [ AS_VAR_COPY ( [ tmp_flags] , [ $ 2 _$3 _WRAPPER_EXTRA_LDFLAGS] ) ] ,
897
- [ AS_VAR_COPY ( [ tmp_flags] , [ $ 2 _$3 _LDFLAGS] ) ] )
811
+ [ tmp_flags=${ $ 2 _$3 _WRAPPER_EXTRA_LDFLAGS} ] ,
812
+ [ tmp_flags=${ $ 2 _$3 _LDFLAGS} ] )
898
813
OPAL_FLAGS_APPEND_UNIQ([ mca_wrapper_extra_ldflags] , [ $tmp_flags] )
899
814
900
815
AS_VAR_SET_IF ( [ $2 _$3 _WRAPPER_EXTRA_LIBS] ,
901
- [ AS_VAR_COPY ( [ tmp_flags] , [ $ 2 _$3 _WRAPPER_EXTRA_LIBS] ) ] ,
902
- [ AS_VAR_COPY ( [ tmp_all_flags] , [ $ 2 _$3 _LIBS] )
816
+ [ tmp_flags=${ $ 2 _$3 _WRAPPER_EXTRA_LIBS} ] ,
817
+ [ tmp_all_flags=${ $ 2 _$3 _LIBS}
903
818
OPAL_MCA_STRIP_LAFILES([ tmp_flags] , [ $tmp_all_flags] )] )
904
819
OPAL_FLAGS_APPEND_MOVE([ mca_wrapper_extra_libs] , [ $tmp_flags] )] )
905
820
@@ -910,13 +825,12 @@ AC_MSG_ERROR([*** $2 component $3 was supposed to be direct-called, but
910
825
# Since a configure script component can never be used in a
911
826
# STOP_AT_FIRST framework, we don't have to implement the else
912
827
# clause in the literal check.
913
- AS_LITERAL_IF ( [ $3 ] ,
914
- [ AS_IF ( [ test "$$2 _$3 _WRAPPER_EXTRA_CPPFLAGS" != ""] ,
915
- [ m4_if ( OPAL_EVAL_ARG ( [ MCA_$1 _$2 _CONFIGURE_MODE] ) , [ STOP_AT_FIRST] , [ stop_at_first=1] , [ stop_at_first=0] )
916
- AS_IF ( [ test "$8 " = "static" && test "$stop_at_first" = "1"] ,
917
- [ AS_IF ( [ test "$with_devel_headers" = "yes"] ,
918
- [ OPAL_FLAGS_APPEND_UNIQ([ mca_wrapper_extra_cppflags] , [ $$2 _$3 _WRAPPER_EXTRA_CPPFLAGS] )] ) ] ,
919
- [ AC_MSG_WARN ( [ ignoring $2 _$3 _WRAPPER_EXTRA_CPPFLAGS ($$2 _$3 _WRAPPER_EXTRA_CPPFLAGS): component conditions not met] ) ] ) ] ) ] )
828
+ AS_IF ( [ test "$$2 _$3 _WRAPPER_EXTRA_CPPFLAGS" != ""] ,
829
+ [ m4_if ( OPAL_EVAL_ARG ( [ MCA_$1 _$2 _CONFIGURE_MODE] ) , [ STOP_AT_FIRST] , [ stop_at_first=1] , [ stop_at_first=0] )
830
+ AS_IF ( [ test "$8 " = "static" && test "$stop_at_first" = "1"] ,
831
+ [ AS_IF ( [ test "$with_devel_headers" = "yes"] ,
832
+ [ OPAL_FLAGS_APPEND_UNIQ([ mca_wrapper_extra_cppflags] , [ $$2 _$3 _WRAPPER_EXTRA_CPPFLAGS] )] ) ] ,
833
+ [ AC_MSG_WARN ( [ ignoring $2 _$3 _WRAPPER_EXTRA_CPPFLAGS ($$2 _$3 _WRAPPER_EXTRA_CPPFLAGS): component conditions not met] ) ] ) ] )
920
834
] )
921
835
922
836
@@ -926,8 +840,6 @@ AC_MSG_ERROR([*** $2 component $3 was supposed to be direct-called, but
926
840
# Final setup work for a component that can not be built. Do the
927
841
# last minute checks to make sure the user isn't doing something
928
842
# stupid.
929
- #
930
- # NOTE: component_name may not be determined until runtime....
931
843
AC_DEFUN ( [ MCA_PROCESS_DEAD_COMPONENT] ,[
932
844
AC_MSG_CHECKING ( [ if MCA component $2 :$3 can compile] )
933
845
AC_MSG_RESULT ( [ no] )
@@ -1004,7 +916,7 @@ AC_DEFUN([MCA_COMPONENT_BUILD_CHECK],[
1004
916
1005
917
# if we were explicitly disabled, don't build :)
1006
918
AS_IF ( [ test "$DISABLE_$2 " = "1"] , [ want_component=0] )
1007
- AS_VAR_IF ( [ DISABLE_$2 _$3 ] , [ 1 ] , [ want_component=0] )
919
+ AS_IF ( [ test "${ DISABLE_$2 _$3 }" = "1" ] , [ want_component=0] )
1008
920
1009
921
AS_IF ( [ test "$want_component" = "1"] , [ $4 ] , [ $5 ] )
1010
922
] )
0 commit comments