cd src

./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"
if [ $? -ne 0 ]; then
    echo >&2 "Error configuring libbraiding."
    exit 1
fi

$MAKE
if [ $? -ne 0 ]; then
    echo >&2 "Error building libbraiding."
    exit 1
fi

$MAKE -j1 install
if [ $? -ne 0 ]; then
    echo >&2 "Error installing libbraiding."
    exit 1
fi
