#! /bin/sh

# $Id: bootstrap,v 1.7 2005/08/22 20:54:21 joostvb Exp $

#
# We'd like to be able to do:
#
#   cvs checkout
#   sh ./bootstrap && ./configure && make distcheck
#
# however:
# See comment in Makefile.am on state of build system.
#

# A fake texi file so that automake can see what we want to do
test -f autobook.texi || cat > autobook.texi <<EOF
@setfilename fnord
@include version.texi
EOF

# make setup
aclocal-1.9

# we _need_ automake > 1.4 for examples/Makefile.am
automake-1.9 --gnu --add-missing
autoconf

# Remove the fake texi file (if any)
grep "@setfilename fnord" autobook.texi >/dev/null 2>&1 \
  && rm -f autobook.texi

exit 0
