scripts/build/companion_libs/cloog.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon May 25 19:46:58 2009 +0000 (2009-05-25)
branchgcc-4.4
changeset 1386 7995942261f2
parent 1384 b23f3c2e0c73
child 1397 593fb5054810
permissions -rw-r--r--
/devel/gcc-4.4:
- commonalise the config-knobs that:
- enable checking the newly built companion libraries
- enable building the companion libraries for the target

-------- diffstat follows --------
/devel/gcc-4.4/scripts/build/companion_libs/ppl.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/mpc.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/gmp.sh | 4 2 2 0 +-
/devel/gcc-4.4/scripts/build/companion_libs/cloog.sh | 2 1 1 0
/devel/gcc-4.4/scripts/build/companion_libs/mpfr.sh | 4 2 2 0 +-
/devel/gcc-4.4/config/companion_libs/ppl.in | 14 0 14 0 ----------
/devel/gcc-4.4/config/companion_libs/mpc.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/gmp.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/cloog.in | 13 0 13 0 ----------
/devel/gcc-4.4/config/companion_libs/mpfr.in | 14 0 14 0 ----------
/devel/gcc-4.4/config/companion_libs.in | 46 35 11 0 ++++++++++++++++++++++++++--------
11 files changed, 42 insertions(+), 85 deletions(-)
     1 # This file adds the functions to build the CLooG library
     2 # Copyright 2009 Yann E. MORIN
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 do_cloog_get() { :; }
     6 do_cloog_extract() { :; }
     7 do_cloog() { :; }
     8 do_cloog_target() { :; }
     9 
    10 # Overide functions depending on configuration
    11 if [ "${CT_PPL_CLOOG_MPC}" = "y" ]; then
    12 
    13 # Download CLooG
    14 do_cloog_get() {
    15     CT_GetFile "cloog-ppl-${CT_CLOOG_VERSION}"  \
    16         ftp://gcc.gnu.org/pub/gcc/infrastructure
    17 }
    18 
    19 # Extract CLooG
    20 do_cloog_extract() {
    21     CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
    22     CT_Pushd "${CT_SRC_DIR}/cloog-ppl"
    23     CT_Patch "cloog-ppl-${CT_CLOOG_VERSION}" nochdir
    24     CT_Popd
    25 }
    26 
    27 do_cloog() {
    28     mkdir -p "${CT_BUILD_DIR}/build-cloog-ppl"
    29     cd "${CT_BUILD_DIR}/build-cloog-ppl"
    30 
    31     CT_DoStep INFO "Installing CLooG/ppl"
    32 
    33     CT_DoLog EXTRA "Configuring CLooG/ppl"
    34     CFLAGS="${CT_CFLAGS_FOR_HOST}"      \
    35     CT_DoExecLog ALL                    \
    36     "${CT_SRC_DIR}/cloog-ppl/configure" \
    37         --build=${CT_BUILD}             \
    38         --host=${CT_HOST}               \
    39         --prefix="${CT_PREFIX_DIR}"     \
    40         --with-gmp="${CT_PREFIX_DIR}"   \
    41         --with-ppl="${CT_PREFIX_DIR}"   \
    42         --disable-shared                \
    43         --enable-static                 \
    44         --with-bits=gmp
    45 
    46     CT_DoLog EXTRA "Building CLooG/ppl"
    47     CT_DoExecLog ALL make ${PARALLELMFLAGS}
    48 
    49     if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
    50         CT_DoLog EXTRA "Checking CLooG/ppl"
    51         CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    52     fi
    53 
    54     CT_DoLog EXTRA "Installing CLooG/ppl"
    55     CT_DoExecLog ALL make install
    56 
    57     CT_EndStep
    58 }
    59 
    60 fi # CT_PPL_CLOOG_MPC