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
6 do_cloog_extract() { :; }
9 # Overide functions depending on configuration
10 if [ "${CT_CLOOG}" = "y" ]; then
14 CT_GetFile "cloog-ppl-${CT_CLOOG_VERSION}" \
15 ftp://gcc.gnu.org/pub/gcc/infrastructure
22 # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
23 # while versions 0.15.4 onward do have the version in the dirname.
24 # But, because the infrastructure properly creates the extracted
25 # directories (with tar's --strip-components), we can live safely...
26 CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
27 CT_Patch "cloog-ppl" "${CT_CLOOG_VERSION}"
29 if [ "${CT_CLOOG_NEEDS_AUTORECONF}" = "y" ]; then
30 CT_Pushd "${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}"
31 CT_DoExecLog CFG ./autogen.sh
37 local cloog_src_dir="${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}"
39 mkdir -p "${CT_BUILD_DIR}/build-cloog-ppl"
40 cd "${CT_BUILD_DIR}/build-cloog-ppl"
42 CT_DoStep INFO "Installing CLooG/ppl"
44 CT_DoLog EXTRA "Configuring CLooG/ppl"
47 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
49 "${cloog_src_dir}/configure" \
52 --prefix="${CT_COMPLIBS_DIR}" \
53 --with-gmp="${CT_COMPLIBS_DIR}" \
54 --with-ppl="${CT_COMPLIBS_DIR}" \
56 --with-host-libstdcxx='-lstdc++' \
60 CT_DoLog EXTRA "Building CLooG/ppl"
61 CT_DoExecLog ALL make ${JOBSFLAGS} libcloog.la
63 if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
64 CT_DoLog EXTRA "Checking CLooG/ppl"
65 CT_DoExecLog ALL make ${JOBSFLAGS} -s check
68 CT_DoLog EXTRA "Installing CLooG/ppl"
69 CT_DoExecLog ALL make install-libLTLIBRARIES install-pkgincludeHEADERS