# HG changeset patch # User "Yann E. MORIN" # Date 1307207846 -7200 # Node ID 2ab553e37517082017b10e992f5b0f5390fc053c # Parent f87f02b00cc777772a0556d700b7f12804f6d661 configure: rationalise error messages with meaningful texts Currently, error messages just state the obvious: a required component is required. While in some cases, there is not much else to say, in some other cases we could tell much more. For example, a missing libstdc++ means no static toolchain. Also, format error and warning messages in a similar fashion, with a {error,warning} intro, followed by the message specified by the caller. Signed-off-by: "Yann E. MORIN" diff -r f87f02b00cc7 -r 2ab553e37517 configure --- a/configure Sat Jun 04 17:43:49 2011 +0200 +++ b/configure Sat Jun 04 19:17:26 2011 +0200 @@ -215,9 +215,8 @@ local var ver err kconfig if ! check_for "$@"; then + printf " * A mandatory dependency is missing, or version mis-match\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" fi @@ -243,7 +242,7 @@ local var ver err kconfig if ! check_for "$@"; then - printf " * optional dependency is missing, some features will be disabled\n" + printf " * An 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" @@ -428,14 +427,14 @@ done \ )" has_or_abort lib="${ncurses_libs}" \ - err="'ncurses' library was not found" + err="The 'ncurses' library is needed fo the menuconfig frontend" stdcxx_libs="$( for x in so dylib a; do \ printf "libstdc++.$x "; \ done \ )" has_or_abort lib="${stdcxx_libs}" \ - err="'libstdc++' shared library was not found" + err="The 'libstdc++' library is needed to build gcc" # Yes, we may be checking twice for libstdc++.a # The first is because we need one instance of libstdc++ (shared or static)