From 173ea684dd355c68c3a9f521d108ff10c2fb3f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Sat, 18 Aug 2018 14:22:57 +0800 Subject: Don't instruct user to run make when autogen.sh failed Currently the autogen script will always tell user to run make even when the configure script failed, this patch changes the behavior to only show this message when the configure script terminates without error. --- autogen.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 8b47ea50..4e7858a5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -76,6 +76,11 @@ fi if test -z "$NOCONFIGURE"; then $srcdir/configure $EXTRA_ARGS "$@" - echo - echo "Now type 'make' to compile libxml2." + if test "$?" -ne 0; then + echo + echo "Configure script failed, check config.log for more info." + else + echo + echo "Now type 'make' to compile libxml2." + fi fi -- cgit v1.2.1