X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=d27b5c676420bf43cd6abc621c8847527ba9a79e;hp=0e1b5bedf68d5e173bd28935a954c740f98406e1;hb=3d9a412243035beeaaf3465a62065444a5adf21c;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/autogen.sh b/autogen.sh index 0e1b5bedf..d27b5c676 100755 --- a/autogen.sh +++ b/autogen.sh @@ -21,7 +21,15 @@ if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then echo "Activated pre-commit hook." fi -gtkdocize +GTKDOCIZE=$(which gtkdocize 2>/dev/null) +if test -z $GTKDOCIZE; then + echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation." + echo 'EXTRA_DIST =' > gtk-doc.make +else + gtkdocize + gtkdocargs=--enable-gtk-doc +fi + intltoolize --force --automake autoreconf --force --install --symlink @@ -34,7 +42,7 @@ args="\ --localstatedir=/var \ --libdir=$(libdir /usr/lib) \ --libexecdir=/usr/lib \ ---enable-gtk-doc" +$gtkdocargs" if [ ! -L /bin ]; then args="$args \