#!/bin/sh

# Configuration options.
configure_options=""
configure_options="$configure_options --enable-static-linking --enable-crypto-dl=no"
configure_options="$configure_options --enable-legacy-features"
cur_pwd=`pwd`
today=`date +%F-%H-%M-%S`

echo "============= Building xmlsec"
make distclean
autoreconf -if
./configure $configure_options
make -j12
make -C docs docs

echo "============== Cleanup"
cd "$cur_pwd"
make distclean
