autogen: fix check for gtkdocize and autoreconf.

If gtkdocize or autoreconf programs were not found, then the autogen.sh
script would fail to report that correctly because test -z was not passed
any argument (empty string "" in this case).
This commit is contained in:
Gwenole Beauchesne 2012-10-11 13:40:37 +02:00
parent fa87396905
commit 9692201505

View file

@ -16,7 +16,7 @@ cd "$srcdir"
mkdir -p m4 mkdir -p m4
GTKDOCIZE=`which gtkdocize` GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then if test -z "$GTKDOCIZE"; then
echo "*** No gtk-doc support ***" echo "*** No gtk-doc support ***"
echo "EXTRA_DIST =" > gtk-doc.make echo "EXTRA_DIST =" > gtk-doc.make
else else
@ -24,7 +24,7 @@ else
fi fi
AUTORECONF=`which autoreconf` AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then if test -z "$AUTORECONF"; then
echo "*** No autoreconf found ***" echo "*** No autoreconf found ***"
exit 1 exit 1
else else