1#!/bin/sh 2srcdir=`dirname $0` 3test -z "$srcdir" && srcdir=. 4 5ORIGDIR=`pwd` 6cd "$srcdir" 7PROJECT=Transmission 8 9GETTEXTIZE="glib-gettextize" 10$GETTEXTIZE --version < /dev/null > /dev/null 2>&1 11if test $? -ne 0; then 12 GETTEXTIZE="" 13fi 14 15LIBTOOLIZE=libtoolize 16if libtoolize --help >/dev/null 2>&1 17then 18 : 19elif glibtoolize --help >/dev/null 2>&1 20then 21 LIBTOOLIZE=glibtoolize 22fi 23export LIBTOOLIZE 24 25./update-version-h.sh 26 27autoreconf -fi || exit 1; 28 29 30if test "$GETTEXTIZE"; then 31 echo "Creating aclocal.m4 ..." 32 test -r aclocal.m4 || touch aclocal.m4 33 echo "Running $GETTEXTIZE... Ignore non-fatal messages." 34 echo "no" | $GETTEXTIZE --force --copy 35 echo "Making aclocal.m4 writable ..." 36 test -r aclocal.m4 && chmod u+w aclocal.m4 37 echo "Running intltoolize..." 38 intltoolize --copy --force --automake 39fi 40 41cd "$ORIGDIR" || exit $? 42 43if test -z "$AUTOGEN_SUBDIR_MODE"; then 44 echo Running $srcdir/configure "$@" 45 $srcdir/configure "$@" 46 47 echo 48 echo "Now type 'make' to compile $PROJECT." 49fi 50 51