|
Revision 9748, 0.6 KB
(checked in by mayer, 14 months ago)
|
|
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /bin/bash |
|---|
| 2 | |
|---|
| 3 | fail=0 |
|---|
| 4 | if [ ! `which aclocal` ]; then |
|---|
| 5 | echo "aclocal is missing, please install automake first (e.g., sudo apt-get install automake)" |
|---|
| 6 | fail=1 |
|---|
| 7 | fi |
|---|
| 8 | |
|---|
| 9 | if [ ! `which libtoolize` ]; then |
|---|
| 10 | echo "libtoolize is missing, please install libtool first (e.g., sudo apt-get install libtool)" |
|---|
| 11 | fail=1 |
|---|
| 12 | fi |
|---|
| 13 | |
|---|
| 14 | if [ $fail -eq 1 ]; then |
|---|
| 15 | echo "** Script aborted due to errors." |
|---|
| 16 | exit 1; |
|---|
| 17 | fi |
|---|
| 18 | |
|---|
| 19 | echo "Running autotools..." |
|---|
| 20 | |
|---|
| 21 | aclocal \ |
|---|
| 22 | && libtoolize --force \ |
|---|
| 23 | && autoheader \ |
|---|
| 24 | && automake -a --foreign --add-missing \ |
|---|
| 25 | && autoreconf |
|---|
| 26 | |
|---|
| 27 | echo "Done." |
|---|
| 28 | echo "Now type:" |
|---|
| 29 | echo "> ./configure" |
|---|
| 30 | echo "> make" |
|---|
| 31 | echo "> sudo make install" |
|---|
| 32 | echo "> sudo ldconfig" |
|---|