Updated the autoconf script and makefile so that
[citadel.git] / webcit / bootstrap
1 #!/bin/sh
2 #
3 # run me after checking WebCit out of svn.
4 #
5 # $Id: bootstrap 3850 2005-09-13 14:00:24Z ajc $
6 #
7
8 # Remove any vestiges of pre-6.05 build environments
9 rm -f .libs modules *.so *.lo *.la
10
11 # Goofy red hat 7.3 stuff
12 if grep 7.3 /etc/redhat-release >/dev/null 2>&1 ; then
13         redhat73=true
14 else
15         redhat73=false
16 fi
17 if [ "$redhat73" = "true" ]; then
18         aclocal=/usr/bin/aclocal-1.5
19         autoconf=/usr/bin/autoconf-2.53
20         autoheader=/usr/bin/autoheader-2.53
21
22         if test -z $aclocal ; then
23                 echo "Please install the automake15 RPM package"
24                 redhat73=missing
25         fi
26         if test -z $autoconf || test -z $autoheader ; then
27                 echo "Please install the autoconf253 RPM package"
28                 redhat73=missing
29         fi
30         if test "$redhat73" = "missing" ; then
31                 exit 1
32         fi
33 else
34         aclocal=aclocal
35         autoconf=autoconf
36         autoheader=autoheader
37 fi
38
39 echo ... running aclocal ...
40 $aclocal
41 echo ... running autoconf ...
42 $autoconf
43 # If your autoconf version changes, the autom4te.cache stuff will mess you up.
44 # Get rid of it.
45 echo ... removing autoheader cache files ...
46 rm -rf autom4te*.cache
47 echo ... running autoheader ...
48 $autoheader
49
50 echo
51 echo This script has been tested with autoconf 2.53 and
52 echo automake 1.5. Other versions may work, but I recommend the latest
53 echo compatible versions of these.
54 echo
55 echo Also note that autoconf and automake should be configured
56 echo with the same prefix.
57 echo