1 #!/bin/sh
2 #
3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
6 PATH="/usr/pack/automake-1.11-to/amd64-linux-debian3.1/:/usr/pack/automake-1.11-to/amd64-linux-ubuntu8.04/bin:$PATH"
7 export PATH
9 vcheck (){
10 perl <<PERL
11 @t = split /\./, "$1";
12 @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3];
13 print "$2 = ", (join ".",@v), " (expecting $1 or later)\n";
14 \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2];
15 exit \$v
16 PERL
17 }
19 ERROR=0
20 LIBTOOL_VER="1.5.6"
21 AUTOMAKE_VER="1.9.2"
22 AUTOCONF_VER="2.59"
24 if vcheck $LIBTOOL_VER "libtool --version"
25 then
26 echo "get a copy of GNU libtool >= $LIBTOOL_VER"
27 ERROR=1
28 fi
30 if vcheck $AUTOMAKE_VER "automake --version"
31 then
32 if vcheck $AUTOMAKE_VER "automake-1.11 --version"
33 then
34 echo "get a copy of GNU automake >= $AUTOMAKE_VER"
35 ERROR=1
36 else
37 AUTOMAKE="automake-1.11"
38 ACLOCAL="aclocal-1.11"
39 export AUTOMAKE ACLOCAL
40 fi
41 fi
44 if vcheck $AUTOCONF_VER "autoconf --version"
45 then
46 echo "get a copy of GNU autoconf >= $autoconf_ver"
47 ERROR=1
48 fi
50 if [ $ERROR -ne 0 ]
51 then
52 exit 1
53 fi
55 ./autogen.sh
57 # vim: set syntax=sh :