echo "EXTRA_DIST =" > gtk-doc.make
else
gtkdocize || exit $?
- # we need to patch gtk-doc.make to support pretty output with
- # libtool 1.x. Should be fixed in the next version of gtk-doc.
- # To be more resilient with the various versions of gtk-doc one
- # can find, just sed gkt-doc.make rather than patch it.
- sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
- && mv gtk-doc.temp gtk-doc.make
- sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
- && mv gtk-doc.temp gtk-doc.make
fi
AUTORECONF=`which autoreconf`
dnl Check for Gtk doc
GTKDOC_VERSION=gtkdoc_version
-GTK_DOC_CHECK([$GTKDOC_VERSION])
-AM_CONDITIONAL([BUILD_GTK_DOC], [test "x$enable_gtk_doc" = "xyes"])
+# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
+m4_ifdef([GTK_DOC_CHECK], [
+GTK_DOC_CHECK([$GTKDOC_VERSION], [--flavour no-tmpl])], [
+AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
AC_SUBST(GTKDOC_VERSION)
dnl Check for GLib