]> git.mxchange.org Git - simgear.git/blobdiff - autogen.sh
Preparation for next pre-release.
[simgear.git] / autogen.sh
index c045940447981d5c8bf2ec946706f95d43b75e73..ae2800fc590afe096747c705674da197e053a7cb 100755 (executable)
@@ -3,25 +3,27 @@
 OSTYPE=`uname -s`
 MACHINE=`uname -m`
 AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\-p[0-9]$//' | sed -e 's/\.//'`
-# AM_CONDITIONAL(ANCIENT_AUTOMAKE, test $AUTO_MAKE_VERSION -lt 14)
-# AM_CONDITIONAL(OLD_AUTOMAKE, test $AUTO_MAKE_VERSION -lt 15)
 
 echo "Host info: $OSTYPE $MACHINE"
 echo -n " automake: `automake --version | head -1 | awk '{print $4}'`"
 echo " ($AUTO_MAKE_VERSION)"
 echo ""
 
-echo -n "Running aclocal"
-if [ $AUTO_MAKE_VERSION -ge 15 ]; then
-    echo " -I ."
-    aclocal -I .
-else
-    echo ""
-    aclocal
+ACLOCAL_OPTS=""
+if [ $AUTO_MAKE_VERSION -ge 14 ]; then
+    if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then    echo " -I ."
+        ACLOCAL_OPTS="-I ."
+    fi
 fi
+echo "Running aclocal $ACLOCAL_OPTS"
+aclocal $ACLOCAL_OPTS
 
 echo "Running autoheader"
 autoheader
+if [ ! -e simgear/simgear_config.h.in ]; then
+    echo "ERROR: autoheader didn't create simgear/simgear_config.h.in!"
+    exit 1
+fi    
 
 echo -n "Running automake"
 if [ $OSTYPE = "IRIX" -o $OSTYPE = "IRIX64" ]; then
@@ -35,8 +37,13 @@ fi
 echo "Running autoconf"
 autoconf
 
+if [ ! -e configure ]; then
+    echo "ERROR: configure was not created!"
+    exit 1
+fi
+
 # fixup Makefiles for Irix
-if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then
+if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
     echo "Fixing Makefiles for Irix"
     for n in `find . -name Makefile.in`; do \
         mv -f $n $n.ar-new; \