2 # Run this to generate all the initial makefiles, etc.
6 srcfile=gst/gstobject.h
8 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
10 echo "You must have autoconf installed to compile $package."
11 echo "Download the appropriate package for your distribution,"
12 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/"
16 (automake --version) < /dev/null > /dev/null 2>&1 || {
18 echo "You must have automake installed to compile $package."
19 echo "Download the appropriate package for your distribution,"
20 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
23 automakevermin=`(automake --version|head -n 1|sed 's/^.* //;s/\./ /g;';echo "1 5")|sort -n|head -n 1`
24 if test "x$automakevermin" != "x1 5"; then
25 # version is less than 1.5, the minimum suitable version
27 echo "You must have automake version 1.5 or greater installed."
28 echo "Download the appropriate package for your distribution,"
29 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
33 (pkg-config --version) < /dev/null > /dev/null 2>&1 || {
35 echo "You must have pkg-config installed to compile $package."
36 echo "Download the appropriate package for your distribution,"
37 echo "or get the source tarball at:"
38 echo "http://www.freedesktop.org/software/pkgconfig/"
43 (libtool --version) < /dev/null > /dev/null 2>&1 || {
45 echo "You must have libtool installed to compile $package."
46 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
50 libtool_version=`libtool --version | sed 's/^.* \([0-9a-z\.]*\) .*$/\1/'`
51 libtool_major=`echo $libtool_version | cut -d. -f1`
52 libtool_minor=`echo $libtool_version | cut -d. -f2`
53 libtool_micro=`echo $libtool_version | cut -d. -f3`
54 if [ x$libtool_micro = x ]; then
57 if [ $libtool_major -le 1 ]; then
58 if [ $libtool_major -lt 1 ]; then
60 echo "You must have libtool 1.4.0 or greater to compile $package."
61 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
63 elif [ $libtool_minor -le 4 ]; then
64 if [ $libtool_minor -lt 4 ]; then
66 echo "You must have libtool 1.4.0 or greater to compile $package."
67 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
69 elif [ $libtool_micro -lt 0 ]; then
71 echo "You must have libtool 1.4.0 or greater to compile $package."
72 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
78 if test "$DIE" -eq 1; then
83 echo "You must run this script in the top-level $package directory"
88 echo "I am going to run ./configure with no arguments - if you wish "
89 echo "to pass any to it, please specify them on the $0 command line."
93 libtoolize --copy --force
94 aclocal $ACLOCAL_FLAGS || {
96 echo "aclocal failed - check that all needed development files are present on system"
101 echo "autoheader failed"
106 echo "autoconf failed"
109 automake --add-missing || {
111 echo "automake failed"
115 # now remove the cache, because it can be considered dangerous in this case
118 CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
121 echo "./configure default flags: $CONFIGURE_OPT"
122 echo "using: $CONFIGURE_OPT $@"
125 ./configure $CONFIGURE_OPT "$@" || {
127 echo "configure failed"
132 echo "Now type 'make' to compile $package."