Generate gtk-doc.make from gtkdocize.
[profile/ivi/gstreamer-vaapi.git] / autogen.sh
1 #! /bin/sh
2
3 GTKDOCIZE=`which gtkdocize`
4 if test -z $GTKDOCIZE; then
5     echo "*** No gtk-doc support ***"
6     echo "EXTRA_DIST =" > gtk-doc.make
7 else
8     gtkdocize || exit $?
9     # we need to patch gtk-doc.make to support pretty output with
10     # libtool 1.x.  Should be fixed in the next version of gtk-doc.
11     # To be more resilient with the various versions of gtk-doc one
12     # can find, just sed gkt-doc.make rather than patch it.
13     sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
14         && mv gtk-doc.temp gtk-doc.make
15     sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
16         && mv gtk-doc.temp gtk-doc.make
17 fi
18
19 autoreconf -v --install
20 ./configure "$@"