2003-05-09 08:09:38 +00:00
|
|
|
#!/bin/sh
|
2013-04-14 16:55:02 +00:00
|
|
|
#
|
|
|
|
# gst-plugins-good autogen.sh
|
|
|
|
#
|
2001-12-17 18:37:01 +00:00
|
|
|
# Run this to generate all the initial makefiles, etc.
|
2013-04-14 16:55:02 +00:00
|
|
|
#
|
|
|
|
# This file has been generated from common/autogen.sh.in via common/update-autogen
|
|
|
|
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2013-01-22 17:12:10 +00:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
|
|
|
|
olddir=`pwd`
|
|
|
|
cd "$srcdir"
|
|
|
|
|
2001-12-17 18:37:01 +00:00
|
|
|
DIE=0
|
2005-09-12 16:14:48 +00:00
|
|
|
package=gst-plugins-good
|
2013-04-14 16:55:02 +00:00
|
|
|
srcfile=gst-plugins-good.doap
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2009-01-21 03:31:58 +00:00
|
|
|
# Make sure we have common
|
|
|
|
if test ! -f common/gst-autogen.sh;
|
2005-09-06 14:05:33 +00:00
|
|
|
then
|
2009-01-21 03:31:58 +00:00
|
|
|
echo "+ Setting up common submodule"
|
|
|
|
git submodule init
|
2002-02-06 18:46:39 +00:00
|
|
|
fi
|
2009-01-21 03:31:58 +00:00
|
|
|
git submodule update
|
2002-02-06 18:46:39 +00:00
|
|
|
|
2002-02-06 18:18:16 +00:00
|
|
|
# source helper functions
|
2003-05-09 08:09:38 +00:00
|
|
|
if test ! -f common/gst-autogen.sh;
|
2002-02-06 18:18:16 +00:00
|
|
|
then
|
|
|
|
echo There is something wrong with your source tree.
|
|
|
|
echo You are missing common/gst-autogen.sh
|
2001-12-17 18:37:01 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2002-02-06 18:18:16 +00:00
|
|
|
. common/gst-autogen.sh
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2009-01-22 05:05:26 +00:00
|
|
|
# install pre-commit hook for doing clean commits
|
2009-01-30 07:53:06 +00:00
|
|
|
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
|
2009-01-22 05:05:26 +00:00
|
|
|
then
|
2009-01-30 07:53:06 +00:00
|
|
|
rm -f .git/hooks/pre-commit
|
|
|
|
ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
|
2009-01-22 05:05:26 +00:00
|
|
|
fi
|
|
|
|
|
2012-02-22 01:16:32 +00:00
|
|
|
# GNU gettext automake support doesn't get along with git.
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
|
2013-04-14 16:55:02 +00:00
|
|
|
if test -d po ; then
|
|
|
|
touch -t 200001010000 po/gst-plugins-good-1.0.pot
|
|
|
|
fi
|
2009-01-22 05:05:26 +00:00
|
|
|
|
2010-03-18 22:12:40 +00:00
|
|
|
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
|
2002-05-27 14:01:51 +00:00
|
|
|
|
2013-04-14 16:55:02 +00:00
|
|
|
if test "x$package" = "xgstreamer"; then
|
|
|
|
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
|
|
|
|
fi
|
|
|
|
|
2002-02-06 18:18:16 +00:00
|
|
|
autogen_options $@
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2009-06-26 14:00:14 +00:00
|
|
|
printf "+ check for build tools"
|
2013-04-14 16:55:02 +00:00
|
|
|
if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
|
2015-04-03 17:57:50 +00:00
|
|
|
version_check "autoreconf" "autoreconf " \
|
2013-04-14 16:55:02 +00:00
|
|
|
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 68 || DIE=1
|
2002-09-30 07:20:35 +00:00
|
|
|
version_check "pkg-config" "" \
|
|
|
|
"http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2002-05-18 22:45:56 +00:00
|
|
|
die_check $DIE
|
|
|
|
|
2002-02-06 18:18:16 +00:00
|
|
|
# if no arguments specified then this will be printed
|
2013-04-14 16:55:02 +00:00
|
|
|
if test -z "$*" && test -z "$NOCONFIGURE"; then
|
2002-02-07 14:30:20 +00:00
|
|
|
echo "+ checking for autogen.sh options"
|
|
|
|
echo " This autogen script will automatically run ./configure as:"
|
|
|
|
echo " ./configure $CONFIGURE_DEF_OPT"
|
|
|
|
echo " To pass any additional options, please specify them on the $0"
|
|
|
|
echo " command line."
|
2001-12-17 18:37:01 +00:00
|
|
|
fi
|
|
|
|
|
2002-02-06 18:18:16 +00:00
|
|
|
toplevel_check $srcfile
|
|
|
|
|
2004-01-19 15:45:55 +00:00
|
|
|
# autopoint
|
2013-09-19 16:35:27 +00:00
|
|
|
if test -d po ; then
|
2015-04-03 17:57:50 +00:00
|
|
|
tool_run "autopoint" "--force"
|
2005-07-08 10:47:30 +00:00
|
|
|
fi
|
2004-01-19 15:45:55 +00:00
|
|
|
|
2013-04-14 16:55:02 +00:00
|
|
|
# aclocal
|
|
|
|
if test -f acinclude.m4; then rm acinclude.m4; fi
|
|
|
|
|
2015-04-03 17:57:50 +00:00
|
|
|
autoreconf --force --install || exit 1
|
2001-12-20 23:13:50 +00:00
|
|
|
|
2001-12-22 01:59:48 +00:00
|
|
|
test -n "$NOCONFIGURE" && {
|
2002-02-07 14:30:20 +00:00
|
|
|
echo "+ skipping configure stage for package $package, as requested."
|
|
|
|
echo "+ autogen.sh done."
|
|
|
|
exit 0
|
2001-12-22 01:59:48 +00:00
|
|
|
}
|
2001-12-20 23:13:50 +00:00
|
|
|
|
2013-01-22 17:12:10 +00:00
|
|
|
cd "$olddir"
|
|
|
|
|
2001-12-17 18:37:01 +00:00
|
|
|
echo "+ running configure ... "
|
2013-04-14 16:55:02 +00:00
|
|
|
test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
|
|
|
|
test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
|
2001-12-17 18:37:01 +00:00
|
|
|
echo
|
|
|
|
|
2013-04-14 16:55:02 +00:00
|
|
|
echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
|
|
|
|
"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
|
2002-02-06 18:18:16 +00:00
|
|
|
echo " configure failed"
|
|
|
|
exit 1
|
2001-12-17 18:37:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo "Now type 'make' to compile $package."
|