From 39ade7171117b76c7811cb19fe737f4f93c6f013 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Mon, 17 Jan 2005 15:25:27 +0000 Subject: [PATCH] Issue better warning message if dependencies not found svn path=/trunk/boinc/; revision=5128 --- _autosetup | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/_autosetup b/_autosetup index da342b66be..8e73f2bbce 100755 --- a/_autosetup +++ b/_autosetup @@ -16,17 +16,22 @@ fi echo "Bootstrapping configure script and makefiles:" -aclocal -I m4 && autoheader && automake && autoconf +if aclocal -I m4 && autoheader && automake && autoconf; then + ## We don't always run ./configure ourselves here, because the user may not + ## want to run it, or may want to run with custom parameters. -## We don't always run ./configure ourselves here, because the user may not -## want to run it, or may want to run with custom parameters. - -if [ "$1" = "-a" ]; then - ./configure -C --enable-maintainer-mode -elif [ "$1" = "-c" ]; then - ./configure -C + if [ "$1" = "-a" ]; then + ./configure -C --enable-maintainer-mode + elif [ "$1" = "-c" ]; then + ./configure -C + else + echo "Done, now run ./configure" + echo " ./configure -C to enable caching" + echo " ./configure --enable-maintainer-mode to enable maintainer depedencies" + exit 0 + fi else - echo "Done, now run ./configure" - echo " ./configure -C to enable caching" - echo " ./configure --enable-maintainer-mode to enable maintainer depedencies" + echo "Something failed .... please check error-message and re-run when fixed." + echo "exiting..." + exit 1 fi