scripts: fix dumping the config for companion libraries for target
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Mar 19 18:46:57 2010 +0100 (2010-03-19)
changeset 18464220dec659c6
parent 1845 085683652f7e
child 1847 c311bf33c64d
scripts: fix dumping the config for companion libraries for target

Companion libraries can be disable for the host, but still used for
the target (eg. binutils or gdb). Dump the version also in this case.
scripts/showSamples.sh
     1.1 --- a/scripts/showSamples.sh	Wed Mar 17 23:59:17 2010 +0100
     1.2 +++ b/scripts/showSamples.sh	Fri Mar 19 18:46:57 2010 +0100
     1.3 @@ -58,16 +58,22 @@
     1.4                   -o -n "${CT_CLOOG}"            \
     1.5                   -o -n "${CT_MPC}"              \
     1.6                   -o -n "${CT_LIBELF}"           \
     1.7 +                 -o -n "${CT_GMP_TARGET}"       \
     1.8 +                 -o -n "${CT_MPFR_TARGET}"      \
     1.9 +                 -o -n "${CT_PPL_TARGET}"       \
    1.10 +                 -o -n "${CT_CLOOG_TARGET}"     \
    1.11 +                 -o -n "${CT_MPC_TARGET}"       \
    1.12 +                 -o -n "${CT_LIBELF_TARGET}"    \
    1.13                 ]; then
    1.14                  printf "    %-*s :" ${t_width} "Companion libs"
    1.15                  complibs=1
    1.16              fi
    1.17 -            [ -z "${CT_GMP}"    ] || printf " gmp-%s"       "${CT_GMP_VERSION}"
    1.18 -            [ -z "${CT_MPFR}"   ] || printf " mpfr-%s"      "${CT_MPFR_VERSION}"
    1.19 -            [ -z "${CT_PPL}"    ] || printf " ppl-%s"       "${CT_PPL_VERSION}"
    1.20 -            [ -z "${CT_CLOOG}"  ] || printf " cloog-ppl-%s" "${CT_CLOOG_VERSION}"
    1.21 -            [ -z "${CT_MPC}"    ] || printf " mpc-%s"       "${CT_MPC_VERSION}"
    1.22 -            [ -z "${CT_LIBELF}" ] || printf " libelf-%s"    "${CT_LIBELF_VERSION}"
    1.23 +            [ -z "${CT_GMP}"    -a -z "${CT_GMP_TARGET}"    ] || printf " gmp-%s"       "${CT_GMP_VERSION}"
    1.24 +            [ -z "${CT_MPFR}"   -a -z "${CT_MPFR_TARGET}"   ] || printf " mpfr-%s"      "${CT_MPFR_VERSION}"
    1.25 +            [ -z "${CT_PPL}"    -a -z "${CT_PPL_TARGET}"    ] || printf " ppl-%s"       "${CT_PPL_VERSION}"
    1.26 +            [ -z "${CT_CLOOG}"  -a -z "${CT_CLOOG_TARGET}"  ] || printf " cloog-ppl-%s" "${CT_CLOOG_VERSION}"
    1.27 +            [ -z "${CT_MPC}"    -a -z "${CT_MPC_TARGET}"    ] || printf " mpc-%s"       "${CT_MPC_VERSION}"
    1.28 +            [ -z "${CT_LIBELF}" -a -z "${CT_LIBELF_TARGET}" ] || printf " libelf-%s"    "${CT_LIBELF_VERSION}"
    1.29              [ -z "${complibs}"  ] || printf "\n"
    1.30              printf  "    %-*s : %s\n" ${t_width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
    1.31              printf  "    %-*s : %s" ${t_width} "C compiler" "${CT_CC}-${CT_CC_VERSION} (C"