Do not try to download, extract, or build GMP and MPFR if not asked for.

/trunk/scripts/build/gmp.sh  |   12    11     1     0 +++++++++++-
 /trunk/scripts/build/mpfr.sh |   11    11     0     0 +++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
This commit is contained in:
Yann E. MORIN" 2008-04-30 16:38:06 +00:00
parent 396e68116c
commit 886c3e7c8b
2 changed files with 22 additions and 1 deletions

View File

@ -2,8 +2,9 @@
# Copyright 2008 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
do_print_filename() {
[ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
echo "gmp-${CT_GMP_VERSION}"
}
@ -47,3 +48,12 @@ do_gmp() {
CT_EndStep
}
else # Mo GMP
do_print_filename() { :; }
do_gmp_get() { :; }
do_gmp_extract() { :; }
do_gmp() { :; }
fi

View File

@ -2,6 +2,8 @@
# Copyright 2008 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
do_print_filename() {
[ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
echo "mpfr-${CT_MPFR_VERSION}"
@ -45,3 +47,12 @@ do_mpfr() {
CT_EndStep
}
else # No MPFR
do_print_filename() { :; }
do_mpfr_get() { :; }
do_mpfr_extract() { :; }
do_mpfr() { :; }
fi