merged in Shawn's build tools checker for autogen
[OpenSRF.git] / autogen.sh
1 #!/bin/sh
2 # autogen.sh - generates configure using the autotools
3
4 : ${LIBTOOLIZE=libtoolize}
5 : ${ACLOCAL=aclocal}
6 : ${AUTOHEADER=autoheader}
7 : ${AUTOMAKE=automake}
8 : ${AUTOCONF=autoconf}
9
10
11 ${LIBTOOLIZE} --force --copy
12 ${ACLOCAL}
13 ${AUTOMAKE} --add-missing
14
15
16 ${AUTOCONF}
17
18 SILENT=`which libtoolize aclocal autoheader automake autoconf`
19 case "$?" in
20     0 )
21         echo All build tools found.
22         ;;
23     1)
24         echo
25         echo "--------------------------------------------------------------"
26         echo "          >>> Some build tools are missing! <<<"
27         echo Please make sure your system has the GNU autoconf and automake
28         echo toolchains installed.
29         echo "--------------------------------------------------------------"
30         exit
31         ;;
32 esac
33
34 echo 
35 echo "---------------------------------------------"
36 echo "autogen finished running, now run ./configure"
37 echo "---------------------------------------------"