2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
16 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
17 echo "Activating pre-commit hook."
18 cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
19 chmod -c +x .git/hooks/pre-commit
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/pub/gnu/"
33 ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
38 ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
40 echo "You must have automake installed to compile $PROJECT."
41 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
42 echo "(or a newer version if it is available)"
46 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
48 echo "You must have libtoolize installed to compile $PROJECT."
49 echo "Install the libtool package from ftp.gnu.org or a mirror."
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"
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 libtoolize --copy --force
69 echo $ACLOCAL $ACLOCAL_FLAGS
70 $ACLOCAL $ACLOCAL_FLAGS
72 ## optionally feature autoheader
73 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
76 autoconf || echo "autoconf failed - version 2.5x is probably required"
91 if $run_configure; then
92 $srcdir/configure --enable-maintainer-mode --config-cache "$@"
94 echo "Now type 'make' to compile $PROJECT."
97 echo "Now run 'configure' and 'make' to compile $PROJECT."