summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-30 16:38:06 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-04-30 16:38:06 (GMT)
commit886c3e7c8bba9833d052f6d88aa4b7fd929845c1 (patch)
treea43f4f256b0b4d130f5207340b535ab3803ae03f /scripts
parent396e68116cc6e7a6ad08ad861e990dfdb3799ceb (diff)
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(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/gmp.sh12
-rw-r--r--scripts/build/mpfr.sh11
2 files changed, 22 insertions, 1 deletions
diff --git a/scripts/build/gmp.sh b/scripts/build/gmp.sh
index cc84d64..7cc2a85 100644
--- a/scripts/build/gmp.sh
+++ b/scripts/build/gmp.sh
@@ -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
diff --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh
index 810fa60..aca5039 100644
--- a/scripts/build/mpfr.sh
+++ b/scripts/build/mpfr.sh
@@ -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