From 69f2b146f723b40bbbfcd7998ba91a2832c403c5 Mon Sep 17 00:00:00 2001 From: gb Date: Fri, 19 Mar 2010 17:11:20 +0000 Subject: Generate gtk-doc.make from gtkdocize. --- autogen.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 9c2f4f66..d5526f99 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,20 @@ #! /bin/sh + +GTKDOCIZE=`which gtkdocize` +if test -z $GTKDOCIZE; then + echo "*** No gtk-doc support ***" + 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 -v --install ./configure "$@" -- cgit v1.2.3