3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
9 @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3];
10 print "$2 = ", (join ".",@v), " (expected $1)\n";
11 \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2];
18 if vcheck 1.5 "libtool --version"
20 echo "get a copy of GNU libtool >= 1.5"
24 #if vcheck 1.8.2 "automake --version"
26 # if vcheck 1.8.2 "automake-1.8 --version"
28 # echo "get a copy of GNU automake >= 1.8.2"
31 # automake=automake-1.8
32 # aclocal="aclocal-1.8 --acdir=/usr/share/aclocal-1.8 -I /usr/share/aclocal/"
36 # aclocal="aclocal -I /usr/pack/libtool-1.5-to/share/aclocal"
39 if vcheck 1.7.9 "automake --version"
41 if vcheck 1.7.9 "automake-1.7 --version"
43 echo "get a copy of GNU automake >= 1.79"
47 aclocal="aclocal-1.7 --acdir=/usr/share/aclocal-1.7 -I /usr/share/aclocal/"
51 aclocal="aclocal -I /usr/pack/libtool-1.5-to/share/aclocal"
54 if vcheck 2.58 "autoconf --version"
56 echo "get a copy of GNU autoconf >= 2.58"
66 find . -name Makefile | xargs rm -f
67 find . -name "*.la" | xargs rm -f
68 find . -name Makefile.in | xargs rm -f
69 find . -name .libs | xargs rm -r
70 find . -name .debs | xargs rm -r
73 # wget ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz
74 libtoolize --copy --force
77 # wget ftp://sources.redhat.com/pub/automake/automake-1.7.9.tar.gz
78 # If autoconf generates undefined MACRO errors, it may be unable
79 # to find libtool.m4. Add the -I flag to aclocal to specify the
80 # directory location of this file.
82 $automake --foreign --add-missing --force-missing --copy --warnings=all
83 # wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.58.tar.gz
84 autoconf --warnings=all --force
86 autoheader --warnings=all --force