@@ -19407,96 +19407,7 @@ fi
19407
19407
# Check for test tools
19408
19408
#
19409
19409
if test "$enable_tap_tests" = yes; then
19410
- # Check for necessary modules, unless user has specified the "prove" to use;
19411
- # in that case it's her responsibility to have a working configuration.
19412
- # (prove might be part of a different Perl installation than perl, eg on
19413
- # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
19414
- if test -z "$PROVE"; then
19415
- # Test::More and Time::HiRes are supposed to be part of core Perl,
19416
- # but some distros omit them in a minimal installation.
19417
-
19418
-
19419
-
19420
-
19421
-
19422
-
19423
-
19424
-
19425
-
19426
-
19427
- # Make sure we have perl
19428
- if test -z "$PERL"; then
19429
- # Extract the first word of "perl", so it can be a program name with args.
19430
- set dummy perl; ac_word=$2
19431
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19432
- $as_echo_n "checking for $ac_word... " >&6; }
19433
- if ${ac_cv_prog_PERL+:} false; then :
19434
- $as_echo_n "(cached) " >&6
19435
- else
19436
- if test -n "$PERL"; then
19437
- ac_cv_prog_PERL="$PERL" # Let the user override the test.
19438
- else
19439
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19440
- for as_dir in $PATH
19441
- do
19442
- IFS=$as_save_IFS
19443
- test -z "$as_dir" && as_dir=.
19444
- for ac_exec_ext in '' $ac_executable_extensions; do
19445
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19446
- ac_cv_prog_PERL="perl"
19447
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19448
- break 2
19449
- fi
19450
- done
19451
- done
19452
- IFS=$as_save_IFS
19453
-
19454
- fi
19455
- fi
19456
- PERL=$ac_cv_prog_PERL
19457
- if test -n "$PERL"; then
19458
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19459
- $as_echo "$PERL" >&6; }
19460
- else
19461
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19462
- $as_echo "no" >&6; }
19463
- fi
19464
-
19465
-
19466
- fi
19467
-
19468
- if test "x$PERL" != x; then
19469
- ax_perl_modules_failed=0
19470
- for ax_perl_module in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
19471
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
19472
- $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
19473
-
19474
- # Would be nice to log result here, but can't rely on autoconf internals
19475
- $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
19476
- if test $? -ne 0; then
19477
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478
- $as_echo "no" >&6; };
19479
- ax_perl_modules_failed=1
19480
- else
19481
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19482
- $as_echo "ok" >&6; };
19483
- fi
19484
- done
19485
-
19486
- # Run optional shell commands
19487
- if test "$ax_perl_modules_failed" = 0; then
19488
- :
19489
-
19490
- else
19491
- :
19492
- as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
19493
- fi
19494
- else
19495
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
19496
- $as_echo "$as_me: WARNING: could not find perl" >&2;}
19497
- fi
19498
- fi
19499
- # Now make sure we know where prove is
19410
+ # Make sure we know where prove is.
19500
19411
if test -z "$PROVE"; then
19501
19412
for ac_prog in prove
19502
19413
do
@@ -19554,6 +19465,23 @@ fi
19554
19465
if test -z "$PROVE"; then
19555
19466
as_fn_error $? "prove not found" "$LINENO" 5
19556
19467
fi
19468
+ # Check for necessary Perl modules. You might think we should use
19469
+ # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19470
+ # installation than perl, eg on MSys, so we have to check using prove.
19471
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19472
+ $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19473
+ modulestderr=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19474
+ if test $? -eq 0; then
19475
+ # log the module version details, but don't show them interactively
19476
+ echo "$modulestderr" >&5
19477
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19478
+ $as_echo "yes" >&6; }
19479
+ else
19480
+ # on failure, though, show the results to the user
19481
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19482
+ $as_echo "$modulestderr" >&6; }
19483
+ as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
19484
+ fi
19557
19485
fi
19558
19486
19559
19487
# If compiler will take -Wl,--as-needed (or various platform-specific
0 commit comments