gstreamer/autogen.sh

57 lines
1.1 KiB
Bash
Raw Normal View History

2010-03-19 17:13:59 +00:00
#!/bin/sh
PROJECT="gstreamer-vaapi"
2010-03-19 17:13:59 +00:00
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
test -n "$srcdir" || srcdir=.
2010-03-19 17:13:59 +00:00
if ! test -f "$srcdir/configure.ac"; then
echo "Failed to find the top-level $PROJECT directory"
2010-03-19 17:13:59 +00:00
exit 1
fi
olddir="`pwd`"
cd "$srcdir"
2010-03-19 17:11:20 +00:00
mkdir -p m4
2012-10-11 08:03:14 +00:00
GIT=`which git`
if test -z "$GIT"; then
echo "*** No git found ***"
exit 1
else
submodule_init="no"
2015-04-17 08:10:10 +00:00
for ext_module in codecparsers; do
if test ! -f ext/${ext_module}/autogen.sh; then
submodule_init="yes"
fi
done
[ -f ext/libvpx/upstream/configure ] || submodule_init="yes"
if test "$submodule_init" = "yes"; then
2012-10-11 08:03:14 +00:00
$GIT submodule init
fi
$GIT submodule update
fi
2010-03-19 17:11:20 +00:00
GTKDOCIZE=`which gtkdocize`
if test -z "$GTKDOCIZE"; then
2010-03-19 17:11:20 +00:00
echo "*** No gtk-doc support ***"
echo "EXTRA_DIST =" > gtk-doc.make
else
gtkdocize || exit $?
fi
2010-03-19 17:13:59 +00:00
AUTORECONF=`which autoreconf`
if test -z "$AUTORECONF"; then
2010-03-19 17:13:59 +00:00
echo "*** No autoreconf found ***"
exit 1
else
autoreconf -v --install || exit $?
2010-03-19 17:13:59 +00:00
fi
cd "$olddir"
if test -z "$NO_CONFIGURE"; then
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
fi