2 # Run this to generate all the initial makefiles, etc.
11 test -z "$srcdir" && srcdir
=.
17 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
19 echo "You must have autoconf installed to compile $PROJECT."
20 echo "Download the appropriate package for your distribution,"
21 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
25 (libtool
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
27 echo "You must have libtool installed to compile $PROJECT."
28 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2b.tar.gz"
29 echo "(or a newer version if it is available)"
33 if automake-1.7
--version < /dev
/null
> /dev
/null
2>&1; then
36 elif automake-1.6
--version < /dev
/null
> /dev
/null
2>&1; then
39 elif automake-1.4
--version < /dev
/null
> /dev
/null
2>&1; then
44 echo "You must have automake installed to compile $PROJECT."
45 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
46 echo "(or a newer version if it is available)"
50 if test "$DIE" -eq 1; then
54 test $TEST_TYPE $FILE ||
{
55 echo "You must run this script in the top-level $PROJECT directory"
60 echo "I am going to run ./configure with no arguments - if you wish "
61 echo "to pass any to it, please specify them on the $0 command line."
65 *xlc |
*xlc\
* |
*lcc |
*lcc\
*) am_opt
=--include-deps;;
68 $ACLOCAL $ACLOCAL_FLAGS
70 # optionally feature autoheader
71 #(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
73 $AUTOMAKE --add-missing $am_opt
78 $srcdir/configure
--enable-maintainer-mode "$@"
81 echo "Now type 'make install' to install $PROJECT."