package=GStreamer
srcfile=gst/gstobject.h
#DEBUG=defined
-if test "x$1" = "x-d"; then echo "DEBUG output wanted."; DEBUG=defined; fi
+if test "x$1" = "x-d"; then echo "+ debug output enabled"; DEBUG=defined; fi
debug ()
# print out a debug message if DEBUG is a defined variable
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
debug "major $MAJOR minor $MINOR micro $MICRO"
- echo "Checking for $1 > $VERSION ..."
+ echo -n "+ checking for $1 > $VERSION ... "
($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
{
echo
fi
if test ! -z "$WRONG"; then
+ echo "- found $pkg_version, not ok !"
echo
echo "You must have $PACKAGE $VERSION or greater to compile $package."
echo "Get the latest version from $URL"
return 1
+ else
+ echo "- found $pkg_version, ok."
fi
}
version_check "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 0 || DIE=1
version_check "pkg-config" "http://www.freedesktop.org/software/pkgconfig" 0 7 0 || DIE=1
+echo
+
if test "$DIE" -eq 1; then
exit 1
fi
echo "to pass any to it, please specify them on the $0 command line."
fi
-
+# FIXME : why does libtoolize keep complaining about aclocal ?
+echo "+ running libtoolize ..."
libtoolize --copy --force
+
+echo "+ running aclocal ..."
aclocal $ACLOCAL_FLAGS || {
echo
echo "aclocal failed - check that all needed development files are present on system"
exit 1
}
+echo "+ running autoheader ... "
autoheader || {
echo
echo "autoheader failed"
exit 1
}
+echo "+ running autoconf ... "
autoconf || {
echo
echo "autoconf failed"
#exit 1
}
+echo "+ running automake ... "
automake --add-missing || {
echo
echo "automake failed"
}
# now remove the cache, because it can be considered dangerous in this case
+echo "+ removing config.cache ... "
rm -f config.cache
CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
-echo
+echo "+ running configure ... "
echo "./configure default flags: $CONFIGURE_OPT"
echo "using: $CONFIGURE_OPT $@"
echo