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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]