import ext/codecparsers instead of git submodule
[profile/ivi/gstreamer-vaapi.git] / ext / codecparsers / autogen.sh
1 #!/bin/sh
2
3 PROJECT="codecparsers"
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 AUTORECONF=`which autoreconf`
19 if test -z $AUTORECONF; then
20     echo "*** No autoreconf found ***"
21     exit 1
22 else
23     autoreconf -v --install || exit $?
24 fi
25
26 cd "$olddir"
27
28 if test -z "$NO_CONFIGURE"; then
29     $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
30 fi