@@ -1409,6 +1409,13 @@ sub replace_config_sub_guess {
1409
1409
++$step ;
1410
1410
verbose " \n $step . Checking for git submodules\n\n " ;
1411
1411
1412
+ my @enabled_3rdparty_packages = ();
1413
+ my @disabled_3rdparty_packages = split (/ ,/ , $no_3rdparty_arg );
1414
+ if ($no_prrte_arg ) {
1415
+ push (@disabled_3rdparty_packages , " prrte" );
1416
+ }
1417
+
1418
+
1412
1419
# Make sure we got a submodule-full clone. If not, abort and let a
1413
1420
# human figure it out.
1414
1421
if (-f " .gitmodules" ) {
@@ -1423,6 +1430,14 @@ sub replace_config_sub_guess {
1423
1430
my $extra = $4 ;
1424
1431
1425
1432
print (" === Submodule: $path \n " );
1433
+ if (index ($path , " pmix" ) != -1 and list_contains(" pmix" , @disabled_3rdparty_packages )) {
1434
+ print (" Disabled - skipping openpmix" );
1435
+ next ;
1436
+ }
1437
+ if (index ($path , " prrte" ) != -1 and list_contains(" prrte" , @disabled_3rdparty_packages )) {
1438
+ print (" Disabled - skipping prrte" );
1439
+ next ;
1440
+ }
1426
1441
1427
1442
# Make sure the submodule is there
1428
1443
if ($status eq " -" ) {
@@ -1588,12 +1603,6 @@ sub replace_config_sub_guess {
1588
1603
++$step ;
1589
1604
verbose " \n $step . Setup for 3rd-party packages\n " ;
1590
1605
1591
- my @enabled_3rdparty_packages = ();
1592
- my @disabled_3rdparty_packages = split (/ ,/ , $no_3rdparty_arg );
1593
- if ($no_prrte_arg ) {
1594
- push (@disabled_3rdparty_packages , " prrte" );
1595
- }
1596
-
1597
1606
$m4 .= " \n $dnl_line
1598
1607
$dnl_line
1599
1608
$dnl_line
0 commit comments