h264: fix incorrect integration of previous commit (4d31e1e).
[vaapi:halleys-gstreamer-vaapi.git] / autogen.sh
1 #!/bin/sh
2
3 PROJECT="gstreamer-vaapi"
4
5 test -n "$srcdir" || srcdir="`dirname \"$0\"`"
6 test -n "$srcdir" || srcdir=.
7
8 if ! test -f "$srcdir/configure.ac"; then
9     echo "Failed to find the top-level $PROJECT directory"
10     exit 1
11 fi
12
13 olddir="`pwd`"
14 cd "$srcdir"
15
16 mkdir -p m4
17
18 GIT=`which git`
19 if test -z "$GIT"; then
20     echo "*** No git found ***"
21     exit 1
22 else
23     if test ! -f ext/codecparsers/autogen.sh; then
24         $GIT submodule init
25     fi
26     $GIT submodule update
27 fi
28
29 GTKDOCIZE=`which gtkdocize`
30 if test -z "$GTKDOCIZE"; then
31     echo "*** No gtk-doc support ***"
32     echo "EXTRA_DIST =" > gtk-doc.make
33 else
34     gtkdocize || exit $?
35 fi
36
37 AUTORECONF=`which autoreconf`
38 if test -z "$AUTORECONF"; then
39     echo "*** No autoreconf found ***"
40     exit 1
41 else
42     autoreconf -v --install || exit $?
43 fi
44
45 cd "$olddir"
46
47 if test -z "$NO_CONFIGURE"; then
48     $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
49 fi