#!/bin/sh -e

if test ! -f configure.in; then
	echo Setup must be run from the source directory >&2
	exit 1
fi

set -x
chmod +x setup
aclocal
autoheader
autoconf
set +x

if test -f config.status; then
	set -x
	sh config.status
fi
