* Fix bootstrap for Red Hat 7.3
[citadel.git] / citadel / bootstrap
1 #!/bin/sh
2 #
3 # run me after checking Citadel out of CVS.
4 #
5 # $Id$
6 #
7
8 # Goofy red hat 7.3 stuff
9 [ `cut -f 5 -d ' ' /etc/redhat-release` = 7.3 ] && redhat73=true
10 if [ "$redhat73" = "true" ]; then
11         aclocal=/usr/bin/aclocal-1.5
12         autoconf=/usr/bin/autoconf-2.53
13         autoheader=/usr/bin/autoheader-2.53
14
15         if test -z $aclocal ; then
16                 echo "Please install the automake15 RPM package"
17                 redhat73=missing
18         fi
19         if test -z $autoconf || test -z $autoheader ; then
20                 echo "Please install the autoconf253 RPM package"
21                 redhat73=missing
22         fi
23         if test "$redhat73" = "missing" ; then
24                 exit 1
25         fi
26 else
27         aclocal=aclocal
28         autoconf=autoconf
29         autoheader=autoheader
30 fi
31
32 echo ... running aclocal ...
33 $aclocal
34 echo ... running libtoolize ...
35 libtoolize -c --force
36 echo ... running autoconf ...
37 $autoconf
38 echo ... running autoheader ...
39 $autoheader
40
41 echo
42 echo This script has been tested with autoconf 2.53, libtool 1.4d, and
43 echo automake 1.5. Other versions may work, but I recommend the latest
44 echo compatible versions of these.
45 echo
46 echo libtool 1.4.2 is not sufficient to build portable configure scripts;
47 echo at least version 1.4d from alpha.gnu.org is needed.
48 echo
49 echo Also note that autoconf, automake, and libtool should all be configured
50 echo with the same prefix.
51 echo