added autotools version check to MakeMakefiles
[rrdtool.git] / MakeMakefile
1 #!/bin/sh
2 #
3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
5 set -x
6 #
7 find . -name Makefile | xargs rm -f
8 find . -name Makefile.in | xargs rm -f
9
10 if [ 1.4.2 -gt `libtool --version | awk '{print $4}'` ]
11 then
12   echo get a copy of GNU libtool >= 1.4.2
13   exit 1
14 fi
15
16 if [ 1.5 -gt `automake --version | head -1 | awk '{print $4}'` ]
17 then
18   echo get a copy of GNU automake >= 1.5
19   exit 1
20 fi
21
22 if [ 2.52 -gt `autoconf --version | head -1 | awk '{print $4}'` ]
23 then
24   echo get a copy of GNU autoconf >= 2.52
25   exit 1
26 fi
27
28
29
30 # wget ftp://ftp.gnu.org/gnu/libtool/libtool-1.4.2.tar.gz
31 libtoolize --copy
32 cp ltmain.sh config
33
34 # wget ftp://sources.redhat.com/pub/automake/automake-1.5.tar.gz
35 aclocal
36 autoheader --warnings=all
37 automake --foreign --add-missing --force-missing --copy 
38
39 # wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.52.tar.gz
40 autoconf 
41
42