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
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"
15 echo "Host info: $OSTYPE $MACHINE"
16 echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
17 echo " ($AUTO_MAKE_VERSION)"
21 if [ $AUTO_MAKE_VERSION -ge 14 ]; then
22 if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then echo " -I ."
26 echo "Running aclocal $ACLOCAL_OPTS"
29 echo "Running autoheader"
31 if [ ! -e src/Include/config.h.in ]; then
32 echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
36 echo -n "Running automake"
37 if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then
38 echo " --add-missing --include-deps"
39 automake --add-missing --include-deps
42 automake --add-missing
45 echo "Running autoconf"
48 if [ ! -e configure ]; then
49 echo "ERROR: configure was not created!"
53 # fixup Makefiles for Irix
54 if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
55 echo "Fixing Makefiles for Irix"
56 for n in `find . -name Makefile.in`; do \
58 sed 's/$(AR) cru/$(AR) -o/g' $n.ar-new > $n; \
64 echo "======================================"
66 if [ -f config.cache ]; then
67 echo "config.cache exists. Removing the config.cache file will force"
68 echo "the ./configure script to rerun all it's tests rather than using"
69 echo "the previously cached values."
73 echo "Now you are ready to run './configure'"
74 echo "======================================"