#!/bin/bash

tooldir="$(dirname $(realpath $BASH_SOURCE))"
WAF="$tooldir/waf"
if [ ! -x "$WAF" ] ; then
    echo "Failed to find waf at $WAF"
fi

set -x
$WAF configure \
    --with-root="$ROOTSYS" \
    --boost-includes="$BOOST_INC" \
    --boost-libs="$BOOST_LIB" \
    --boost-mt \
    --with-fftw="$FFTW_FQ_DIR" \
    --with-fftw-include="$FFTW_INC" \
    --with-fftw-lib="$FFTW_LIBRARY" \
    --with-eigen="$EIGEN_DIR" \
    --prefix=/home/yuhw/wc/wcp_ups/products/wcp/v00_10_00/slf7.x86_64.e17.prof || echo "configuration of source failed"

$WAF --notests install || echo "build failed"




