#! /bin/sh
# bootstrap -- Use this script to create generated files from the CVS dist

# Avoid broken or bad automake
if automake --version | grep ' 1.4'; then
	AUTOMAKE=automake-1.7
	ACLOCAL=aclocal-1.7
else
	AUTOMAKE=automake
	ACLOCAL=aclocal
fi
 
# Debian stable has the obsolete autoconf 2.13. Use 2.50 (2.52?) instead
if autoconf --version | grep 2.13; then
	AUTOCONF=autoconf2.50
else
	AUTOCONF=autoconf
fi

set -x

# now generate makefiles ...
$ACLOCAL
#autoheader
$AUTOMAKE --foreign --add-missing --copy
$AUTOCONF

MESSAGE=" 
Build the Makefiles with the configure command.
For help on options or configuring run
  ./configure --help
  ./configure [--someoption=somevalue ...]

Set the necessary environmental variables for local development in a bash
  source source-bash

Or just build the debian packages without configuring
  dpkg-buildpackage -rfakeroot
"
