]> git.mxchange.org Git - flightgear.git/blob - autogen.sh
Mail++, Vivian++, ... and mine, of course :-)
[flightgear.git] / autogen.sh
1 #!/bin/sh
2
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
13 fi
14
15 echo "Host info: $OSTYPE $MACHINE"
16 echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
17 echo " ($AUTO_MAKE_VERSION)"
18 echo ""
19
20 echo "Running aclocal"
21 aclocal
22
23 echo "Running autoheader"
24 autoheader
25 if [ ! -e src/Include/config.h.in ]; then
26     echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
27     exit 1
28 fi    
29
30 echo "Running automake --add-missing"
31 automake --add-missing
32
33 echo "Running autoconf"
34 autoconf
35
36 if [ ! -e configure ]; then
37     echo "ERROR: configure was not created!"
38     exit 1
39 fi
40
41 echo ""
42 echo "======================================"
43
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 ""
49 fi
50
51 echo "Now you are ready to run './configure'"
52 echo "======================================"