From 84fa469957e3055b395cb430ace9155a5b21efd5 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: [PATCH] Don't instruct user to run make when the configure script failed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Refer-to: autogen.sh should check pkg-config's presence (#21) · Issues · GNOME / libxml2 · GitLab Signed-off-by: 林博仁(Buo-ren Lin) --- 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 -- GitLab