diff --git a/autogen.sh b/autogen.sh index 9e4ba4c39..7c8c306d8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -7,8 +7,7 @@ test -n "$srcdir" || srcdir=. olddir=`pwd` cd "$srcdir" -GTKDOCIZE=$(which gtkdocize 2>/dev/null) -if test -z $GTKDOCIZE; then +if ! command -v gtkdocize >/dev/null 2>&1; then echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." rm -f gtk-doc.make cat > gtk-doc.make </dev/null 2>&1; then echo "*** No autoreconf found, please install it ***" exit 1 fi