Skip to content

Commit 99290ae

Browse files
committed
autogen.pl: Allow skipping 3rd-party when in git repo.
Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
1 parent 8e5894a commit 99290ae

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

autogen.pl

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,13 @@ sub replace_config_sub_guess {
14091409
++$step;
14101410
verbose "\n$step. Checking for git submodules\n\n";
14111411

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+
14121419
# Make sure we got a submodule-full clone. If not, abort and let a
14131420
# human figure it out.
14141421
if (-f ".gitmodules") {
@@ -1423,6 +1430,14 @@ sub replace_config_sub_guess {
14231430
my $extra = $4;
14241431

14251432
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+
}
14261441

14271442
# Make sure the submodule is there
14281443
if ($status eq "-") {
@@ -1588,12 +1603,6 @@ sub replace_config_sub_guess {
15881603
++$step;
15891604
verbose "\n$step. Setup for 3rd-party packages\n";
15901605

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-
15971606
$m4 .= "\n$dnl_line
15981607
$dnl_line
15991608
$dnl_line

0 commit comments

Comments
 (0)