#!/bin/bash

# Takes PREFIX for where to install as the first argument:

PREFIX=$1

set -xe

wget http://hpx.crest.iu.edu/release/HPX_Release_v1.3.0.tar.gz
tar xf HPX_Release_v1.3.0.tar.gz
rm HPX_Release_v1.3.0.tar.gz

cd HPX_Release_v1.3.0/hpx
./configure --prefix=$PREFIX --enable-shared
make -j
make install
cd ../../

rm -rf HPX_Release_v1.3.0/

#!/bin/bash

# Takes PREFIX for where to install as the first argument:

PREFIX=$1

if [ "$PREFIX" == "" ]; then
    echo "Must provide prefix as first argument"
    exit 1
fi

set -xe

wget http://hpx.crest.iu.edu/release/HPX_Release_v1.3.0.tar.gz
tar xf HPX_Release_v1.3.0.tar.gz
rm HPX_Release_v1.3.0.tar.gz

cd HPX_Release_v1.3.0/hpx
./configure --prefix=$PREFIX --enable-shared CFLAGS="-O0 -g" --enable-debug
make -j
make install
cd ../../

rm -rf HPX_Release_v1.3.0/

Build HPX in debug mode for now
Build HPX in debug mode for now
