[Spice-devel] [spice sound rework 2/3 (take 4)] Revise the spice client and server to use the new snd_codec functions in spice-common.

Christophe Fergeau cfergeau at redhat.com
Thu Nov 7 07:36:58 PST 2013


On Tue, Nov 05, 2013 at 04:25:14PM -0600, Jeremy White wrote:
> diff --git a/configure.ac b/configure.ac
> index 882bf1b..b7f6140 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -230,11 +230,13 @@ AC_SUBST(PIXMAN_CFLAGS)
>  AC_SUBST(PIXMAN_LIBS)
>  SPICE_REQUIRES+=" pixman-1 >= 0.17.7"
>  
> -PKG_CHECK_MODULES(CELT051, celt051 >= 0.5.1.1)
> -AC_SUBST(CELT051_CFLAGS)
> -AC_SUBST(CELT051_LIBS)
> -AC_SUBST(CELT051_LIBDIR)
> -SPICE_REQUIRES+=" celt051 >= 0.5.1.1"
> +AC_ARG_ENABLE(celt051,
> +    [  --disable-celt051       Disable celt051 audio codec (enabled by default)],,
> +        [enable_celt051="yes"])
> +
> +if test "x$enable_celt051" = "xyes"; then
> +    PKG_CHECK_MODULES(CELT051, celt051 >= 0.5.1.1, SPICE_REQUIRES+=" celt051 >= 0.5.1.1")
> +fi

For what it's worth, I still don't like that duplication, but I don't think
we have much choice at the moment :-/ I've started experimenting with
replacing the heavyweight AC_CONFIG_SUBDIRS(spice-common) with a m4 macro
provided by spice-common which would do the needed checks directly from the
toplevel configure.ac. The advantage of that is that the m4 macro would be
able to fill a SPICE_COMMON_REQUIRES variable which we would then be able
to reuse without duplicating the celt check.
For now, that configure.ac addition should be enough.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20131107/9f735456/attachment.pgp>


More information about the Spice-devel mailing list