decoder: maintain caps for interlaced streams.
[platform/upstream/gstreamer-vaapi.git] / autogen.sh
1 #!/bin/sh
2
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5
6 PROJECT=gstreamer-vaapi
7 TEST_TYPE=-d
8 FILE=gst-libs
9
10 test $TEST_TYPE $FILE || {
11     echo "You must run this script in the top-level $PROJECT directory"
12     exit 1
13 }
14
15 GTKDOCIZE=`which gtkdocize`
16 if test -z $GTKDOCIZE; then
17     echo "*** No gtk-doc support ***"
18     echo "EXTRA_DIST =" > gtk-doc.make
19 else
20     gtkdocize || exit $?
21     # we need to patch gtk-doc.make to support pretty output with
22     # libtool 1.x.  Should be fixed in the next version of gtk-doc.
23     # To be more resilient with the various versions of gtk-doc one
24     # can find, just sed gkt-doc.make rather than patch it.
25     sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
26         && mv gtk-doc.temp gtk-doc.make
27     sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
28         && mv gtk-doc.temp gtk-doc.make
29 fi
30
31 AUTORECONF=`which autoreconf`
32 if test -z $AUTORECONF; then
33     echo "*** No autoreconf found ***"
34     exit 1
35 else
36     ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
37 fi
38
39 if test -z "$NO_CONFIGURE"; then
40     ./configure "$@" && echo "Now type 'make' to compile $PROJECT."
41 fi