From ec885f2fe949e71444b483ace7bcc2f993589aa3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 17 Sep 2018 22:25:45 +0200 Subject: [PATCH] autogen.sh: Fix use of undefined function. * autogen.sh: Rewrite error message code. --- autogen.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 2b2f03cc4..bffda50b9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -54,8 +54,10 @@ while :; do esac done -$use_git || test -d "$GNULIB_SRCDIR" \ - || die "Error: --no-git requires --gnulib-srcdir" +if ! $use_git && ! test -d "$GNULIB_SRCDIR"; then + echo "error: --no-git requires GNULIB_SRCDIR to be set" 1>&2 + exit 1 +fi cleanup_gnulib() { status=$? -- 2.47.3