2 # Run this to generate all the initial makefiles, etc.
6 makefile
=src
/Makefile.am
8 # source helper functions
9 . common
/gst-autogen.sh
11 CONFIGURE_DEF_OPT
='--enable-maintainer-mode'
13 CONFIGURE_EXT_OPT
='--build=i686-linux --host=arm-linux --prefix=/opt/gstreamer'
16 echo -n "+ check for build tools"
17 if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
18 version_check
"autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53 autoconf-2.52" \
19 "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE
=1
20 version_check
"automake" "$AUTOMAKE automake automake-1.9 automake19 automake-1.7 automake17 automake-1.6" \
21 "ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE
=1
22 version_check
"autopoint" "autopoint" \
23 "ftp://ftp.gnu.org/pub/gnu/gettext/" 0 11 5 || DIE
=1
24 version_check
"libtoolize" "libtoolize" \
25 "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE
=1
26 version_check
"pkg-config" "" \
27 "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE
=1
31 autoconf_2_52d_check || DIE
=1
32 aclocal_check || DIE
=1
33 autoheader_check || DIE
=1
37 # if no arguments specified then this will be printed
39 echo "+ checking for autogen.sh options"
40 echo " This autogen script will automatically run ./configure as:"
41 echo " ./configure $CONFIGURE_DEF_OPT"
42 echo " To pass any additional options, please specify them on the $0"
46 toplevel_check
$makefile
49 if test -f acinclude.
m4; then rm acinclude.
m4; fi
50 tool_run
"$aclocal" "-I m4 -I /opt/montavista/pro/share/aclocal $ACLOCAL_FLAGS"
52 tool_run
"$libtoolize" "--copy --force"
53 tool_run
"$autoheader"
55 # touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
56 echo timestamp
> stamp-h.
in 2> /dev
/null
59 debug
"automake: $automake"
60 tool_run
"$automake" "--add-missing --copy"
62 test -n "$NOCONFIGURE" && {
63 echo "skipping configure stage for package $package, as requested."
64 echo "autogen.sh done."
68 echo "+ running configure ... "
69 test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
70 test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
73 echo .
/configure
$CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
74 .
/configure
$CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT ||
{
75 echo " configure failed"
79 echo "Now type 'make' to compile $package."