- print "Attempting to build using the $compiler compiler and the $socketengine socket engine...\n";
- system './configure', '--enable-extras', $ENV{TEST_BUILD_MODULES} if defined $ENV{TEST_BUILD_MODULES};
- if (system './configure', '--disable-interactive', '--socketengine', $socketengine) {
- print "Failed to configure using the $compiler compiler and the $socketengine socket engine!\n";
- exit 1;
+ say "Attempting to build using the $compiler compiler and the $socketengine socket engine...";
+ my @configure_flags;
+ if (defined $ENV{TEST_BUILD_MODULES}) {
+ execute './configure', '--enable-extras', $ENV{TEST_BUILD_MODULES};
+ push @configure_flags, '--disable-auto-extras';