09-23 Bastien Nocera <hadess@hadess.net>
authorBastien Nocera <hadess@src.gnome.org>
Tue, 24 Sep 2002 22:53:43 +0000 (22:53 +0000)
committerBastien Nocera <hadess@src.gnome.org>
Tue, 24 Sep 2002 22:53:43 +0000 (22:53 +0000)
        * autogen.sh: exit if aclocal, autoheader, automake or autoconf
fails to run without warnings. Usually compilation would fail
afterwards with funky errors.
This is more anal than the version committed to the gnome-2-0 branch

svn path=/trunk/; revision=2597

macros2/ChangeLog
macros2/autogen.sh

index 7c72188..13988fe 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-23  Bastien Nocera  <hadess@hadess.net>
+
+       * autogen.sh: exit if aclocal, autoheader, automake or autoconf
+       fails to run without warnings. Usually compilation would fail
+       afterwards with funky errors.
+       This is more anal than the version committed to the gnome-2-0 branch
+
 2002-08-18  Havoc Pennington  <hp@pobox.com>
 
        * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
index 7be40a7..10e1b36 100644 (file)
@@ -153,15 +153,54 @@ do
       fi
 
       echo "Running aclocal $aclocalinclude ..."
-      aclocal-1.4 $aclocalinclude
+      aclocal-1.4 $aclocalinclude || {
+        echo
+       echo "**Error**: \`aclocal' failed. Please fix the warnings"
+        echo "(probably missing development files) and try again."
+       DIE=1
+      }
+
+      if test "$DIE" -eq 1; then
+        exit 1
+      fi
+
       if grep "^AM_CONFIG_HEADER" $bn >/dev/null; then
        echo "Running autoheader..."
-       autoheader
+       autoheader || {
+          echo
+          echo "**Error**: \`autoheader' failed. Please fix the warnings"
+         echo "(probably missing development files) and try again."
+         DIE=1
+      }
+
+      if test "$DIE" -eq 1; then
+        exit 1
+      fi
+
       fi
       echo "Running automake --gnu $am_opt ..."
-      automake-1.4 --add-missing --gnu $am_opt
+      automake-1.4 --add-missing --gnu $am_opt || {
+        echo
+       echo "**Error**: \`automake' failed. Please fix the warnings"
+       echo "(probably missing development files) and try again."
+       DIE=1
+      }
+
+      if test "$DIE" -eq 1; then
+        exit 1
+      fi
+
       echo "Running autoconf ..."
-      autoconf
+      autoconf || {
+        echo
+       echo "**Error**: \`autoconf' failed. Please fix the warnings"
+       echo "(probably missing development files) and try again."
+       DIE=1
+      }
+
+      if test "$DIE" -eq 1; then
+        exit 1
+      fi
     )
   fi
 done