3 # gst-validate autogen.sh
5 # Run this to generate all the initial makefiles, etc.
7 # This file has been generated from common/autogen.sh.in via common/update-autogen
10 test -n "$srcdir" || srcdir=`dirname "$0"`
11 test -n "$srcdir" || srcdir=.
18 srcfile=gst-validate.doap
20 # Make sure we have common
22 if test ! -f validate/common/gst-autogen.sh;
24 echo "+ Setting up common submodule"
30 # source helper functions
31 if test ! -f common/gst-autogen.sh;
33 echo There is something wrong with your source tree.
34 echo You are missing common/gst-autogen.sh
37 . common/gst-autogen.sh
39 # install pre-commit hook for doing clean commits
40 if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
42 rm -f ../.git/hooks/pre-commit
43 ln -s ../../validate/multi-pre-commit.hook ../.git/hooks/pre-commit
46 # GNU gettext automake support doesn't get along with git.
47 # https://bugzilla.gnome.org/show_bug.cgi?id=661128
49 touch -t 200001010000 po/gst-validate-1.0.pot
52 CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
54 if test "x$package" = "xgstreamer"; then
55 CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
60 printf "+ check for build tools"
61 if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
62 version_check "autoreconf" "autoreconf " \
63 "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 68 || DIE=1
64 version_check "pkg-config" "" \
65 "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
69 # if no arguments specified then this will be printed
70 if test -z "$*" && test -z "$NOCONFIGURE"; then
71 echo "+ checking for autogen.sh options"
72 echo " This autogen script will automatically run ./configure as:"
73 echo " ./configure $CONFIGURE_DEF_OPT"
74 echo " To pass any additional options, please specify them on the $0"
78 toplevel_check $srcfile
82 tool_run "autopoint" "--force"
86 if test -f acinclude.m4; then rm acinclude.m4; fi
88 autoreconf --force --install || exit 1
90 test -n "$NOCONFIGURE" && {
91 echo "+ skipping configure stage for package $package, as requested."
92 echo "+ autogen.sh done."
98 echo "+ running configure ... "
99 test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
100 test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
103 echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
104 "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
105 echo " configure failed"
109 echo "Now type 'make' to compile $package."