* bootstrap: don't check /etc/redhat-release if it doesn't exist (which is
[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 if [ -s /etc/redhat-release ] ; then
10         [ `cut -f 5 -d ' ' /etc/redhat-release` = 7.3 ] && redhat73=true
11 else
12         redhat73=false
13 fi
14 if [ "$redhat73" = "true" ]; then
15         aclocal=/usr/bin/aclocal-1.5
16         autoconf=/usr/bin/autoconf-2.53
17         autoheader=/usr/bin/autoheader-2.53
18
19         if test -z $aclocal ; then
20                 echo "Please install the automake15 RPM package"
21                 redhat73=missing
22         fi
23         if test -z $autoconf || test -z $autoheader ; then
24                 echo "Please install the autoconf253 RPM package"
25                 redhat73=missing
26         fi
27         if test "$redhat73" = "missing" ; then
28                 exit 1
29         fi
30 else
31         aclocal=aclocal
32         autoconf=autoconf
33         autoheader=autoheader
34 fi
35
36 echo ... running aclocal ...
37 $aclocal
38 echo ... running autoconf ...
39 $autoconf
40 echo ... running autoheader ...
41 $autoheader
42
43 echo
44 echo This script has been tested with autoconf 2.53 and
45 echo automake 1.5. Other versions may work, but I recommend the latest
46 echo compatible versions of these.
47 echo
48 echo Also note that autoconf and automake should be configured
49 echo with the same prefix.
50 echo