]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: display prerequisite program environment vars.
authorGary V. Vaughan <gary@gnu.org>
Thu, 25 Oct 2012 09:00:52 +0000 (04:00 -0500)
committerGary V. Vaughan <gary@gnu.org>
Thu, 25 Oct 2012 09:12:36 +0000 (04:12 -0500)
Be more helpful when a prerequisite program from $buildreq
cannot be located, by showing what variable to export if it
is already installed but not in PATH.
* gl/build-aux/bootstrap.in (func_check_versions): Display
associated environment variables for not found prerequisite
programs.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in

index b897f20711472c6788e7128add6784b4c480a5af..0cd5a2b757dbcea2f0fe51830b7b7c3b88d5921f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -4441,11 +4441,12 @@ func_check_versions ()
       _G_instver=`func_get_version $_G_app`
 
       test -z "$_G_instver" \
-          || func_verbose "found '$_G_app' version $_G_instver"
+          || func_verbose "found '$_G_app' version $_G_instver."
 
       # Fail if --version didn't work.
       if test -z "$_G_instver"; then
-        func_error "'$_G_app' not found"
+        func_error "Prerequisite '$_G_app' not found. Please install it, or
+'export $_G_appvar=/path/to/$_G_app'."
         func_check_versions_result=false
 
       # Fail if a new version than what we have is required.
index 7de22fffa762ced51473333ba66397e85ec001b7..84fbec7dd4fe982f038c119bccb3b293fe8da53b 100755 (executable)
@@ -2259,11 +2259,12 @@ func_check_versions ()
       _G_instver=`func_get_version $_G_app`
 
       test -z "$_G_instver" \
-          || func_verbose "found '$_G_app' version $_G_instver"
+          || func_verbose "found '$_G_app' version $_G_instver."
 
       # Fail if --version didn't work.
       if test -z "$_G_instver"; then
-        func_error "'$_G_app' not found"
+        func_error "Prerequisite '$_G_app' not found. Please install it, or
+'export $_G_appvar=/path/to/$_G_app'."
         func_check_versions_result=false
 
       # Fail if a new version than what we have is required.