First step for something doing static friction stuff.
[simgear.git] / autogen.sh
blob84bbd4248a7babd4ce7d8d45b91fdb2fca07e6a5
1 #!/bin/sh
3 OSTYPE=`uname -s`
4 MACHINE=`uname -m`
5 AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
6 if test $AUTO_MAKE_VERSION -lt 15; then
7 echo ""
8 echo "You need to upgrade to automake version 1.5 or greater."
9 echo "Most distributions have packages available to install or you can"
10 echo "find the source for the most recent version at"
11 echo "ftp://ftp.gnu.org/gnu/automake"
12 exit 1
15 echo "Host info: $OSTYPE $MACHINE"
16 echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
17 echo " ($AUTO_MAKE_VERSION)"
18 echo ""
20 echo "Running aclocal"
21 aclocal
23 echo "Running autoheader"
24 autoheader
25 if [ ! -e simgear/simgear_config.h.in ]; then
26 echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
27 exit 1
28 fi
30 echo "Running automake --add-missing"
31 automake --add-missing
33 echo "Running autoconf"
34 autoconf
36 if [ ! -e configure ]; then
37 echo "ERROR: configure was not created!"
38 exit 1
41 echo ""
42 echo "======================================"
44 if [ -f config.cache ]; then
45 echo "config.cache exists. Removing the config.cache file will force"
46 echo "the ./configure script to rerun all it's tests rather than using"
47 echo "the previously cached values."
48 echo ""
51 echo "Now you are ready to run './configure'"
52 echo "======================================"