mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-18 00:06:04 +00:00
configure: add prefix to err messages in has_or_{abort,warn}
Make it easier to spot messages spewed out by has_or_{abort,warn}. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
a8f575082a
commit
c6f3947bcb
15
configure
vendored
15
configure
vendored
@ -215,11 +215,11 @@ has_or_abort() {
|
||||
local var ver err kconfig
|
||||
|
||||
if ! check_for "$@"; then
|
||||
printf "\n${err:-${prog}${inc}${lib}: none found}\n\n"
|
||||
printf "Either you are missing entirely the needed tool,\n"
|
||||
printf "or the version you have is too old.\n"
|
||||
printf " * ${err:-${prog}${inc}${lib}: none found}\n"
|
||||
printf " * Either you are missing entirely the needed tool,\n"
|
||||
printf " * or the version you have is too old.\n"
|
||||
if [ -n "${var}" ]; then
|
||||
printf "You can give the path to this tool using: --with-${var}=PATH\n"
|
||||
printf " * --> You can give the path to this tool using: --with-${var}=PATH\n"
|
||||
fi
|
||||
printf "\n"
|
||||
# Bail out if --force is not specified
|
||||
@ -243,9 +243,10 @@ has_or_warn() {
|
||||
local var ver err kconfig
|
||||
|
||||
if ! check_for "$@"; then
|
||||
printf "${err:+${err}\n}"
|
||||
printf " * optional dependency is missing, some features will be disabled\n"
|
||||
printf "${err:+ * ${err}\n}"
|
||||
if [ -n "${var}" ]; then
|
||||
printf -- "--> You can give the path to this tool using: --with-${var}=PATH\n"
|
||||
printf " * --> You can give the path to this tool using: --with-${var}=PATH\n"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@ -434,7 +435,7 @@ has_or_abort lib="${ncurses_libs}" \
|
||||
|
||||
# If this version is n hg clone, try to get the revision number
|
||||
# If we can't get the revision number, use date
|
||||
printf "Computing version string... "
|
||||
printf "\nComputing version string... "
|
||||
case "${VERSION}" in
|
||||
*+hg|hg)
|
||||
REVISION="$( hg id -n 2>/dev/null || true )"
|
||||
|
Loading…
x
Reference in New Issue
Block a user