From b66ec91d01aa163302ea366b567b9d9a34b3fe76 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 16 Jun 2016 17:51:56 +0200 Subject: [PATCH] ENH: support use of system gmp/mpfr/mpc with ThirdParty gcc - not previously possible to configure a third-party gcc with system gmp/mpfr/mpc. This makes it easier to switch between compilers for testing. --- etc/tools/ThirdPartyFunctions | 13 ++++++ makeCGAL | 77 ++++++++++++++++++++++++----------- makeGcc | 40 ++++++++++++++++-- 3 files changed, 103 insertions(+), 27 deletions(-) diff --git a/etc/tools/ThirdPartyFunctions b/etc/tools/ThirdPartyFunctions index 60cdf36..2e27969 100644 --- a/etc/tools/ThirdPartyFunctions +++ b/etc/tools/ThirdPartyFunctions @@ -61,6 +61,19 @@ then fi +# Test if it matches "*-none" +_foamIsNone() +{ + test "${1##*-}" = none +} + +# Test if it matches "*-system" +_foamIsSystem() +{ + test "${1##*-}" = system +} + + # # Download file $1 from url $2 into download/ directory # diff --git a/makeCGAL b/makeCGAL index 8d2f9e8..32aa5f8 100755 --- a/makeCGAL +++ b/makeCGAL @@ -59,15 +59,17 @@ wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || { } . etc/tools/ThirdPartyFunctions #------------------------------------------------------------------------------ +Script="${0##*/}" usage() { exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<