mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
changed -d configure option to --autogen-debug added --autogen-noconfigure option that skips the configure stage adde...
Original commit message from CVS: * changed -d configure option to --autogen-debug * added --autogen-noconfigure option that skips the configure stage * added --autogen-nocheck to skip version checks * cleared a little bit of kruft
This commit is contained in:
parent
129894dff8
commit
4574d80f95
1 changed files with 33 additions and 6 deletions
37
autogen.sh
37
autogen.sh
|
@ -5,7 +5,25 @@ DIE=0
|
||||||
package=GStreamer
|
package=GStreamer
|
||||||
srcfile=gst/gstobject.h
|
srcfile=gst/gstobject.h
|
||||||
#DEBUG=defined
|
#DEBUG=defined
|
||||||
if test "x$1" = "x-d"; then echo "+ debug output enabled"; DEBUG=defined; fi
|
|
||||||
|
for i in $@; do
|
||||||
|
if test "$i" = "--autogen-noconfigure"; then
|
||||||
|
NOCONFIGURE=defined
|
||||||
|
echo "+ configure run disabled"
|
||||||
|
elif test "$i" = "--autogen-nocheck"; then
|
||||||
|
NOCHECK=defined
|
||||||
|
echo "+ autotools version check disabled"
|
||||||
|
elif test "$i" = "--autogen-debug"; then
|
||||||
|
DEBUG=defined
|
||||||
|
echo "+ debug output enabled"
|
||||||
|
elif test "$i" = "--help"; then
|
||||||
|
echo "autogen.sh help options: "
|
||||||
|
echo " --autogen-noconfigure don't run the configure script"
|
||||||
|
echo " --autogen-nocheck don't do version checks"
|
||||||
|
echo " --autogen-debug debug the autogen process"
|
||||||
|
echo "continuing with the autogen in order to get configure help messages..."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
debug ()
|
debug ()
|
||||||
# print out a debug message if DEBUG is a defined variable
|
# print out a debug message if DEBUG is a defined variable
|
||||||
|
@ -36,7 +54,14 @@ version_check ()
|
||||||
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
|
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
|
||||||
|
|
||||||
debug "major $MAJOR minor $MINOR micro $MICRO"
|
debug "major $MAJOR minor $MINOR micro $MICRO"
|
||||||
|
|
||||||
|
test -z "$NOCHECK" && {
|
||||||
echo -n "+ checking for $1 >= $VERSION ... "
|
echo -n "+ checking for $1 >= $VERSION ... "
|
||||||
|
} || {
|
||||||
|
echo "+ NOT checking for $1 >= $VERSION, as requested ..."
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
|
($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
|
@ -148,12 +173,14 @@ automake -a -c || {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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'
|
CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
|
||||||
|
|
||||||
|
test -n "$NOCONFIGURE" && {
|
||||||
|
echo "skipping configure stage for package $package, as requested."
|
||||||
|
echo "autogen.sh done."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
echo "+ running configure ... "
|
echo "+ running configure ... "
|
||||||
echo "./configure default flags: $CONFIGURE_OPT"
|
echo "./configure default flags: $CONFIGURE_OPT"
|
||||||
echo "using: $CONFIGURE_OPT $@"
|
echo "using: $CONFIGURE_OPT $@"
|
||||||
|
|
Loading…
Reference in a new issue