* [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config
@ 2011-07-30 5:45 Brad
2011-08-04 22:07 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Brad @ 2011-07-30 5:45 UTC (permalink / raw)
To: qemu-devel
Add support for finding libpng via pkg-config.
Signed-off-by: Brad Smith <brad@comstyle.com>
---
configure | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 4012d15..25aa75f 100755
--- a/configure
+++ b/configure
@@ -1519,11 +1519,17 @@ int main(void) {
return 0;
}
EOF
+ if $pkg_config libpng --modversion >/dev/null 2>&1; then
+ vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null`
+ vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null`
+ else
vnc_png_cflags=""
vnc_png_libs="-lpng"
+ fi
if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then
vnc_png=yes
libs_softmmu="$vnc_png_libs $libs_softmmu"
+ QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags"
else
if test "$vnc_png" = "yes" ; then
feature_not_found "vnc-png"
--
1.7.6
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config
2011-07-30 5:45 [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config Brad
@ 2011-08-04 22:07 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2011-08-04 22:07 UTC (permalink / raw)
To: Brad; +Cc: qemu-devel
On 07/30/2011 12:45 AM, Brad wrote:
> Add support for finding libpng via pkg-config.
>
> Signed-off-by: Brad Smith<brad@comstyle.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> configure | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 4012d15..25aa75f 100755
> --- a/configure
> +++ b/configure
> @@ -1519,11 +1519,17 @@ int main(void) {
> return 0;
> }
> EOF
> + if $pkg_config libpng --modversion>/dev/null 2>&1; then
> + vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null`
> + vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null`
> + else
> vnc_png_cflags=""
> vnc_png_libs="-lpng"
> + fi
> if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then
> vnc_png=yes
> libs_softmmu="$vnc_png_libs $libs_softmmu"
> + QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags"
> else
> if test "$vnc_png" = "yes" ; then
> feature_not_found "vnc-png"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-04 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-30 5:45 [Qemu-devel] [PATCH] Add support for finding libpng via pkg-config Brad
2011-08-04 22:07 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).