#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` (test -d src && test -d dox) || { echo "You must run this script in the top-level directory" exit 1 } echo "Generating configuration files, please wait...." rm -rf autom4te.cache rm -f aclocal.m4 echo "Running autopoint -f" autopoint -f || gautopoint -f || exit 1 echo "Running aclocal -I m4 $ACLOCAL_FLAGS" aclocal -I m4 $ACLOCAL_FLAGS || exit 1 echo "Running autoconf" autoconf || exit 1 echo "Running autoheader" autoheader || exit 1 echo "Running automake --add-missing" automake --add-missing || exit 1 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" if test -z "$*"; then echo "I am going to run ./configure with no arguments - if you wish " echo "to pass any to it, please specify them on the $0 command line." fi if test x$NOCONFIGURE = x; then echo "Running $srcdir/configure $conf_flags $@ ..." $srcdir/configure $conf_flags "$@" \ && echo "Now type 'make' to compile." else echo "Skipping configure process." fi