Mercurial > hg > index.fcgi > gift-gnutella > gift-gnutella-0.0.11-1pba
diff autogen.sh @ 0:d39e1d0d75b6
initial add
author | paulo@hit-nxdomain.opendns.com |
---|---|
date | Sat, 20 Feb 2010 21:18:28 -0800 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/autogen.sh Sat Feb 20 21:18:28 2010 -0800 1.3 @@ -0,0 +1,62 @@ 1.4 +#! /bin/sh 1.5 +# Run this to generate all the initial makefiles, etc. 1.6 + 1.7 +# Stolen from the GNU Midnight Commander. Customized for giFTcurs. Stolen from 1.8 +# giFTcurs. Customized for giFT. Stolen from giFT. Customized for OpenFT. 1.9 +# Stolen from OpenFT. 1.10 + 1.11 +# Make it possible to specify path in the environment 1.12 +: ${AUTOCONF=autoconf} 1.13 +: ${AUTOHEADER=autoheader} 1.14 +: ${AUTOMAKE=automake} 1.15 +: ${ACLOCAL=aclocal} 1.16 +: ${LIBTOOLIZE=libtoolize} 1.17 + 1.18 +srcdir=`dirname $0` 1.19 +test -z "$srcdir" && srcdir=. 1.20 + 1.21 +( 1.22 +cd $srcdir 1.23 + 1.24 +# The autoconf cache (version after 2.52) is not reliable yet. 1.25 +rm -rf autom4te.cache 1.26 + 1.27 +rm -f aclocal.m4 1.28 +ACLOCAL_INCLUDES="-I m4" 1.29 + 1.30 +# Some old version of GNU build tools fail to set error codes. 1.31 +# Check that they generate some of the files they should. 1.32 + 1.33 +echo "Running $ACLOCAL..." 1.34 +$ACLOCAL $ACLOCAL_INCLUDES $ACLOCAL_FLAGS || exit 1 1.35 +test -f aclocal.m4 || \ 1.36 + { echo "aclocal failed to generate aclocal.m4" 2>&1; exit 1; } 1.37 + 1.38 +echo "Running $AUTOHEADER..." 1.39 +$AUTOHEADER || exit 1 1.40 +test -f config.h.in || \ 1.41 + { echo "autoheader failed to generate config.h.in" 2>&1; exit 1; } 1.42 + 1.43 +echo "Running $AUTOCONF..." 1.44 +$AUTOCONF || exit 1 1.45 +test -f configure || \ 1.46 + { echo "autoconf failed to generate configure" 2>&1; exit 1; } 1.47 + 1.48 +# hack hack hack...i hate autotools. 1.49 +echo "Running $LIBTOOLIZE --automake..." 1.50 +$LIBTOOLIZE --automake || exit 1 1.51 +test -f ltmain.sh || \ 1.52 + { echo "libtoolize failed to generate ltmain.sh" 2>&1; exit 1; } 1.53 + 1.54 +# Workaround for Automake 1.5 to ensure that depcomp is distributed. 1.55 +echo "Running $AUTOMAKE..." 1.56 +$AUTOMAKE -a src/Makefile || exit 1 1.57 +$AUTOMAKE -a || exit 1 1.58 +test -f Makefile.in || \ 1.59 + { echo "automake failed to generate Makefile.in" 2>&1; exit 1; } 1.60 + 1.61 +) || exit 1 1.62 + 1.63 +#conf_flags="--enable-maintainer-mode --enable-compile-warnings" 1.64 +echo Running $srcdir/configure $conf_flags "$@" ... 1.65 +$srcdir/configure --cache-file=config.cache $conf_flags "$@"