gstreamer/autogen.sh

39 lines
722 B
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
2010-03-19 17:11:20 +00:00
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
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
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