2 # Run this to generate all the initial makefiles, etc.
8 # a silly hack that generates autoregen.sh but it's handy
9 echo "#!/bin/sh" > autoregen.sh
10 echo "./autogen.sh $@ \$@" >> autoregen.sh
16 test -z "$srcdir" && srcdir
=.
22 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
24 echo "You must have autoconf installed to compile $PROJECT."
25 echo "Download the appropriate package for your distribution,"
26 echo "or get the source tarball at ftp://ftp.gnu.org/gnu/autoconf/"
30 if automake-1.10
--version < /dev
/null
> /dev
/null
2>&1; then
31 AUTOMAKE
=automake-1.10
33 elif automake-1.9
--version < /dev
/null
> /dev
/null
2>&1; then
36 elif automake-1.8
--version < /dev
/null
> /dev
/null
2>&1; then
39 elif automake-1.7
--version < /dev
/null
> /dev
/null
2>&1; then
42 elif automake-1.6
--version < /dev
/null
> /dev
/null
2>&1; then
47 echo "You must have automake installed to compile $PROJECT."
48 echo "Download the appropriate package for your distribution,"
49 echo "or get the source tarball at ftp://ftp.gnu.org/gnu/automake/"
53 if test "$DIE" -eq 1; then
57 test $TEST_TYPE $FILE ||
{
58 echo "You must run this script in the top-level $PROJECT directory"
62 if test "$#" = 0; then
63 echo "I am going to run ./configure with no arguments - if you wish "
64 echo "to pass any to it, please specify them on the $0 command line."
67 $ACLOCAL $ACLOCAL_FLAGS ||
exit $?
70 # optionally feature autoheader
71 #(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
73 libtoolize
--copy --force
75 $AUTOMAKE --add-missing $am_opt ||
exit $?
79 $srcdir/configure
--enable-maintainer-mode "$@" ||
exit $?
82 echo "Now type 'make install' to install $PROJECT."