Code

complete segfault fix for second axis %s format begun in r2123 (thanks Martin Pelikan...
[rrdtool.git] / MakeMakefile
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:/usr/pack/gettext-0.18.1.1-to/amd64-linux-ubuntu8.04/bin:$PATH"
7 export PATH
8 vcheck (){
9   perl <<PERL
10 @t = split /\./, "$1";
11 @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3];
12 print "$2 = ", (join ".",@v), "  (expecting $1 or later)\n";
13 \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2];
14 exit \$v
15 PERL
16 }
18 ERROR=0
19 LIBTOOL_VER="1.5.6"
20 AUTOMAKE_VER="1.9.2"
21 AUTOCONF_VER="2.59"
23 if vcheck $LIBTOOL_VER "libtool --version"
24 then
25   echo "get a copy of GNU libtool >= $LIBTOOL_VER"
26   ERROR=1
27 fi
29 if vcheck $AUTOMAKE_VER  "automake  --version"
30 then
31   if vcheck $AUTOMAKE_VER  "automake-1.11 --version"
32   then
33     echo "get a copy of GNU automake >= $AUTOMAKE_VER"
34     ERROR=1
35   else
36     AUTOMAKE="automake-1.11"
37     ACLOCAL="aclocal-1.11"
38     export AUTOMAKE ACLOCAL
39   fi
40 fi
43 if vcheck $AUTOCONF_VER "autoconf --version"
44 then
45   echo "get a copy of GNU autoconf >= $autoconf_ver"
46   ERROR=1
47 fi
49 if [ $ERROR -ne 0 ]
50 then
51   exit 1
52 fi
54 ./autogen.sh
56 # vim: set syntax=sh :