2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
15 if $have_libtool ; then : ; else
17 echo "You must have libtool 1.4 installed to compile $PROJECT."
18 echo "Install the appropriate package for your distribution,"
19 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
23 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
25 echo "You must have autoconf installed to compile $PROJECT."
26 echo "Install the appropriate package for your distribution,"
27 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
31 if automake-1.7 --version < /dev/null > /dev/null 2>&1 ; then
36 echo "You must have automake 1.7.x installed to compile $PROJECT."
37 echo "Install the appropriate package for your distribution,"
38 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
42 if test "$DIE" -eq 1; then
46 test $TEST_TYPE $FILE || {
47 echo "You must run this script in the top-level $PROJECT directory"
51 if test -z "$AUTOGEN_SUBDIR_MODE"; then
53 echo "I am going to run ./configure with no arguments - if you wish "
54 echo "to pass any to it, please specify them on the $0 command line."
58 $ACLOCAL -I . $ACLOCALFLAGS || exit $?
59 $AUTOMAKE --add-missing || exit $?
61 cd $ORIGDIR || exit $?
63 if test -z "$AUTOGEN_SUBDIR_MODE"; then
64 $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
67 echo "Now type 'make' to compile $PROJECT."