# HG changeset patch # User "Yann E. MORIN" # Date 1269020817 -3600 # Node ID 4220dec659c668389a0ad7c86b48ba28657fb853 # Parent 085683652f7ee458f4a0687b2b1a4bc1b51a7f51 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. diff -r 085683652f7e -r 4220dec659c6 scripts/showSamples.sh --- a/scripts/showSamples.sh Wed Mar 17 23:59:17 2010 +0100 +++ b/scripts/showSamples.sh Fri Mar 19 18:46:57 2010 +0100 @@ -58,16 +58,22 @@ -o -n "${CT_CLOOG}" \ -o -n "${CT_MPC}" \ -o -n "${CT_LIBELF}" \ + -o -n "${CT_GMP_TARGET}" \ + -o -n "${CT_MPFR_TARGET}" \ + -o -n "${CT_PPL_TARGET}" \ + -o -n "${CT_CLOOG_TARGET}" \ + -o -n "${CT_MPC_TARGET}" \ + -o -n "${CT_LIBELF_TARGET}" \ ]; then printf " %-*s :" ${t_width} "Companion libs" complibs=1 fi - [ -z "${CT_GMP}" ] || printf " gmp-%s" "${CT_GMP_VERSION}" - [ -z "${CT_MPFR}" ] || printf " mpfr-%s" "${CT_MPFR_VERSION}" - [ -z "${CT_PPL}" ] || printf " ppl-%s" "${CT_PPL_VERSION}" - [ -z "${CT_CLOOG}" ] || printf " cloog-ppl-%s" "${CT_CLOOG_VERSION}" - [ -z "${CT_MPC}" ] || printf " mpc-%s" "${CT_MPC_VERSION}" - [ -z "${CT_LIBELF}" ] || printf " libelf-%s" "${CT_LIBELF_VERSION}" + [ -z "${CT_GMP}" -a -z "${CT_GMP_TARGET}" ] || printf " gmp-%s" "${CT_GMP_VERSION}" + [ -z "${CT_MPFR}" -a -z "${CT_MPFR_TARGET}" ] || printf " mpfr-%s" "${CT_MPFR_VERSION}" + [ -z "${CT_PPL}" -a -z "${CT_PPL_TARGET}" ] || printf " ppl-%s" "${CT_PPL_VERSION}" + [ -z "${CT_CLOOG}" -a -z "${CT_CLOOG_TARGET}" ] || printf " cloog-ppl-%s" "${CT_CLOOG_VERSION}" + [ -z "${CT_MPC}" -a -z "${CT_MPC_TARGET}" ] || printf " mpc-%s" "${CT_MPC_VERSION}" + [ -z "${CT_LIBELF}" -a -z "${CT_LIBELF_TARGET}" ] || printf " libelf-%s" "${CT_LIBELF_VERSION}" [ -z "${complibs}" ] || printf "\n" printf " %-*s : %s\n" ${t_width} "binutils" "binutils-${CT_BINUTILS_VERSION}" printf " %-*s : %s" ${t_width} "C compiler" "${CT_CC}-${CT_CC_VERSION} (C"