aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-18 05:00:40 +0800
committerDan Winship <danw@src.gnome.org>2000-06-18 05:00:40 +0800
commit3144d402b542be9fcfcb6f7b3e24692f9fe44f46 (patch)
treee6bbc148954271f800aa710f1648669d8e0aea6e
parentb6225c748dd2ca4c32daad1b30b285508d14b3c4 (diff)
downloadgsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar.gz
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar.bz2
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar.lz
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar.xz
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.tar.zst
gsoc2013-evolution-3144d402b542be9fcfcb6f7b3e24692f9fe44f46.zip
exit immediately if aclocal, autoheader, automake, or autoconf fails,
* autogen.sh: exit immediately if aclocal, autoheader, automake, or autoconf fails, rather than continuing on with broken state. (In the aclocal case, print a hopefully-useful explanatory message.) svn path=/trunk/; revision=3616
-rw-r--r--macros/ChangeLog7
-rw-r--r--macros/autogen.sh20
2 files changed, 22 insertions, 5 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index ac39413dfb..5122c1667e 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,10 @@
+2000-06-17 Dan Winship <danw@helixcode.com>
+
+ * autogen.sh: exit immediately if aclocal, autoheader, automake,
+ or autoconf fails, rather than continuing on with broken state.
+ (In the aclocal case, print a hopefully-useful explanatory
+ message.)
+
2000-06-13 Martin Baulig <baulig@suse.de>
* gnome-bonobo-check.am (AM_BONOBO_USES_OAF): New macro.
diff --git a/macros/autogen.sh b/macros/autogen.sh
index 18cfd60720..a649be9b04 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -145,16 +145,26 @@ do
fi
fi
echo "Running aclocal $aclocalinclude ..."
- aclocal $aclocalinclude
+ aclocal $aclocalinclude || {
+ echo
+ echo "**Error**: aclocal failed. This may mean that you have not"
+ echo "installed all of the packages you need, or you may need to"
+ echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
+ echo "for the prefix where you installed the packages whose"
+ echo "macros were not found"
+ exit 1
+ }
+
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
echo "Running autoheader..."
- autoheader
+ autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
echo "Running automake --gnu $am_opt ..."
- automake --add-missing --gnu $am_opt
+ automake --add-missing --gnu $am_opt ||
+ { echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
- autoconf
- )
+ autoconf || { echo "**Error**: autoconf failed."; exit 1; }
+ ) || exit 1
fi
done