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(-)
1.1 --- a/scripts/build/gmp.sh Wed Apr 30 10:47:49 2008 +0000
1.2 +++ b/scripts/build/gmp.sh Wed Apr 30 16:38:06 2008 +0000
1.3 @@ -2,8 +2,9 @@
1.4 # Copyright 2008 Yann E. MORIN
1.5 # Licensed under the GPL v2. See COPYING in the root of this package
1.6
1.7 +if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
1.8 +
1.9 do_print_filename() {
1.10 - [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
1.11 echo "gmp-${CT_GMP_VERSION}"
1.12 }
1.13
1.14 @@ -47,3 +48,12 @@
1.15
1.16 CT_EndStep
1.17 }
1.18 +
1.19 +else # Mo GMP
1.20 +
1.21 +do_print_filename() { :; }
1.22 +do_gmp_get() { :; }
1.23 +do_gmp_extract() { :; }
1.24 +do_gmp() { :; }
1.25 +
1.26 +fi
2.1 --- a/scripts/build/mpfr.sh Wed Apr 30 10:47:49 2008 +0000
2.2 +++ b/scripts/build/mpfr.sh Wed Apr 30 16:38:06 2008 +0000
2.3 @@ -2,6 +2,8 @@
2.4 # Copyright 2008 Yann E. MORIN
2.5 # Licensed under the GPL v2. See COPYING in the root of this package
2.6
2.7 +if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
2.8 +
2.9 do_print_filename() {
2.10 [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
2.11 echo "mpfr-${CT_MPFR_VERSION}"
2.12 @@ -45,3 +47,12 @@
2.13
2.14 CT_EndStep
2.15 }
2.16 +
2.17 +else # No MPFR
2.18 +
2.19 +do_print_filename() { :; }
2.20 +do_mpfr_get() { :; }
2.21 +do_mpfr_extract() { :; }
2.22 +do_mpfr() { :; }
2.23 +
2.24 +fi