1 | #!/bin/sh |
---|
2 | |
---|
3 | package="tuxbox-neutrino" |
---|
4 | |
---|
5 | srcdir=`dirname $0` |
---|
6 | test -z "$srcdir" && srcdir=. |
---|
7 | |
---|
8 | cd "$srcdir" |
---|
9 | DIE=0 |
---|
10 | |
---|
11 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { |
---|
12 | echo |
---|
13 | echo "You must have autoconf installed to compile $package." |
---|
14 | echo "Download the appropriate package for your system," |
---|
15 | echo "or get the source from one of the GNU ftp sites" |
---|
16 | echo "listed in http://www.gnu.org/order/ftp.html" |
---|
17 | DIE=1 |
---|
18 | } |
---|
19 | |
---|
20 | (automake --version) < /dev/null > /dev/null 2>&1 || { |
---|
21 | echo |
---|
22 | echo "You must have automake installed to compile $package." |
---|
23 | echo "Download the appropriate package for your system," |
---|
24 | echo "or get the source from one of the GNU ftp sites" |
---|
25 | echo "listed in http://www.gnu.org/order/ftp.html" |
---|
26 | DIE=1 |
---|
27 | } |
---|
28 | |
---|
29 | (libtool --version) < /dev/null > /dev/null 2>&1 || { |
---|
30 | echo |
---|
31 | echo "You must have libtool installed to compile $package." |
---|
32 | echo "Download the appropriate package for your system," |
---|
33 | echo "or get the source from one of the GNU ftp sites" |
---|
34 | echo "listed in http://www.gnu.org/order/ftp.html" |
---|
35 | DIE=1 |
---|
36 | } |
---|
37 | |
---|
38 | #(gettext --version) < /dev/null > /dev/null 2>&1 || { |
---|
39 | # echo |
---|
40 | # echo "You must have gettext installed to compile $package." |
---|
41 | # echo "Download the appropriate package for your system," |
---|
42 | # echo "or get the source from one of the GNU ftp sites" |
---|
43 | # echo "listed in http://www.gnu.org/order/ftp.html" |
---|
44 | # DIE=1 |
---|
45 | #} |
---|
46 | |
---|
47 | if test "$DIE" -eq 1; then |
---|
48 | exit 1 |
---|
49 | fi |
---|
50 | |
---|
51 | if [ ! -e acinclude.m4 ]; then |
---|
52 | for i in .. ../.. ../../..; do |
---|
53 | if [ -e `pwd`/$i/acinclude.m4 ]; then |
---|
54 | ln -s `pwd`/$i/acinclude.m4 . |
---|
55 | fi |
---|
56 | done |
---|
57 | fi |
---|
58 | |
---|
59 | echo "Generating configuration files for $package, please wait...." |
---|
60 | |
---|
61 | echo " aclocal $ACLOCAL_FLAGS" |
---|
62 | aclocal $ACLOCAL_FLAGS |
---|
63 | echo " libtoolize --automake -f -c" |
---|
64 | libtoolize --automake -f -c |
---|
65 | #echo " gettextize" |
---|
66 | #gettextize |
---|
67 | echo " autoconf" |
---|
68 | autoconf |
---|
69 | echo " autoheader" |
---|
70 | autoheader |
---|
71 | echo " automake --add-missing" |
---|
72 | automake --add-missing |
---|