[gst-devel] [gst-cvs] common: split out version functions; add libtool_2_2 check

Peter Kjellerstedt peter.kjellerstedt at axis.com
Wed Jun 3 15:24:26 CEST 2009


> -----Original Message-----
> From: Thomas Vander Stichele [mailto:thomasvs at kemper.freedesktop.org]
> Sent: den 3 juni 2009 01:16
> To: gstreamer-cvs at lists.sourceforge.net
> Subject: [gst-cvs] common: split out version functions; add libtool_2_2
> check
> 
> Module: common
> Branch: master
> Commit: 22cfb47cf8add0ffb07c12181f32bf2e33c393e5
> URL:
> http://cgit.freedesktop.org/gstreamer/common/commit/?id=22cfb47cf8add0f
> fb07c12181f32bf2e33c393e5
> 
> Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
> Date:   Wed Jun  3 01:15:08 2009 +0200
> 
> split out version functions; add libtool_2_2 check
> 
> ---
> 
>  gst-autogen.sh |  139 +++++++++++++++++++++++++++++++++++++++---------
> --------
>  1 files changed, 97 insertions(+), 42 deletions(-)
> 
> diff --git a/gst-autogen.sh b/gst-autogen.sh
> index fe4a78d..6ca22cb 100644
> --- a/gst-autogen.sh
> +++ b/gst-autogen.sh

[cut]

> @@ -186,6 +227,20 @@ autoconf_2_52d_check ()
>    }
>    return 0
>  }
> +libtool_2_2_gettext_check ()
> +{
> +  # libtool 2.2 needs autopoint 0.17 or higher
> +  if test $LIBTOOLIZE_MAJOR -ge 2 && test $LIBTOOLIZE_MINOR -ge 2

The above test will fail when libtool 3.0 is released...
The correct test is:

  if test $LIBTOOLIZE_MAJOR -gt 2 || (test $LIBTOOLIZE_MAJOR -eq 2 && test $LIBTOOLIZE_MINOR -ge 2)

> +  then
> +    if test $AUTOPOINT_MAJOR -eq 0 && test $AUTOPOINT_MINOR -le 17

This should be

    if test $AUTOPOINT_MAJOR -eq 0 && test $AUTOPOINT_MINOR -lt 17

> +    then
> +      echo "libtool 2.2 requires autopoint 0.17 or higher"
> +      return 1
> +    fi
> +  fi
> +  return 0
> +}
> +
> 
>  die_check ()
>  {

//Peter





More information about the gstreamer-devel mailing list