[PATCH 2/3] build: Allow autogen-eration on systems without GTK-doc
Andrea Canciani <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
The autogen.sh script fails if it cannot run gtkdocize. The absence of this command should cause cairo builds to fail, it should only prevent the build of its documentation. Fixes: *** No GTK-Doc found, please install it *** on systems without gtkdoc tools. --- autogen.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index f085022..acb23c7 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,8 +15,9 @@ fi GTKDOCIZE=`which gtkdocize` if test -z $GTKDOCIZE; then - echo "*** No GTK-Doc found, please install it ***" - exit 1 + echo "*** No GTK-Doc found, documentation won't be generated ***" +else + gtkdocize || exit $? fi # create dummy */Makefile.am.features and ChangeLog to make automake happy @@ -24,7 +25,6 @@ fi > src/Makefile.am.features touch ChangeLog -gtkdocize || exit $? autoreconf --force --install --verbose || exit $? cd $ORIGDIR -- 1.7.7.5 (Apple Git-26) -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo