[Spice-devel] [common 03/11] build-sys: Add SPICE_CHECK_GSTREAMER_ELEMENTS()

Francois Gouget fgouget at codeweavers.com
Tue Nov 10 01:11:37 PST 2015


On Wed, 4 Nov 2015, Christophe Fergeau wrote:
[...]
> > +AC_DEFUN([SPICE_CHECK_GSTREAMER_ELEMENTS], [
> > +AS_IF([test "x$1" != x],
> > +      [missing=""
> > +       for element in $3
> > +       do
> > +           AS_VAR_PUSHDEF([cache_var],[spice_cv_prog_${1}_${element}])dnl
> > +           AC_CACHE_CHECK([for the $element GStreamer element], cache_var,
> > +                          [found=no
> > +                           "$1" $element >/dev/null 2>/dev/null && found=yes
> > +                           eval "cache_var=$found"])
> > +           AS_VAR_COPY(res, cache_var)
> 
> On el6, this needs a fallback definition:
> +m4_ifndef([AS_VAR_COPY],
> +          [m4_define([AS_VAR_COPY],
> +          [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])])
> 
> I can add that before pushing. Looks good otherwise (though my m4-foo is
> weaker than what you are doing in this patch ;)

Thanks. That would be nice.

-- 
Francois Gouget <fgouget at codeweavers.com>


More information about the Spice-devel mailing list