3 test -z "$srcdir" && srcdir
=.
9 GETTEXTIZE
="glib-gettextize"
10 $GETTEXTIZE --version < /dev
/null
> /dev
/null
2>&1
11 if test $?
-ne 0; then
16 if libtoolize
--help >/dev
/null
2>&1
19 elif glibtoolize
--help >/dev
/null
2>&1
21 LIBTOOLIZE
=glibtoolize
27 autoreconf
-fi ||
exit 1;
30 if 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
41 cd "$ORIGDIR" ||
exit $?
43 if test -z "$AUTOGEN_SUBDIR_MODE"; then
44 echo Running
$srcdir/configure
"$@"
45 $srcdir/configure
"$@"
48 echo "Now type 'make' to compile $PROJECT."