From 4bae0177efccaf64ce4d04ecae3a8389c81a83e2 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 17 Nov 2011 09:04:10 +0100 Subject: [PATCH] configure: report perl version in config.log * configure.ac: Report the version of the selected perl interpreter in config.log; this should render the logs more informative. --- ChangeLog | 6 ++++++ configure | 6 ++++++ configure.ac | 2 ++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1e624a8a9..50aac4f1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-11-17 Stefano Lattarini + + configure: report perl version in config.log + * configure.ac: Report the version of the selected perl interpreter + in config.log; this should render the logs more informative. + 2011-11-13 Stefano Lattarini tests: fix spurious failure with older install-info diff --git a/configure b/configure index 504411249..7f3a0db5d 100755 --- a/configure +++ b/configure @@ -2335,6 +2335,12 @@ fi if test -z "$PERL"; then as_fn_error $? "perl not found" "$LINENO" 5 fi +# Save details about the selected perl interpreter in config.log. +{ echo "$as_me:$LINENO: eval $PERL --version" >&5 + (eval $PERL --version) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } $PERL -e 'require 5.006;' || { as_fn_error $? "perl 5.6 or better is required; perl 5.8.2 or better is recommended. If you have several perl versions diff --git a/configure.ac b/configure.ac index f804d1870..b01026d3f 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,8 @@ AC_PATH_PROG(PERL, perl) if test -z "$PERL"; then AC_MSG_ERROR([perl not found]) fi +# Save details about the selected perl interpreter in config.log. +AM_RUN_LOG([eval $PERL --version]) $PERL -e 'require 5.006;' || { AC_MSG_ERROR( [perl 5.6 or better is required; perl 5.8.2 or better -- 2.47.2