[Spice-devel] [PATCH spice-streaming-agent] Revert "build: Use pkgconfig to detect libjpeg"

Christophe Fergeau cfergeau at redhat.com
Fri Apr 6 08:34:32 UTC 2018


Ah I thought this was done already, but yeah,

Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Thu, Apr 05, 2018 at 06:03:15PM +0100, Frediano Ziglio wrote:
> This reverts commit 5240f212ed364d5139f30810b14884f8e2c03535.
> RHEL 7 does not provide a pkg-config module for libjpeg.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  configure.ac | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 8e95d06..958869f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -36,7 +36,19 @@ AC_SUBST([SPICE_PROTOCOL_MIN_VER])
>  PKG_CHECK_MODULES(X11, x11)
>  PKG_CHECK_MODULES(XFIXES, xfixes)
>  
> -PKG_CHECK_MODULES(JPEG, libjpeg)
> +AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
> +    AC_MSG_CHECKING([for jpeglib.h])
> +    AC_TRY_CPP(
> +[#include <stdio.h>
> +#undef PACKAGE
> +#undef VERSION
> +#undef HAVE_STDLIB_H
> +#include <jpeglib.h>],
> +        JPEG_LIBS='-ljpeg'
> +        AC_MSG_RESULT($jpeg_ok),
> +    AC_MSG_ERROR([jpeglib.h not found])),
> +    AC_MSG_ERROR([libjpeg not found]))
> +AC_SUBST(JPEG_LIBS)
>  
>  dnl ===========================================================================
>  dnl check compiler flags
> -- 
> 2.14.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180406/19fc2d8c/attachment-0001.sig>


More information about the Spice-devel mailing list