Revert "transmission: update from 2.13 to 2.22"
[tomato.git] / release / src / router / transmission / autogen.sh
blob9273b99236fb0ecfc828f81c4b26c997b45ba27c
1 #!/bin/sh
2 srcdir=`dirname $0`
3 test -z "$srcdir" && srcdir=.
5 ORIGDIR=`pwd`
6 cd "$srcdir"
7 PROJECT=Transmission
9 GETTEXTIZE="glib-gettextize"
10 $GETTEXTIZE --version < /dev/null > /dev/null 2>&1
11 if test $? -ne 0; then
12 GETTEXTIZE=""
15 LIBTOOLIZE=libtoolize
16 if libtoolize --help >/dev/null 2>&1
17 then
19 elif glibtoolize --help >/dev/null 2>&1
20 then
21 LIBTOOLIZE=glibtoolize
23 export LIBTOOLIZE
25 ./update-version-h.sh
27 autoreconf -fi
29 if test "$GETTEXTIZE"; then
30 echo "Creating aclocal.m4 ..."
31 test -r aclocal.m4 || touch aclocal.m4
32 echo "Running $GETTEXTIZE... Ignore non-fatal messages."
33 echo "no" | $GETTEXTIZE --force --copy
34 echo "Making aclocal.m4 writable ..."
35 test -r aclocal.m4 && chmod u+w aclocal.m4
36 echo "Running intltoolize..."
37 intltoolize --copy --force --automake
40 cd "$ORIGDIR" || exit $?
42 if test -z "$AUTOGEN_SUBDIR_MODE"; then
43 echo Running $srcdir/configure "$@"
44 $srcdir/configure "$@"
46 echo
47 echo "Now type 'make' to compile $PROJECT."