#!/bin/sh set -e if test -n "$AUTOMAKE"; then : # don't override an explicit user request elif automake-1.9 --version >/dev/null 2>/dev/null && \ aclocal-1.9 --version >/dev/null 2>/dev/null; then # If we have automake-1.9, use it. This helps to ensure that our build # system doesn't accidentally grow automake-1.10 dependencies. AUTOMAKE=automake-1.9 export AUTOMAKE ACLOCAL=aclocal-1.9 export ACLOCAL fi autoreconf -i -f # Fetch Wocky if needed if test ! -f lib/ext/wocky/autogen.sh; then echo "+ Setting up Wocky submodule" git submodule init fi git submodule update # launch Wocky's autogen.sh cd lib/ext/wocky sh autogen.sh --no-configure cd ../../.. run_configure=true for arg in $*; do case $arg in --no-configure) run_configure=false ;; *) ;; esac done if test $run_configure = true; then ./configure "$@" fi