comparison bootstrap.sh @ 229:7bb9e20e3092

Few more adjustments.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 19 Dec 2004 16:57:01 +0000
parents 174130d3ddd0
children 5a390af358fc
comparison
equal deleted inserted replaced
228:a9a5924eb10c 229:7bb9e20e3092
1 #! /bin/sh 1 #! /bin/sh
2 WANT_AM_VERSION=1.7 2 WANT_AM_VERSION=1.7
3 3
4 echo "**" 4 echo "***"
5 echo "** Now bootstrapping the package." 5 echo "*** Now bootstrapping the package."
6 echo "** This may take a while, please be patient ..." 6 echo "*** This may take a while, please be patient ..."
7 echo "**" 7 echo "***"
8 ftest_msg()
9 {
10 echo "You do not have required GNU Autotools installed, please install"
11 echo "recent version of GNU autoconf, automake and libtool packages."
12 echo "(Could not find runnable $1)"
13 }
8 14
9 ftest_am_package() 15 ftest_am_package()
10 { 16 {
11 if test -x `which "$1-$WANT_AM_VERSION"`; then 17 if test -x `which "$1-$WANT_AM_VERSION"`; then
12 echo "** $1-$WANT_AM_VERSION $2" 18 echo "* $1-$WANT_AM_VERSION $2"
13 eval `$1-$WANT_AM_VERSION $2` 19 eval `$1-$WANT_AM_VERSION $2`
14 else 20 else
15 if test -x `which $1`; then 21 if test -x `which $1`; then
16 echo "** $1 $2" 22 echo "* Warning! Could not find $1-$WANT_AM_VERSION!"
23 echo " Trying '$1', which may fail due to incompabilities."
24 echo "* $1 $2"
17 eval `$1 $2` 25 eval `$1 $2`
18 else 26 else
19 echo "You do not have required GNU Autotools installed, please install" 27 ftest_msg "'$1-$WANT_AM_VERSION' or '$1'"
20 echo "recent version of GNU autoconf, automake and libtool packages."
21 echo "(Could not find runnable '$1-$WANT_AM_VERSION' or '$1')"
22 exit 1 28 exit 1
23 fi 29 fi
24 fi 30 fi
25 } 31 }
26 32
27 ftest_ac_package() 33 ftest_ac_package()
28 { 34 {
29 if test -x `which $1`; then 35 if test -x `which $1`; then
30 echo "** $1 $2" 36 echo "* $1 $2"
31 eval `$1 $2` 37 eval `$1 $2`
32 else 38 else
33 echo "You do not have required GNU Autotools installed, please install" 39 ftest_msg "'$1'"
34 echo "recent version of GNU autoconf, automake and libtool packages."
35 echo "(Could not find runnable '$1')"
36 exit 1 40 exit 1
37 fi 41 fi
38 } 42 }
39 43
40 ftest_package() 44 ftest_package()
41 { 45 {
42 if test -x `which $1`; then 46 if test -x `which $1`; then
43 echo "** $1 $2" 47 echo "* $1 $2"
44 eval `$1 $2` 48 eval `$1 $2`
45 else 49 else
46 echo "Could not find runnable '$1'." 50 echo "Could not find runnable '$1', perhaps $3 package is not installed"
51 echo "or it is not in the PATH. Please install $4."
47 exit 1 52 exit 1
48 fi 53 fi
49 } 54 }
50 55
51 ftest_am_package "aclocal" "-I ." 56 ftest_am_package "aclocal" "-I ."
52 ftest_am_package "automake" "-a -c --foreign" 57 ftest_am_package "automake" "-a -c --foreign"
53 ftest_ac_package "autoheader" ""
54 ftest_ac_package "autoconf" "" 58 ftest_ac_package "autoconf" ""
55 ftest_ac_package "libtoolize" "--automake --force" 59 ftest_ac_package "libtoolize" "--automake --force"
56 ftest_package "glade" "-w xmms-sid.glade" 60 ftest_package "glade" "-w xmms-sid.glade" "Glade" "Glade for Gtk+1 applications (Glade v0.6.4)"
57