From 0792fefb2bc9d5db038b48855f0b1bb138653332 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 29 Oct 2011 07:48:54 +0200 Subject: Handle build case when gettextize is not available or not installed --- autogen.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 2b68539..97b28f5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -12,10 +12,16 @@ fi set -x +gettextize=$(which gettextize) +if test -z "$gettextize"; then + echo "Couldn't find gettextize" >&2 + exit 1 +fi + # Copied from avahi's autogen.sh to work around gettext braindamage rm -f Makefile.am~ configure.ac~ # Evil, evil, evil, evil hack -sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force --no-changelog +sed 's/read dummy/\#/' $gettextize | sh -s -- --copy --force --no-changelog test -f Makefile.am~ && mv Makefile.am~ Makefile.am test -f configure.ac~ && mv configure.ac~ configure.ac -- cgit v1.1