1#!/bin/sh
2
3echo "Boostrapping StarDict tools..."
4
5(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
6	echo;
7	echo "You must have libtool installed to compile Stardict";
8	echo;
9	exit;
10}
11
12(automake --version) < /dev/null > /dev/null 2>&1 || {
13	echo;
14	echo "You must have automake installed to compile Stardict";
15	echo;
16	exit;
17}
18
19(autoconf --version) < /dev/null > /dev/null 2>&1 || {
20	echo;
21	echo "You must have autoconf installed to compile Stardict";
22	echo;
23	exit;
24}
25
26echo "Generating configuration files for Stardict, please wait...."
27echo;
28
29srcdir=`dirname $0`
30test -z "$srcdir" && srcdir=.
31topdir=`pwd`
32
33cd "$srcdir"
34echo "Running libtoolize, please ignore non-fatal messages...."
35echo n | libtoolize --copy --force || exit;
36
37echo "Running aclocal...."
38aclocal -I m4 || exit;
39echo "Running autoheader...."
40autoheader || exit;
41echo "Running automake --add-missing --copy...."
42automake --add-missing --copy;
43echo "Running autoconf ...."
44autoconf || exit;
45echo "Running automake ...."
46automake || exit;
47cd "$topdir"
48#"${srcdir}/configure" --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man "$@"
49